postMethod = new PostMethod();
postMethod.setPath(uri.getPath());
HostConfiguration hc = getHostConfiguration(uri, context);
HttpClientOutTransport clientOutTransport = new HttpClientOutTransport(postMethod);
HttpClientInTransport clientInTransport = new HttpClientInTransport(postMethod, endpointURI);
context.setInboundMessageTransport(clientInTransport);
context.setOutboundMessageTransport(clientOutTransport);