Into the ginseng, ginseng as json format, coding format for utf-8,
Call methods: int Interface (String Code, String InputJson, out String OutputJson)
Seems to call succeeds (the function return value=0), but no return parameter (ls_OutputJson no value), the web this didn't contact, a typical rookie, please masters stretched out a helping hand, you help me advice, thank you,
//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 "' + ', '+' "zhang SAN" '+', '
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 the IF
Destroy the ws
CodePudding user response:
The default encoding is encodingle16 pb string!If transceiver is uft8! Must be transcoding
Try a string (blob (), encodingutf8!)
CodePudding user response:
Into the travel is json, why use webservice, using a restful architecture is not betterCodePudding user response:
Webservice does not support the out parameter, you directly use function return value to get the return type is a string and try againCodePudding user response: