Forum Moderators: coopster

Message Too Old, No Replies

How to grab XML BODY, from NUSOAP response?

         

kazisdaman3

11:51 am on Jul 19, 2008 (gmt 0)

10+ Year Member



Thanks for the help, I searched but couldn't find the answer to this, I know it is super simple but something I must be doing wrong. I'm just trying to get the BODY from a SOAP REQUEST, using NUSOAP, I know how to get the entire RESPONOSE

$result = $client->call("User_Data", array($request_xml), "urn:tss", "urn:tss");

$response = $client->response;

But is there something like

$body = $client->response->body; //? for instance ?

Any ideas on this? I assume it would just be

$response = $client->response;
$body = $response['body'];

But this doesn't appear to be true, any help would be greatly appreciated, I assume the answer is so simple but googling this, as easy as it seems, has shown no answers yet

eelixduppy

8:52 pm on Jul 19, 2008 (gmt 0)



Try dumping out the response to see what it contains:

[url=http://www.php.net/var-dump]var_dump[/url]($client->response);