Error Processing Wsdl Document Javax.xml.rpc.serviceexception Cannot Find Service
English » 3. Development Recent Posts Statistics RSS (Opens New Window) Answer (Unmark) Mark as an Answer Threads [ Previous | Next ] Problem invoking Web Service February 21, 2013 7:44 AM Answer N M Rank: New Member Posts: 17 Join Date: February 24, 2011 Recent Posts Please help me figure out the fault.Code:-String wsdlURL = "http://localhost:8080/tunnel-web/axis/Portal_UserService?wsdl";String namespace = "urn:http.service.portal.liferay.com";String serviceName = "Portal_UserService";QName serviceQN = new QName(namespace, serviceName); ServiceFactory serviceFactory = ServiceFactory.newInstance();Service service = serviceFactory.createService(new URL(wsdlURL), serviceQN);Error at runtime:-15:36:42,783 ERROR [MyGlobalExceptionHandler:72] javax.xml.rpc.ServiceExceptionjavax.xml.rpc.ServiceException: Error processing WSDL document: javax.xml.rpc.ServiceException: Error processing WSDL document: javax.xml.rpc.ServiceException: Cannot find service: {urn:http.service.portal.liferay.com}Portal_UserService at org.apache.axis.client.Service.initService(Service.java:250) Sign in to vote. Flag Please sign in to flag this as inappropriate. Platform Case Studies and Docs Subscription Services Request a Demo Marketplace Apps Downloads Company Press Releases Careers Contact Us 1400 Montefino Avenue Diamond Bar, CA 91765 USA +1-877-LIFERAY Powered by Liferay © 2016 Liferay Inc. All Rights Reserved Privacy Policy
Speaker BureauLog inRegisterSearchSearchCancelError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type your message and try again. More discussions in Java Technologies for Web Services All PlacesJavaJava EE (Java Enterprise Edition)Java Technologies for Web https://web.liferay.com/community/forums/-/message_boards/message/21688633 Services This discussion is archived 2 Replies Latest reply on Jul 31, 2007 12:47 PM by 843833 Cannot find service 843833 Nov 10, 2004 10:41 PM I am using a 3rd party product that allows me to create and deploy web services. I am attempting https://community.oracle.com/thread/1671145 to write a simple java client to invoke the web service, but I don't seem to be able to get very far. (I am using the Axis implementation, btw.) Leaving the full use of Axis aside, I cannot figure out why I get this error when I call Service service = factory.createService(wsdlLocation,serviceName); javax.xml.rpc.ServiceException: Error processing WSDL document: javax.xml.rpc.ServiceException: Error processing WSDL document: javax.xml.rpc.ServiceException: Cannot find service: {urn:XXXX/SOAP}XTestWebService at org.apache.axis.client.Service.initService(Service.java:278) at org.apache.axis.client.Service.
not work correctly without it enabled. Please turn JavaScript back on and reload this page. All Places > JBoss Web Services > https://developer.jboss.org/thread/100173 Discussions Please enter a title. You can not post a blank message. Please type your message and try again. 1 Reply Latest reply on Aug 2, 2005 6:41 AM by Thomas Diesler Error launching WS Client Christy Christy Jul 29, 2005 error processing 4:52 AM HI,I decided to write WS client to test my web service. I looked the hello example in jboss documentation in chapter 12. Here my code:import javax.xml.namespace.QName;import javax.xml.rpc.ServiceFactory;import javax.xml.rpc.Call;import javax.xml.rpc.Service;import java.net.URL;public class TestWSClient { public static void main(String[] args) error processing wsdl { String nmsp = "http://test.webservice.oceaninfo.ru"; String qnameService = "TestWSService"; String qnamePort = "TestWSInterfacePort"; String urlstr = "http://debug/testws/Test?wsdl"; try { URL url = new URL(urlstr); ServiceFactory factory = ServiceFactory.newInstance(); javax.xml.rpc.Service serv = factory.createService(url, new QName(nmsp, qnameService)); Call call = serv.createCall(new QName(nmsp,qnamePort),new QName(nmsp,"getId")); System.out.println("output:" + call.invoke(new Object[] {"argument"})); } catch (Exception e) { e.printStackTrace(); } }}But I have the error:javax.xml.rpc.ServiceException: Error processing WSDL document:javax.xml.rpc.ServiceException: Error processing WSDL document:javax.xml.rpc.ServiceException: Cannot find service: {http://test.webservice.oceaninfo.ru}TestWSService at org.jboss.axis.client.Service.initService(Service.java:289) at org.jboss.axis.client.Service.(Service.java:191) at org.jboss.webservice.client.ServiceImpl.(ServiceImpl.java:110) at org.jboss.webservice.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:111) at TestWSClient.main(TestWSClient.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)I used wscompile to generate WSDL.It's strange, because I think I used right url. What is wrong?Thank you. 3304Views Tags: none (add) This content has been marked as final. S