This project is read-only.
You will require the NsSOAP library to consume web services from PHP in this tutorial.
  • Make a reference to the NuSOAP llibrary in the PHP code and add the URL of the web service:
require_once("nusoap/lib/nusoap.php");
$service = 'http://labs.bwhazel.co.uk/services/GaussGraphService.asmx?wsdl';
  • Set up the SOAP client provided by NuSOAP:
$soap_client = new nusoap_client($service, 'wsdl');
$soap_client->setDefaultRpcParams(true);
$soap_client_proxy = $client->getProxy();
  • Create an array containing the GaussView output and pass it to the web service. Ensure the indexer is named output.
$param['output'] = $gvoutputString;
$csv_return = $soap_client_proxy->ToCsv($param);
$csv = implode($csv_return);
unset(soap_client);

Last edited Jul 17, 2012 at 12:12 AM by BWHazel, version 1

Comments

No comments yet.