资源说明:thinkphp内使用soap
把下载的soap解压放到ThinkPHP\Extend\Vendor目录下
名字是soap
调用方法:
function test($url,$method,$data){
vendor('soap.class#nusoap'); //从soap目录导class.nusoap.php类文件
$client = new nusoap_client($url. "?WSDL", "wsdl");
$client->soap_defencoding = 'utf-8';
$client->decode_utf8 = false;
$client->xml_encoding = 'utf-8';
return $client->call($method, $data);
}
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。