//
OLEObject ole_gylpt_webservice
Long ll_state, ll_len
String rs_return
//string ls_param
String as_url, as_content
String ls_soapxml_start, ls_soapxml_end
String ls_input
Ls_soapxml_start='& lt; Soapenv: Envelope XMLNS: soapenv="http://schemas.xmlsoap.org/soap/envelope/" '+ & amp;
'the XMLNS: web="http://webservice.mis.elite.com/" & gt;
'& lt; Web: doServiceByJson>
Ls_soapxml_end='& lt;/jsonStr>
As_content="{" data" : {' appName ':' com. Elite. Mis', 'appProject' : 'WMS', 'appVersion' : 'hmis_gg_01', "+ & amp;
"' userIdentity ':' 9999 ', 'serviceName:' mybitisUserService ', 'methodName' : 'getLoginUser'," + & amp;
"' the parameters' : {' userCode ':' 3294 ', 'password' : '123456'}}}"
As_content="{" data" : {' appName ':' com. Elite. Mis', 'appProject' : 'WMS', 'appVersion' : 'hmis_gg_01', 'userIdentity' : '9999', 'serviceName:' hisService ', 'methodName' : 'addManufacturer', 'the parameters' : {' oper' : ', 'produrceid' : ', 'name' : ', 'ZJM' : ', 'status' :'}}} "
As_url='http://197.4.20.217:4980/com.elite.mis/dxws/soapService? WSDL: '
Ls_input=ls_soapxml_start + as_content + ls_soapxml_end
Ole_gylpt_webservice=create OLEObject
Ll_state=ole_gylpt_webservice. Connecttonewobject (" Msxml2. XMLHTTP. 6.0 ")
If ll_state & lt;> 0 then
Ll_state=ole_gylpt_webservice. ConnectToNewObject (" Msxml2. XMLHTTP. 3.0 ")
If ll_state & lt;> 0 then
Rs_return="connection MSSOAP SoapClient failure! Return parameter: "+ string (ll_state)
Goto _error
End the if
End the if
Ll_len=Len (ls_input)
Ole_gylpt_webservice. Open (" POST ", as_url, True)
Ole_gylpt_webservice. SetRequestHeader (" the content-type ", "text/XML. Charset=utf-8 ")
Ole_gylpt_webservice. SetRequestHeader (" the Content - Length ", String (ll_len))
Ole_gylpt_webservice. SetRequestHeader (" Authorization ", "auth=")
Ole_gylpt_webservice. Send (ls_input)
The Do While ole_gylpt_webservice. ReadyState & lt;> 4//query state, delay
The Yield ()
Loop
Rs_return=ole_gylpt_webservice. The responseText
Ole_gylpt_webservice. Disconnectobject ()
Destroy ole_gylpt_webservice
Return 0
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rs_return=ole_gylpt_webservice responseText this sentence to obtain the return value, set breakpoints stepping mode can be normal access to the return value, continuous operation system is an error, but really what's the problem?
CodePudding user response:
Ole_gylpt_webservice. Open (" POST ", as_url, false)Try to sync?
CodePudding user response:
You have to stick what you quoted wrong again,CodePudding user response:
Many WS type interface, PB WS object is invoked, the transmission of XML format is likely to be different, it is recommended to use HTTP request write XML string request parameters toCodePudding user response: