|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64420 SoapClient ignores faults sent by SoapServer
Submitted: 2013-03-13 15:07 UTC Modified: -
From: polettog at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.22 OS: linux 32bits
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-03-13 15:07 UTC] polettog at gmail dot com
A client request can be "one way" or not, if "one way", an empty response will be given to the caller (__getLastResponse() returns empty string).

As i can see in soap.c (do_soap_call() : 2692), the "one way" detection is based on the wsdl : if the function (operation) has no "output message", no need to read the response, but in this case no faults will be taken in count.

I report it as a bug since there is no mention in the doc of the necessity for a function to return something to make SoapFault system work and __getLastResponse() work.

I first wanted to post it as a note in the doc but it says to not post bugs there.

Expected result:
__getLastResponse() returns the response and SoapFault's are thrown in the client

Actual result:
__getLastResponse() returns empty string and no SoapFault thrown in the client (SoapFault's are lost in nature)


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 28 19:03:41 2023 UTC