时间:2021-07-01 10:21:17 帮助过:14人阅读
$url = 'http://b2b.ourgame.com/DDService.asmx?wsdl'; $soapClient = new soapclient($url); /* 读取可用的方法和所需的数据结构 */ print_r( $soapClient->__getFunctions ()); print_r($soapClient->__getTypes () ); $rs = $soapClient->Sale(); print_r($rs);
------解决方案--------------------
ini_set("soap.wsdl_cache_enabled",0); try{ $client = new SoapClient("http://b2b.ourgame.com/DDService.asmx",array("exceptions" => 1)); var_dump($client->Sale(array("arg0"=>1,"arg1"=>"123","arg2"=>"456","arg3"=>"789","arg4"=>4,"arg5"=>5,"arg6"=>"111","arg7"=>"222"))); }catch(Exception $ex){ var_dump($ex->faultstring); }