Re: [SOAP] PHP5 SOAP Extension - Request Header Elements with Attributes

From: Date: Fri, 12 May 2006 07:24:05 +0000
Subject: Re: [SOAP] PHP5 SOAP Extension - Request Header Elements with Attributes
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2269@lists.php.net to get a copy of this message
Hi Dmitry, Dmitry Stogov wrote:
Which kind of DOM do you mean? Do you mean ext/simplexml or ext/dom?
I prefer ext/dom, but ext/simplexml will do as well.
I don't like make ext/soap dependent on them. Btw you probably can simple make it in PHP itself with something like this. class DomSoapClient extends SoapClient { function __doDomRequest($dom) { return string2dom($this->__doRequest(dom2string($dom), ...)); } } Isn't this enough for you?
This would indeed work (only on the soap client), but re-loading it into a dom document while we already had a libxml xmlDoc is a waist of resources. Maybe Rob's sugestion is a better idea? We could save the latest request/response xmlDoc and create a handler for php_libxml_import_node. Kind regards, David

« previous php.soap (#2269) next »