#38309 [Fbk->Opn]: SoapServer doesn't seem capable of processing SOAP Headers
| From: | hummel at channeladvisor dot de | Date: | Thu, 03 Aug 2006 10:04:49 +0000 |
| Subject: | #38309 [Fbk->Opn]: SoapServer doesn't seem capable of processing SOAP Headers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-100267@lists.php.net to get a copy of this message | ||
ID: 38309
User updated by: hummel at channeladvisor dot de
Reported By: hummel at channeladvisor dot de
-Status: Feedback
+Status: Open
Bug Type: SOAP related
Operating System: Windows
PHP Version: 5.1.4
New Comment:
Hello Tony,
is there a (pre-)documentation for 5.2 available?
Previous Comments:
------------------------------------------------------------------------
[2006-08-03 09:56:37] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2006-08-03 09:53:24] hummel at channeladvisor dot de
Description:
------------
The SoapServer class doesn't seem to support processing SOAP Headers.
An example SOAP request to the server looks as this:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header>
<m:RequesterCredentials xmlns:m="http://localhost/3.0.2/soap/">
<username>String</username>
<password>String</password>
<signature>String</signature>
</m:RequesterCredentials>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<m:GetAvailableStockQuantityRequest
xmlns:m="http://localhost/3.0.2/soap/">
<itemID>-0</itemID>
</m:GetAvailableStockQuantityRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
As you can see, the header "RequesterCredentials" is sent to the
server. I need to process and validate "RequesterCredentials" on the
server side, but the class SoapServer doesn't seem to support of
processing headers (i.e. I cannot implement header checks if I wanted
to using SoapServer).
If a developer can use SoapServer to process headers, it is a
documentation issue.
If a developer cannot use SoapServer to process headers, it should made
clear within the documentation.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38309&edit=1