51Testing软件测试论坛
标题:
webservice返回报错"UTF-8 start byte 0xb8 (at char #1395, byte #127)"
[打印本页]
作者:
chysummer
时间:
2016-1-19 17:09
标题:
webservice返回报错"UTF-8 start byte 0xb8 (at char #1395, byte #127)"
以下是脚本,基于soap调用
Action()
{
soap_request("StepName=SOAP Request",
"URL=http://10.60.44.101:9561/webservice/realtimeTrading.ws",
"SOAPEnvelope="
"<soapenv:Envelope xmlns:soapenv=\"
http://schemas.xmlsoap.org/soap/envelope/\
" xmlns:ser=\"
http://service.hundsun.com\
">"
"<soapenv:Header></soapenv:Header>"
"<soapenv:Body>"
"<ser:getMsg>"
"<ser:in0>"
"<?xml version=\"1.0\" encoding=\"utf-8\"?> "
"<ATS> "
" <
UB> "
"<TransSource>test</TransSource> "
"<TransCode>1101</TransCode> "
"<TransDate>20130730</TransDate> "
"<TransTime>165900</TransTime> "
" <TransSeq>201307301259550117</TransSeq> "
"</PUB> "
"<IN> "
" <RD> "
" <RdSeq>201611111111111</RdSeq> "
" <ApplyEntity>1203</ApplyEntity> "
" <
ayType>TT1001</PayType> "
" <CorpAct></CorpAct> "
" <OppAct>6227001214570026095</OppAct> "
" <OppActName>apple</OppActName> "
"<OppArea>3100</OppArea> "
"<OppBank>
AB</OppBank> "
" <Cur>CNY</Cur> "
" <Amount>89.88</Amount> "
" </RD> "
" </IN> "
"</ATS>"
"</ser:in0>"
"</ser:getMsg>"
"</soapenv:Body>"
"</soapenv:Envelope>",
"SOAPAction=",
"ResponseParam=response",
"Snapshot=t1453188811.inf",
LAST);
lr_error_message ("返回:%s",lr_eval_string("{response}"));
return 0;
}
打印出来的结果是:
:<soap:Envelope xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/
" xmlns:xsd="
http://www.w3.org/2001/XMLSchema
" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance
">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Invalid UTF-8 start byte 0xb8 (at char #1395, byte #127)</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Ending action Action.
请问脚本里哪里有问题
作者:
chysummer
时间:
2016-1-19 17:54
up
作者:
chysummer
时间:
2016-1-19 18:47
谁知道是什么问题吗
作者:
chysummer
时间:
2016-1-20 09:22
谁知道是什么问题吗
作者:
chysummer
时间:
2016-1-20 10:45
谁知道是什么问题吗
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2