My client code is
@WebServiceRef(wsdlLocation = "
http://localhost:8080/EchoRMService/EchoService?wsdl")
private bench.client.EchoService service;
public void run()
{
try { // Call Web Service Operation
bench.client.Echo port = service.getEchoPort();
// System.err.println("Port = "+port);
// TODO initialize WS operation arguments here
java.lang.String message = "chad the greatest";
// TODO process result here
//System.err.println("Message before ");
returnMessage = port.getDup(sentMessage);
//System.err.println("Message After ");
// System.err.println("Result = "+returnMessage);
((Closeable)port).close();
} catch (Exception ex) {
// TODO handle custom exceptions here
System.out.println("<p>Exception: " + ex);
ex.printStackTrace();
}
}
Driver code is
private EchoRMServlet client;
try{
client.run();
}
catch (Exception ex) {
// TODO handle custom exceptions here
System.err.println("Exception: " + ex);
}
[Message sent by forum member 'cmartin39' (cmartin39)]
http://forums.java.net/jive/thread.jspa?messageID=231710