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

[email protected]
Newsgroups php.soap
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.