Re: [SOAP] Request from IBM WebSphere causes HTTP status 500

From: Date: Tue, 02 Jun 2009 14:49:26 +0000
Subject: Re: [SOAP] Request from IBM WebSphere causes HTTP status 500
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2936@lists.php.net to get a copy of this message
Hello once again, By now it seems like I solved the problem. There was an additional header in the SOAP request, having mustUnderstand set to "1". It goes without saying that PHP's SOAP extension did NOT understand the WS-Security header and consequently threw an internal server error. So I manipulated $HTTP_RAW_POST_DATA prior to calling handle() on my SoapServer and now all works fine (HTTP 200: OK). ----- This is what my solution looks like: $server = new SoapServer(MY_DIR . 'service.wsdl'); $server->setClass('MyServer'); $request = str_replace('mustUnderstand="1"', 'mustUnderstand="0"', $HTTP_RAW_POST_DATA); $server->handle($request); ----- Regards, Bernd -- GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.! http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a

« previous php.soap (#2936) next »