文件名称:thinkphp下使用soap
文件大小:134KB
文件格式:ZIP
更新时间:2018-01-14 13:59:09
soap程序代码
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); }
【文件预览】:
soap
----class.wsdlcache.php(5KB)
----class.nusoap.php(291KB)
----class.soap_server.php(40KB)
----class.soap_transport_http.php(45KB)
----class.soapclient.php(33KB)
----class.soap_val.php(2KB)
----class.nusoap_base.php(30KB)
----class.wsdl.php(78KB)
----class.soap_fault.php(2KB)
----class.xmlschema.php(35KB)
----class.soap_parser.php(25KB)
----class.nusoapmime.php(15KB)