|
http://192.168.1.200/CMSWebService/WebService1.asmx?wsdl
获取的结果
我的PHP代码
[PHP]
<?php
try {
$fwsdl = "http://192.168.1.200/CMSWebService/WebService1.asmx?wsdl";
$client = new SoapClient($fwsdl);
var_dump($client);
var_dump($client->__getFunctions());
//echo $client->GetIP();
} catch (Exception $e) {
echo $e->getMessage();
}
?>
[/PHP]
运行结果
- mikkoyue [ ~/web_project/soap ]$ php c2csharp.php
- object(SoapClient)#1 (2) {
- ["_soap_version"]=>
- int(1)
- ["sdl"]=>
- resource(4) of type (Unknown)
- }
- array(4) {
- [0]=>
- string(38) "GetIPResponse GetIP(GetIP $parameters)"
- [1]=>
- string(53) "addUserJobResponse addUserJob(addUserJob $parameters)"
- [2]=>
- string(38) "GetIPResponse GetIP(GetIP $parameters)"
- [3]=>
- string(53) "addUserJobResponse addUserJob(addUserJob $parameters)"
- }
- mikkoyue [ ~/web_project/soap ]$
复制代码
很明显,获取到的函数列表不正确。 |
|