4,250
社区成员
发帖
与我相关
我的任务
分享<?xml version="1.0" encoding=“UTF-8”?>
<rt>
<tid>20140318155513001</tid>
<cid>STO</cid>
<uname>009933</uname>
<pwd>asd546546asd123sa65d4s654d65</pwd>
<infos>
<d>
<cd>1234567765</cd>
</d>
<d>
<cd>123456789</cd>
</d>
</infos>
</rt>
<?php
ini_set("soap.wsdl_cache_enabled", "0");
header("content-type:text/html;charset=utf-8");
$url = 'http://xs.kucangbao.com:80/kcb-1.0/cxf/NoSegment?wsdl';
//$url = 'http://kucangbao.oicp.net:8098/kcb-1.0/cxf/NoSegment?wsdl';
$uri = 'http://express.cxf.kcb.com';
try{
$string = '
<?xml version="1.0" encoding=“UTF-8”?>
<rt>
<tid>20140318155513001</tid>
<cid>STO</cid>
<uname>zyacs</uname>
<pwd>4302cd2621fc45b497de8b2e248cb1c7</pwd>
<infos>
<d>
<cd>1234567765</cd>
</d>
<d>
<cd>123456789</cd>
</d>
</infos>
</rt>
';
/**************************************************************/
$client = new SoapClient($url, array('trace'=>true,'exceptions'=>true));
$ret = $client->__soapCall('authorize',array($string));
print_r($ret);
?>
stdClass Object
(
[return] => <?xml version="1.0" encoding="UTF-8"?><rt><rc>0200</rc><rm>数据格式不正确,没法解析</rm></rt>
)
stdClass Object ( [return] => 0500系统异常或超时 )
==================================================================
array (size=3)
0 => string 'deauthorizeResponse deauthorize(deauthorize $parameters)' (length=56)
1 => string 'sendaddressResponse sendaddress(sendaddress $parameters)' (length=56)
2 => string 'authorizeResponse authorize(authorize $parameters)' (length=50)
==================================================================
array (size=6)
0 => string 'struct sendaddress {
string arg0;
}' (length=36)
1 => string 'struct sendaddressResponse {
string return;
}' (length=46)
2 => string 'struct deauthorize {
string arg0;
}' (length=36)
3 => string 'struct deauthorizeResponse {
string return;
}' (length=46)
4 => string 'struct authorize {
string arg0;
}' (length=34)
5 => string 'struct authorizeResponse {
string return;
}' (length=44)
stdClass Object
(
[return] => <?xml version="1.0" encoding="UTF-8"?><rt><tid>20140318155513001</tid><rc>0100</rc><rm>账号或验证码错误</rm></rt>
)