Re: [SOAP] Need help figuring out what I'm doing wrong accessing this Web Service
| From: | Richard Quadling | Date: | Thu, 30 Dec 2010 21:49:11 +0000 |
| Subject: | Re: [SOAP] Need help figuring out what I'm doing wrong accessing this Web Service | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-3214@lists.php.net to get a copy of this message | ||
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