I am very new to SOAP and struggling with this!
I am calling for a SOAP response from an sql database
$client = new SoapClient("url......");
$soapquery = array('CoCode' => $cocode, 'WAPassword' => $webpass, 'strSQL' => $sqlt);
$soapresult = $client->SQL($soapquery);
$balance = $soapresult->SQLResult;
print_r($balance);
The result shows in Chrome as the value requested, but when inspecting the source it shows as an xml
<NewDataSet>
<Table>
<TOTAL>3348.1200</TOTAL>
</Table>
</NewDataSet>
How can i get this information into either a PHP string or if i am calling more than one field into an array?
Thanks in advance.