SpringBusFactory.setThreadDefaultBus(bus);
URL wsdl = SWAPolicyTest.class.getResource("DoubleItSwa.wsdl");
Service service = Service.create(wsdl, SERVICE_QNAME);
QName portQName = new QName(NAMESPACE, "DoubleItSWACombinedAsymmetricPolicyPort");
DoubleItSwaPortType port =
service.getPort(portQName, DoubleItSwaPortType.class);
updateAddressPort(port, test.getPort());
if (test.isStreaming()) {
enableStreaming(port);
}
DoubleIt3 doubleIt = new DoubleIt3();
doubleIt.setNumberToDouble(25);
port.doubleIt3(doubleIt, "12345".getBytes());
((java.io.Closeable)port).close();
bus.shutdown(true);
}