|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-08-03 09:53 UTC] 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 00:00:01 2025 UTC |
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.