|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-11 15:18 UTC] tony2001@php.net
[2007-05-11 16:50 UTC] sebastiaan at bns dot nl
[2007-05-16 13:02 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 01:00:02 2025 UTC |
Description: ------------ Server->handle () generates a 500 internal server error. When calling server a 500 err-code is returned. ( With SoapClient ) of PHP everything works as it should but clients software generates incorrect Soap-message. Reproduce code: --------------- // Server.example.php $SoapServer= new SoapServer(null, array('uri' => "http://test-uri/")); $data = ( isset ( $HTTP_RAW_POST_DATA ) ) ? $HTTP_RAW_POST_DATA : file_get_contents ( 'php://input' ); $SoapServer->handle ( $data ); // getheaders.php $url = 'http://localhost/soap/server.example.php'; print_r(get_headers($url)); print_r(get_headers($url, 1)); ?> Expected result: ---------------- Array ( [0] => HTTP/1.1 200 OK [1] => Date: Fri, 11 May 2007 15:12:27 GMT [2] => Server: Apache/2.2.3 [3] => X-Powered-By: PHP/5.2.2 [4] => Content-Length: 278 [5] => Connection: close [6] => Content-Type: text/xml; charset=utf-8 ) Array ( [0] => HTTP/1.1 200 OK [Date] => Fri, 11 May 2007 15:12:27 GMT [Server] => Apache/2.2.3 [X-Powered-By] => PHP/5.2.2 [Content-Length] => 278 [Connection] => close [Content-Type] => text/xml; charset=utf-8 ) Actual result: -------------- Array ( [0] => HTTP/1.1 500 Internal Service Error [1] => Date: Fri, 11 May 2007 15:12:27 GMT [2] => Server: Apache/2.2.3 [3] => X-Powered-By: PHP/5.2.2 [4] => Content-Length: 278 [5] => Connection: close [6] => Content-Type: text/xml; charset=utf-8 ) Array ( [0] => HTTP/1.1 500 Internal Service Error [Date] => Fri, 11 May 2007 15:12:27 GMT [Server] => Apache/2.2.3 [X-Powered-By] => PHP/5.2.2 [Content-Length] => 278 [Connection] => close [Content-Type] => text/xml; charset=utf-8 )