ID:               38309
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hummel at channeladvisor dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         SOAP related
 Operating System: Windows
 PHP Version:      5.1.4
 New Comment:

If it's not documented - it is not possible.
Please express your thoughts more clearly next time.
Thank you.


Previous Comments:
------------------------------------------------------------------------

[2006-08-03 12:06:16] hummel at channeladvisor dot de

I guess my request was not clear.

A developer can register SOAP functions via calling

$server = new SoapServer("<somewsdl>");
$server->addFunction("<functionname>");

but there seems no method to do

$server->addHeaderFunction("<headerfunctionname>");

Given my example above, I want to process the header
"RequesterCredentials", so I would have to do something like

$server->addHeaderFunction("RequesterCredentials");

It is not documented wether header processing is possible using
SoapServer or not.

------------------------------------------------------------------------

[2006-08-03 10:18:06] [EMAIL PROTECTED]

All docs are available @ php.net.
There shouldn't be any differencies in SOAP except for bugfixes.

------------------------------------------------------------------------

[2006-08-03 10:04:48] hummel at channeladvisor dot de

Hello Tony,

is there a (pre-)documentation for 5.2 available?

------------------------------------------------------------------------

[2006-08-03 09:56:37] [EMAIL PROTECTED]

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

Reply via email to