时间:2021-07-01 10:21:17 帮助过:23人阅读
这个是代码部分
require_once("lib/nusoap.php");
$client = new SoapClient('http://sdata.et361.com/Service/shutDownPolicyService?wsdl','wsdl');
$userName='username';
$key='key';
$airway ='';
$orgcity ='';
$destcity ='';
$type="1";
$sign = md5($userName.$key.$airway.$orgcity.$destcity.$type);
$arr = array('userName'=>$userName,'key'=>$key,'airway'=>$airway,'destcity'=>$destcity,'orgcity'=>$orgcity,'type'=>$type,'sign'=>$sign,'param1'=>'','param2'=>'','param3'=>'','param4'=>'','param5'=>'');
try{
$shutDownPolicyRequest = $client->call("shutDownCachePolicy",$arr);
echo "
";
if(!$client->getError()){
var_dump($shutDownPolicyRequest);
}
else{
echo $client->getError();
}
}catch(SoapFault $e) {
echo $e->getMessage ();
}
自己解决了,,,