Question

I have problems with writing Java client for wshttpbinding web service.

I wsimport-ed .wsdl and i try to

TestService iface = new TestService();      
ITestService implmt = iface.getWSHttpBindingITestService();

then i call web service method set

implmt.set("s", 1); 

And i get

Exception in thread "main" javax.xml.ws.WebServiceException: 
java.net.SocketException: Connection reset
  • I cannot change server side, it must be as is. So change to basicHttpBinding is not possible (if i change it i don't have any problem but alas)
  • Client must be made in Java.
Was it helpful?

Solution

Oh ok I solved it. I imported METRO .jar files to build path and moved them to top (to be first)

It is crucial to place those jars on top.

java build path

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top