Getting XML format from SOAP response

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
victorsk
Forum Commoner
Posts: 43
Joined: Thu Apr 19, 2007 6:55 pm

Getting XML format from SOAP response

Post by victorsk »

Hi everyone,

I thought maybe somebody would know SOAP-PEAR intricacies so as to help me. I am trying to get the SOAP response in a simple XML format. The $soap_response variable in my code gives an Array type result with multiple elements. What I need is just a simple XML format from this response.

Code: Select all

$soap_response = $_SESSION['client']->GetAirLevelResponse(new Soap_Value('request', "object", $param_data[0]));
$response_xml = $_SESSION ['client'] -> getLastResponse();  //returns NULL
There is a response in $soap_response variable but NULL when var_dump($response_xml).

Is there a way to get a simple XML format from response? SOAP-PEAR is what I must work with.

Thank you,
Victor.
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: Getting XML format from SOAP response

Post by yacahuma »

do you have access to the wsdl?
Post Reply