首页 >后端开发 >php教程 >soap:Server: Fault occurred while processing.

soap:Server: Fault occurred while processing.

WBOY
WBOY原创
2016-06-23 14:24:074336浏览

求助,用php与susoap操作java写的webservice总是出现soap:Server: Fault occurred while processing.


回复讨论(解决方案)

这个是代码部分
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 ();
}

自己解决了,,,

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn