AddressingBuilder builder = SOAPAddressingBuilder.getAddressingBuilder();
SOAPAddressingProperties outProps = (SOAPAddressingProperties)builder.newAddressingProperties();
String hostname = System.getProperty("jboss.bind.address", "localhost");
outProps.setTo(builder.newURI("http://" + hostname + ":8080/jaxrpc-samples-wsaddr-hello"));
outProps.setAction(builder.newURI("http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto/sayHello"));
EndpointReference rp = builder.newEndpointReference(new URI("http://" + hostname + ":8080/jaxrpc-samples-wsaddr-replyto"));
outProps.setReplyTo(rp);
outProps.setMessageID(builder.newURI("123456"));
context.setProperty(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, outProps);
}
catch(URISyntaxException e)