[jbossws-users] [JBossWS] - Error when invoking Webservice deployed in Jboss 4.0.3
mpardeshi
do-not-reply at jboss.com
Tue Jan 30 15:10:28 EST 2007
Hi,
I downloaded the jbossws-1.0.4.GA and deployed one sample (jsr109pojo) in Jboss 4.0.3. When I hit this URL: http://localhost:8080/ws4ee/services , I do see the deployed service as:
And now... Some Services
jaxrpc-samples-jsr109pojo-rpc.war#TestService/JaxRpcTestServicePort (wsdl)
echoSimpleUserType
| echoString
|
|
| However I get an exception when I try to access the service from a standalone java client. I have tried a lot of options but in vain.
| Here is my client code:
|
|
| | ServiceFactoryImpl factory = new ServiceFactoryImpl();
| | URL wsdlURL = new File("resources/jaxrpc/samples/jsr109pojo/rpclit//WEB-INF/wsdl/TestService.wsdl").toURL();
| | URL mappingURL = new File("resources/jaxrpc/samples/jsr109pojo/rpclit/WEB-INF/jaxrpc-mapping.xml").toURL();
| | QName qname = new QName("http://org.jboss.ws/samples/jsr109pojo", "TestService");
| | Service service = factory.createService(wsdlURL, qname, mappingURL);
| | port = (JaxRpcTestService)service.getPort(JaxRpcTestService.class);
| | ((Stub)port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://" + "SECEMPARDESM" + ":8080/jaxrpc-samples-jsr109pojo-rpc");
| | port.echoString("test", "test");
|
|
| And here is the exception I get when I call port.echoString("test", "test"); above:
|
|
| Exception in thread "main" java.lang.NoSuchMethodError: org.jboss.remoting.Client.<init>(Lorg/jboss/remoting/InvokerLocator;Ljava/lang/String;Ljava/util/Map;)V
| | at org.jboss.ws.soap.SOAPConnectionImpl.createRemotingClient(SOAPConnectionImpl.java:205)
| | at org.jboss.ws.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:149)
| | at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:92)
| | at org.jboss.ws.common.CommonClient.invoke(CommonClient.java:294)
| | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:560)
| | at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:338)
| | at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
| | at $Proxy0.echoString(Unknown Source)
| | at org.jboss.test.ws.jaxws.samples.jsr181pojo.RpcJSETestCase.main(JSR181WebServiceJSETestCase.java:103)
| |
|
| I have followed exactly the same steps as in the WS documentation. Can anyone please let me know what am I missing?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008479#4008479
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008479
More information about the jbossws-users
mailing list