Re: ext/SOAP accessing headers from SOAPServer...
| From: | Glen Kidston | Date: | Tue, 29 Mar 2005 00:14:31 +0000 |
| Subject: | Re: ext/SOAP accessing headers from SOAPServer... | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1805@lists.php.net to get a copy of this message | ||
Glen Kidston wrote:
Hello, Is there a way to access the SOAP request header from PHP 5 ext/SOAP SOAPServer? Maybe I'm missing something, but I do not see a way. -GlenApologies, but I think I was a little terse with my initial problem description. I have an Apache Axis Soap 1.1 client and WSDL for a WS-Eventing client implementation, and I am trying to develop a PHP SoapServer in WSDL mode, with classmap (mapped to PHP classes genned via XSL from the WSDL--which tankfully works). Everything's great except I don't see any clean way to get the SOAP <Header/> from within my *PHP* 5 SOAP Server, other than using $GLOBALS["PHP_RAW_POST_DATA"]. I ended up writing a PHP SAX parser class with appropriate callbacks to create associative array with keys and values which correspond to SOAP request header elements and their data, using $GLOBALS["PHP_RAW_POST_DATA"]. I was sort of expecting some sort of built-in server-side SoapRequestHeader. Does anything like this exist? Maybe at this point I should admit that I haven't been doing PHP very long. Have a good day. Sincerely, Glen