WsdlInterface wsdlInterface = ( WsdlInterface )wsdlRequest.getOperation().getInterface();
// init content-type and encoding
String encoding = System.getProperty( "soapui.request.encoding", wsdlRequest.getEncoding() );
SoapVersion soapVersion = wsdlInterface.getSoapVersion();
String soapAction = wsdlRequest.isSkipSoapAction() ? null : wsdlRequest.getAction();
postMethod.setRequestHeader( "Content-Type", soapVersion.getContentTypeHttpHeader( encoding, soapAction ) );
if( !wsdlRequest.isSkipSoapAction() )
{
String soapActionHeader = soapVersion.getSoapActionHeader( soapAction );
if( soapActionHeader != null )
postMethod.setRequestHeader( "SOAPAction", soapActionHeader );
}
}