Re: Request from IBM WebSphere causes HTTP status 500

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux