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)
|
private function __doHttpRequest(SoapRequest $soapRequest)
|
||||||
{
|
{
|
||||||
// HTTP headers
|
// HTTP headers
|
||||||
|
$soapVersion = $soapRequest->getVersion();
|
||||||
|
$soapAction = $soapRequest->getAction();
|
||||||
|
if (SOAP_1_1 == $soapVersion) {
|
||||||
$headers = array(
|
$headers = array(
|
||||||
'Content-Type:' . $soapRequest->getContentType(),
|
'Content-Type:' . $soapRequest->getContentType(),
|
||||||
'SOAPAction: "' . $soapRequest->getAction() . '"',
|
'SOAPAction: "' . $soapAction . '"',
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
$headers = array(
|
||||||
|
'Content-Type:' . $soapRequest->getContentType() . '; action="' . $soapAction . '"',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$location = $soapRequest->getLocation();
|
$location = $soapRequest->getLocation();
|
||||||
$content = $soapRequest->getContent();
|
$content = $soapRequest->getContent();
|
||||||
|
|
Loading…
Reference in New Issue