URL wsdlLocation = null;
PingService11 svc = null;
wsdlLocation = getWsdlLocation(portPrefix, portNumber);
svc = new PingService11(wsdlLocation);
final IPingService port =
svc.getPort(
new QName("http://WSSec/wssec11", portPrefix + "_IPingService"),
IPingService.class
);
if (streaming) {
((BindingProvider)port).getRequestContext().put(
SecurityConstants.ENABLE_STREAMING_SECURITY, "true"
);
((BindingProvider)port).getResponseContext().put(
SecurityConstants.ENABLE_STREAMING_SECURITY, "true"
);
}
final String output = port.echo(INPUT);
assertEquals(INPUT, output);
((java.io.Closeable)port).close();
bus.shutdown(true);