if (wsdlLocation == null) {
svc = new PingService11();
} else {
svc = new PingService11(wsdlLocation);
}
final IPingService port =
svc.getPort(
new QName(
"http://InteropBaseAddress/interop",
portPrefix + "_IPingService"
),
IPingService.class
);
/*
((BindingProvider)port)
.getRequestContext()
.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://localhost:9001/" + portPrefix + "PingService");
*/
final String output = port.echo(INPUT);
if (!INPUT.equals(output)) {
System.err.println(
"Expected " + INPUT + " but got " + output
);
results.add("Expected " + INPUT + " but got " + output);