php - Can't make a simple call to a web-service with NuSoap -
this first time working web-services , nusoap (and soap overall). i'm trying simple call function using nusoap, , simple looks, can't make work.
this code:
<?php require_once('nusoap/lib/nusoap.php'); $url = "http://server10logic.com/wsamib-0.1/services/comprobanteoperacion?wsdl"; try { $client = new nusoap_client($url); $result = $client->call('listcomprobanteoperacion'); } catch (soapfault $e) { echo 'error0'.$e->getmessage() . "\n"; } echo '<pre>';print_r($result); ?>
the result of code can seen here:
http://dev.etic.com.mx/bmv/test.php
any welcome. if need more information let me know.
thanks in advance
while creating client, add second boolean
parameter, true
, tells library working wsdl file.
$client = new nusoap_client($url, true);
Comments
Post a Comment