nuSOAP / .NET Web service
Posted: Wed Jun 24, 2009 8:54 pm
Hi -
I'm having issues trying to setup a nuSOAP client that will connect to a .NET web service.
I can connect fine, the issue I have is with handling the resulting XML / array, what ever it is that's coming out. Here's the code:
You can see what combo's I've played with in the commented out echos. The GetCityListResult will yield an "array" but I have no idea how to iterate through it to get the fields that I need?
Thanks for your help,
Rob
I'm having issues trying to setup a nuSOAP client that will connect to a .NET web service.
I can connect fine, the issue I have is with handling the resulting XML / array, what ever it is that's coming out. Here's the code:
Code: Select all
<?php
/*
* $Id: wsdlclient1.php,v 1.3 2007/11/06 14:48:48 snichol Exp $
*
* WSDL client sample.
*
* Service: WSDL
* Payload: document/literal
* Transport: http
* Authentication: none
*/
require_once ('lib/nusoap.php');
$wsdl = "http://dev.XXX.XXX/XXX.asmx?wsdl";
$params = array('XXX' => '204');
$namespace = "http://www.w3.org/2001/XMLSchema";
$soapAction = "http://tempuri.org/GetCityList";
$client = new nusoap_client($wsdl);
$result = $client->call('GetCityList', $params, $namespace, $soapAction);
//echo("<pre>". $client->response. "</pre>");
//echo $result["GetCityListResult"];
?>
Thanks for your help,
Rob