protected SOAPRequest createSOAPRequest(final String methodName,final SOAPMethodRequestWriter requestWriter){
  final PostMethod method=new PostMethod(endpoint.toString());
  method.setContentChunked(false);
  setRequestHeaders(method,methodName);
  final SOAPRequestEntity requestEntity=buildRequestEntity(methodName,requestWriter);
  requestEntity.setSOAPHeaderProvider(soapHeaderProvider);
  final BufferedSOAPRequestEntity bufferedEntity=new BufferedSOAPRequestEntity(requestEntity);
  method.setRequestEntity(bufferedEntity);
  return new SOAPRequest(method,requestEntity);
}

protected SOAPRequest createSOAPRequest ( final String methodName , final SOAPMethodRequestWriter requestWriter ) { final PostMethod method = new PostMethod ( endpoint . toString ( ) ) ; method . setContentChunked ( false ) ; setRequestHeaders ( method , methodName ) ; final SOAPRequestEntity requestEntity = buildRequestEntity ( methodName , requestWriter ) ; requestEntity . setSOAPHeaderProvider ( soapHeaderProvider ) ; final BufferedSOAPRequestEntity bufferedEntity = new BufferedSOAPRequestEntity ( requestEntity ) ; method . setRequestEntity ( bufferedEntity ) ; return new SOAPRequest ( method , requestEntity ) ; }
create a soap request for the given method name . the writing of the request body is delegated to the given request writer .
