Ciao,
I have been trying to solve this issue on my own and I have now gave up and decided to try to get help from the master.
I have a client request to a soap webservice that returns the data I need.
The issue is the data format that comes out as follow:
[b]<?xml version="1.0" encoding="utf-8"?><item>[/b] |
Because of it I have not been able to figure out how to parse it and how to get the node information I need.
Here is the simple code I am using to make the call:
<?php
require_once('../lib/nusoap.php');
$soapclient = new SoapClient('http://providerdomain.com/api/soap_send.php?wsdl',true);
$soapclient->soap_defencoding = "UTF-8";
$soapclient->namespaces = array(
'xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
'xsd' => 'http://www.w3.org/2001/XMLSchema',
'soap' => 'http://schemas.xmlsoap.org/soap/envelope/'
);
$namespace = "http://providerdomain.com/api/soap_send.php";
$soapAction = "http://providerdomain.com/api/soap_send.php/monthlyStatsInfo";
$parts = array(
'client' => 'sprintrade', //required field to get access to the webservice
'add_code' => 'CDxxxx', //required field to get access to the webservice
'password' => 'xxxxx', //required field to get access to the webservice
);
//get the feed
$response = $soapclient->call('monthlyStatsInfo', $parts, $namespace, $soapaction, '','','rcp');
echo '<h2>Result</h2><pre>';
print_r($response);
echo '</pre>';
?> |
I really appreciate your help. Thanks very much.