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

From: Date: Fri, 12 May 2006 14:51:56 +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-2271@lists.php.net to get a copy of this message
Why do you need ext/soap on server side if you like work with dom? You can do just $dom = dom_import_string($HTTP_RAW_POST_DATA); Dmitry. > -----Original Message----- > From: David [mailto:me@contents.nl] > Sent: Friday, May 12, 2006 11:24 AM > To: Dmitry Stogov > Cc: 'Peter De Vries'; 'Paul Osman'; soap@lists.php.net; 'Rob > Richards' > Subject: Re: [SOAP] PHP5 SOAP Extension - Request Header > Elements with Attributes > > > 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 (#2271) next »