New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no SOAPAction header! #308
Comments
Hi @vivoconunxino, what is the version of your soap server? |
Hi @andriuspetrauskis. It uses |
I think that I have found the problem. In normal curl requests an empty SOAPAction header is formatted like so: this package uses the CurlHelper::setCurlOptionOnRequest function in the setCurlOptionOnRequest function is as follows:
case \CURLOPT_HTTPHEADER trims the ':' from the end of $headerParts[0] but does nothing if that value contains a ';'. So if the value of $header in that instance is "SOAPAction;" then you end up with a header like this:
My proposal is to update that function in CurlHelper.php as follows:
|
I'm getting
SoapFault: WSWS3147E: Error: no SOAPAction header!
when using the vcr.I'm doing the call this way, trying to pass the SOAPAction someway so the vcr receives it as a parameter:
$response = $this->soapClient->__soapCall("trataPeticion", array($params), ['soapaction' => 'trataPeticion'], new SoapHeader('somthing', 'something', 'something'));
Still no luck, if I edit the
vendor/php-vcr/php-vcr/src/VCR/LibraryHooks/SoapHook.php
file and add on line 77:Then it works, am I doing anything wrong?
The text was updated successfully, but these errors were encountered: