fix soap header handling
This commit is contained in:
parent
1f1d513ea3
commit
461675042a
|
@ -138,10 +138,18 @@ class SoapClient extends \SoapClient
|
|||
private function __doHttpRequest(SoapRequest $soapRequest)
|
||||
{
|
||||
// HTTP headers
|
||||
$soapVersion = $soapRequest->getVersion();
|
||||
$soapAction = $soapRequest->getAction();
|
||||
if (SOAP_1_1 == $soapVersion) {
|
||||
$headers = array(
|
||||
'Content-Type:' . $soapRequest->getContentType(),
|
||||
'SOAPAction: "' . $soapRequest->getAction() . '"',
|
||||
'SOAPAction: "' . $soapAction . '"',
|
||||
);
|
||||
} else {
|
||||
$headers = array(
|
||||
'Content-Type:' . $soapRequest->getContentType() . '; action="' . $soapAction . '"',
|
||||
);
|
||||
}
|
||||
|
||||
$location = $soapRequest->getLocation();
|
||||
$content = $soapRequest->getContent();
|
||||
|
|
Loading…
Reference in New Issue