Page 1 of 1

Getting XML format from SOAP response

Posted: Fri May 14, 2010 4:21 pm
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.

Re: Getting XML format from SOAP response

Posted: Mon May 17, 2010 1:35 pm
by yacahuma
do you have access to the wsdl?