PB105 调用 Webservice 入参,返回都是结构体,结构体中是String
SoapConnection lsv_sconn
PushBloodInfoImplPort wbs_BloodImport
// 结构体
tns__pushbloodinfo pushbloodinfo
tns__pushbloodinforesponse pushresult
ls_spacename = "http://*****/index.php?m=Home&c=Public&a=login"
lsv_sconn = Create SoapConnection
ll_Ret = lsv_sconn.CreateInstance(wbs_BloodImport,"PushBloodInfoImplPort",ls_spacename)
If ll_Ret <> 0 Then
MessageBox('错误','"WebService 接口连接出错:' + String(ll_Ret),Exclamation!)
Return
End If
String ls_xml // 需传入的xml内容
pushbloodinfo.xmlstr = ls_xml
pushresult = wbs_BloodImport.pushbloodinfo(pushbloodinfo)
MessageBox('返回结果',pushresult.ws_return)
Destroy wbs_BloodImport
Destroy lsv_sconn
/*tns__pushBloodInfo*/
global type tns__pushBloodInfo from structure
string xmlStr
end type
/*tns__pushBloodInfoResponse */
global type tns__pushBloodInfoResponse from structure
string ws_return
end type
调用后报错 :Unexpected return Content-Type: text/html; charset=utf-8
有的大神说是不支持utf-8的格式,怎么解决