请教,pb8.0调用webservice返回参数的问题,急!!!
pb8.0通过ole方式调用webservice
入参、出参为json格式,编码格式为UTF-8格式,
调用方法:int Interface(String Code,String InputJson , out string OutputJson)
貌似调用成功(调用函数返回值=0),但无返回参数出来(ls_OutputJson无值),对web这块没接触过,典型菜鸟,请各位大侠伸个援手,帮忙指教一下,谢谢。
//test
String ls_wsdl = '',ls_input
string ls_OutputJson=space(1024)
int i,r
ls_input="{"
ls_input+=' "body"'+':'+' {'
ls_input+=' "medicalType"'+':'+' "01"'+','
ls_input+=' "name"'+':'+' "张三"'+','
ls_input+=' }'
ls_input+='}'
oleobject ws
IF not isvalid(ws) THEN
ws = Create oleobject
i=ws.ConnectToNewObject("MSSOAP.SoapClient30")
ls_wsdl = 'http://192.168.1.1:8000/Messageapi.asmx?wsdl'
ws.mssoapinit(ls_wsdl)
ws.ConnectorProperty("Timeout",180000)
r = ws.Interface("F001",ls_input,ref ls_OutputJson)
END IF
Destroy ws