You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a soap request with integrated soapclient. As long as the request contains only valid data everything works fine.
But as soon as the request fails, the server returns HTTP Status 500 and __getLastResponse is NULL, even if data is returned. Below you can find the SOAP request and the expected answer based on SOAP UI request
Actually returning the response instead of null on failure in __goRequest would break a lot of code and would also need a new way to signal failure. I suppose for most cases it is enough to make sure __getLastResponse returns non-NULL, which you seem to hint at. This is doable but since it's a behaviour change this can only happen in the master branch.
Description
I've created a soap request with integrated soapclient. As long as the request contains only valid data everything works fine.
But as soon as the request fails, the server returns HTTP Status 500 and __getLastResponse is NULL, even if data is returned. Below you can find the SOAP request and the expected answer based on SOAP UI request
Resulted in this output:
But I expected this output instead (tested with SOAP UI):
Similar problems from other persons:
https://stackoverflow.com/questions/22375590/soapclient-returns-empty-response-on-http-500-error-when-body-is-not-empty
https://stackoverflow.com/questions/43815114/php-soapclient-returning-null-when-server-sends-back-an-error-response
Same behavior with PHP 8.1
PHP Version
PHP 8.3.13
Operating System
Windows Server 2016
The text was updated successfully, but these errors were encountered: