URL wsdlLocation = null;
for (String portPrefix : argv) {
PingService svc = null;
wsdlLocation = getWsdlLocation(portPrefix);
svc = new PingService(wsdlLocation);
final IPingService port =
svc.getPort(
new QName(
"http://WSSec/wssec10",
portPrefix + "_IPingService"
),
IPingService.class
);
Client cl = ClientProxy.getClient(port);
HTTPConduit http = (HTTPConduit) cl.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setConnectionTimeout(0);
httpClientPolicy.setReceiveTimeout(0);
http.setClient(httpClientPolicy);
final String output = port.echo(INPUT);
assertEquals(INPUT, output);
}
bus.shutdown(true);
}