Re: PHP5 SOAP Extension - Request Header Elements with Attributes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux