Re: [SOAP] RE: element handling in schema
| From: | George Schlossnagle | Date: | Mon, 28 Mar 2005 15:43:52 +0000 |
| Subject: | Re: [SOAP] RE: element handling in schema | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1790@lists.php.net to get a copy of this message | ||
On Mar 28, 2005, at 10:27 AM, Dmitry Stogov wrote:
I just found the bug. :) Thank you for your reports.Thanks for fixing them!
I have committed fix into HEAD only. The example in attachment sets header namespaces (with fixed HEAD).Looks like there's still the problem with the version attribute (which works as an attribute now - thanks!) not having the correct namespace. Here's a fragment of the output: <env:Header>
<ns2:MessageHeader version="2.0">
<ns2:From>
That should be <ns2:MessageHeader ns2:version="2.0">, the namespace on the attribute isn't inherited. If you take the full output from soap1.php and run it through this:
$dom = DOMDocument::load('1.xml');
foreach($dom->getElementsByTagName('MessageHeader') as $el) {
$att = $el->getAttributeNS('http://www.ebxml.org/namespaces/messageHeader', 'version');
var_dump($att);
}
You'll see that it's not correctly namespacing 'version'.
Thanks for all the help with this!
Best,
George