[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-soap
Subject:    Re: [SOAP] Request from IBM WebSphere causes HTTP status 500
From:       sende.mir.post () gmx ! de
Date:       2009-06-02 14:49:26
Message-ID: 20090602144926.293110 () gmx ! net
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic