Hello,I want to use a simple Webservice from a Java Program, but when I call it I get the error: java.rmi.RemoteException: No operation description was found for the service {urn:DefaultNamespace}WS2Service.
This is the call:
WS2 stub = new WS2ServiceLocator().getWS2();
String Ergebnis = stub.holestring(“test”);
Can anybody help I get crazy on this one…
Martin
P.S. Does anybody have some code who got this to run ?
Subject: Problem solved
After 2 days hard work I reached to transfer a string to a web service and vice versa. For anybody who wants to do this my solution.I used the stubby DB from www.openntf.org to generate the java classes. Then I had to correct the path to my service in the WS1ServiceLocator class from “http://localhost” to “http://localhost/ws.nsf/WS1?OpenWebService”.
Here the two lines of code I needed:
WS1 stub = new WS1ServiceLocator().getWS1();
String Ergebnis = stub.holestring(“test”);
where WS1 is the name of my webservice.