Querying via generated code
Wednesday, March 10, 2010
10:51 AM
// SimpleServer.echo corresponds to 
// SimpleServiceStub.EchoResponse
// in generated code. 
package org.apache.axis2;
import org.apache.axis2.SimpleServiceStub.EchoResponse;
public class Client {
public static void main(String[] args) throws Exception {
SimpleServiceStub stub = new SimpleServiceStub();
//Create the request
SimpleServiceStub.Echo request = new SimpleServiceStub.Echo();
request.setParam0("Hello world");
//Invoke the service
EchoResponse response = stub.echo(request);
System.out.println("Response : " + response.get_return());
}
}
Pasted from <[link]> 