if (portPrefix.charAt(0) == '_') {
//MS would like the _ versions to send a cancel
((BindingProvider)port).getRequestContext()
.put(SecurityConstants.STS_TOKEN_DO_CANCEL, Boolean.TRUE);
}
PingRequest params = new PingRequest();
Ping ping = new Ping();
ping.setOrigin("CXF");
ping.setScenario("Scenario5");
ping.setText("ping");
params.setPing(ping);
PingResponse output = port.ping(params);
if (!OUT.equals(output.getPingResponse().getText())) {
System.err.println(
"Expected " + OUT + " but got " + output.getPingResponse().getText()
);