Re: [SOAP] Need help figuring out what I'm doing wrong accessing this Web Service

[email protected] (Richard Quadling) Thu, 30 Dec 2010 21:49:11 +0000
Newsgroups php.soap
Message-ID <[email protected]>
On 30 December 2010 21:35, newcoder <[email protected]> wrote:
>
> All $agLoginResults gives me is:
>
> var_dump of $agLoginResults
> object(stdClass)#3 (1) { ["agLoginResult"]=> object(stdClass)#4 (1) {
> ["any"]=> string(168) "myDNmyUserNamexxxxxxx" } }
>
> print_r of $agLoginResults
> stdClass Object ( [agLoginResult] => stdClass Object ( [any] =>
> myDNmyUserNamexxxxxxx ) )
>
>
>
> RQuadling wrote:
>>
>>
>> $agLogin is the request side of things.
>>
>> You need to be looking at the response (sorry if I messed that up for
>> you).
>>
>> $agLoginResults

I bet you are displaying your results in a browser. Clearly, all the
XML tags have disappeared.

Can you run the code from the command line or use
htmlentities($agLoginResults, ENT_QUOTES);

But, it looks like the login is working just fine though you will have
to manually decode the results.

Or use http://www.php.net/manual/en/function.simplexml-load-string.php
-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY