This is my very first time working with web-services and NuSoap (and SOAP overall). What I'm trying to do is a very simple CALL function using NuSoap, and as simple as it looks, I just can't make it work.
This is my 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 that code can be seen here:
http://dev.etic.com.mx/bmv/test.php
ANY help will be greatly welcome. If you need more information just let me know.
Thanks in advance
在创建客户端时,添加第二个boolean
参数true
,它告诉库您正在使用WSDL文件。
$client = new nusoap_client($url, true);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.