ID:               49278
 Updated by:       sjo...@php.net
 Reported By:      jeroen at asystance dot nl
-Status:           Open
+Status:           Verified
 Bug Type:         SOAP related
 Operating System: linux
 PHP Version:      5.3SVN-2009-08-17 (snap)
 New Comment:

Thank you for your bug report.

Apparently, the response is not parsed at all when the method returns
nothing. This gives problems with getLastResponseHeaders, as the bug
reporter described. Furthermore, if the server returns a HTTP status
such as 404 Not Found or 500 Internal Error, the client should does not
throw a SoapFault, where it should.

See ext/soap/php_http.c:771.


Previous Comments:
------------------------------------------------------------------------

[2009-08-17 10:07:52] jeroen at asystance dot nl

Description:
------------
For <wsdl:operation>s that do not have output, SoapClient does not
return last response headers.

Reproduce code:
---------------
download http://jayvee.nl/soaptest3.tar
change URL in interface.wsdl to point to SOAPtest.php
SOAPtest.php contains both client and server code, so just run
php SOAPtest.php

Expected result:
----------------
SoapClient::getLastResponseHeaders should return string

Actual result:
--------------
SoapClient::getLastResponseHeaders returns NULL


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49278&edit=1

Reply via email to