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

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

 



On 30 December 2010 21:35, newcoder <tillman.stevens@rockingr.net> 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

-- 
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