RE: [PEAR] Re: help with SOAP returning XML
| From: | Jones, Douglas 1 | Date: | Thu, 30 Dec 2004 13:24:38 +0000 |
| Subject: | RE: [PEAR] Re: help with SOAP returning XML | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-16517@lists.php.net to get a copy of this message | ||
Ok, here is the truncated code. I cut out everything that I thought wouldn't be applicable.
//a class that represents our SOAP server
class SOAPServerClass
{
//will hold an instance of the PEAR::SOAP server
var $soapServer;
function SOAPServerClass()
{
//switch off notices to all GET
error_reporting(E_ALL ^ E_NOTICE);
$this->soapServer=new SOAP_Server();
$this->soapServer->addObjectMap($this, 'http://uri#getList'); //changed uri to a fake one...
//but you get the idea
//turn on the server
$this->soapServer->service($GLOBALS['HTTP_RAW_POST_DATA']);
}
function getList($numResults, $lastResult, $order, $keyword, $created)
{
/*
this function has been cut out
all you need to know is that it returns a string
that contains XML
it is the XML returned from here that has the "<" and ">"
transformed into "<" and ">"
*/
}
}
//create our class which will start the server
$server = new SOAPServerClass();
?>
--
Doug Jones
Co-Op Web Developer
douglas.1.jones@lmco.com
-----Original Message-----
From: Michael Rasmussen [mailto:mir@miras.org]
Sent: Wednesday, December 29, 2004 6:01 PM
To: pear-general@lists.php.net
Subject: [PEAR] Re: help with SOAP returning XML
On Wed, 29 Dec 2004 14:34:07 -0500, Douglas 1 Jones wrote:
> I have the SOAP PEAR package set up correctly to the point where I can
> send a request and get a response. However, my web service is designed to
> return XML back to the caller. When I do this, all of the tags have their
> "<" and ">" converted to < and >. I have spent much
> time searching
> the web for an answer to this, but have come up empty handed. If anyone
> knows how to solve this that would be great.
Could you provide the code? It might be a little easyer to help you:-)
--
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php