On 1 Mar, 21:31, "Kieran James" <[EMAIL PROTECTED]> wrote:
> I've only had a small amount of time to review the PHP SOAP extension. To
> summarize from my brief exposure to it, I think that SoapHeader consumption
> on the server side wouldn't be difficult to implement. I am still
> investigating this, though time is scarce for me.
> If I've not been clear enough on anything, please let me know.

I am not sure if I'm missing something or not, but a SoapServer does
process the headers as long as they are defined in the WSDL.
It also will fault if header set to mustUnderstand and the function
not implemented or not defined in WSDL.
The only times the raw XML needs to be processed to access the headers
is in the case of it not defined.

$xmlinput = <<<EOXML
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:ns1="urn::robTest">

function AuthenticationInfo($authinfo)
        if ($authinfo->username != "MYLOGINID") {
                return new SoapFault("F998", "Invalid USername");
        } else if ($authinfo->password != "MYPASSWORD") {
                return new SoapFault("F999", "Invalid Password");
/* Return value here would be used to add header to response */

function GetTestList($getAll) {
   return $getAll;

$server = new SoapServer('http://www.cdatazone.org/files/rob.WSDL');


You received this message because you are subscribed to the Google Groups 
"phpsoa" group.
To post to this group, send email to phpsoa@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to