QName serviceName =
new QName("http://objectweb.org/hello_world_rpclit", "SOAPServiceRPCLit2");
QName portName =
new QName("http://objectweb.org/hello_world_rpclit", "SoapPortRPCLit2");
SOAPServiceRPCLit service = new SOAPServiceRPCLit(wsdl, serviceName);
assertNotNull(service);
String response1 = new String("TestGreetMeResponse");
String response2 = new String("TestSayHiResponse");
try {
GreeterRPCLit greeter = service.getPort(portName, GreeterRPCLit.class);
for (int idx = 0; idx < 1; idx++) {
String greeting = greeter.greetMe("Milestone-" + idx);
assertNotNull("no response received from service", greeting);
assertEquals(response1, greeting);