NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Help on nusoap output.


Joined: 21 Dec 2008
Posts: 1
Reply with quote
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:
Code:

[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:
Code:

<?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.
View user's profileFind all posts by chicco0278Send private message
Help on nusoap output.
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic