Hi,
I'm stuck with a problem with PHP's build in SOAP functions here at work.
We're using PHP 5.1.4
I make a soap call to a server from another department to get some info.
request en response are ok when I print them out with getLastRequest() and getLastResponse(), but the array that __soapCall returns is empty.
the response is something like this:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<FunctionResponse xmlns="http://namespaceserver">
<Element1 attributeName1="value1" />
<Element2 attributeName2="value2" />
</FunctionResponse>
</soap:Body>
</soap:Envelope>
but the array returned by __soapCall is:
Array ( [Element1] => [Element2] => )
It drops the attributes from the elements out of the response, but value1 and value2 is the info I need.
I googled and searched this forum for a solution for this, but I've not found a solution.
Is there an option to add to soapclient constructor or soapcall to include the attributes?
Is this even a client problem, or is it caused by the soap server I address?
Help would be greatly appreciated.
Thanks.