#41366 [Opn->Fbk]: $SoapServer->handle () generates 500 internal server error

From: Date: Fri, 11 May 2007 15:18:54 +0000
Subject: #41366 [Opn->Fbk]: $SoapServer->handle () generates 500 internal server error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112552@lists.php.net to get a copy of this message
 ID:               41366
 Updated by:       tony2001@php.net
 Reported By:      sebastiaan at bns dot nl
-Status:           Open
+Status:           Feedback
 Bug Type:         SOAP related
 Operating System: Debian
 PHP Version:      5.2.2
 New Comment:

What's in the error_log?


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

[2007-05-11 15:16:08] sebastiaan at bns dot nl

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
)
 


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


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


Thread (4 messages)

« previous php.bugs (#112552) next »