Getting XML format from SOAP response
Posted: Fri May 14, 2010 4:21 pm
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.
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.
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
Is there a way to get a simple XML format from response? SOAP-PEAR is what I must work with.
Thank you,
Victor.