当前位置:Gxlcms > PHP教程 > soap-PHPSOAP问题求帮助!

soap-PHPSOAP问题求帮助!

时间:2021-07-01 10:21:17 帮助过:49人阅读

soapphp

$objSoapClient = new SoapClient("http://system.4haiyou.com/Merchant/Order.asmx?WSDL");
$pwd = 'e10adc3949ba59abbe56e057f20f883e';
try{
$param = array('userName'=>'jerry@163.com',
'password'=>$pwd,
'Address1'=>'Baoan',
'Address2'=>'mingyou',
'City'=>'Shenzhen',
'ContactName'=>'Zhangjunwen',
'Country'=>'CN',
'OrderLine'=>'test',
'OrderNumber'=>'11111111',
'Phone'=>'111111111',
'Province'=>'Guangdong',
'ShippingFee'=>'',
'ShippingType'=>'',
'Status'=>'',
'TrackingNumber'=>'',
'Value'=>'',
'Zipcode'=>'',
'GuaranteePrice'=>''
);
$out = $objSoapClient->AddOrder($param);
$data = $out->AddOrderResult;

echo $data->ACK;
echo '
';

}catch(SoapFault $e){
print $e->getMessage();
}

?>

以上代码执行 无报错 也无返回信息, 不知道 这样写 代码错了没,新手求帮助!求帮助!求帮助!求帮助!

人气教程排行