Home > database >  Master come in, please urgent urgent pb9 webservice
Master come in, please urgent urgent pb9 webservice

Time:09-22

Five function call the parameters passed in the first parameter is a structure, structure also defines a structure, call this function, a "rror calling method of a PBNI object" message, the interruption, in the first argument, if no longer define substructure, function can be normal call, could you tell me how to solve

CodePudding user response:

The code is as follows:



The SoapConnection lsc_conn
Lsc_conn=Create the SoapConnection
Lsc_conn. SetOptions (ConnectionCache="true")
Servicesoap lproxy_obj
String ls_proxy_name="servicesoap"//generated proxy object name
String ls_url
The select varvalue into: ls_url from systemvar where varname='WSDL';
String ls_hosid
The select varvalue into: ls_hosid from systemvar where varname='newnhhosid';
String ls_uid
The select varvalue into: ls_uid from systemvar where varname='newnhuid';
Int li_ret, I
Li_ret=lsc_conn. Createinstance (lproxy_obj ls_proxy_name, ls_url)
If li_ret & lt;> 0 Then
MessageBox (" error ", "call fails, an error number:" + String (li_ret))
Destroy lsc_conn
The Return//false
End the If
Long ll_id
Ll_id=parentwindow () function dynamic wf_addtext (" are uploading data...
")
Datetime ldt_kk
The date ld_kk
Ld_kk=date (' 2010-10-02 ')
Time lt_kk
Lt_kk=time (' 20:08:08 ')
Ldt_kk=datetime (ld_kk lt_kk)
Tns__MZTCZInfo t_MZTCZInfo
T_MZTCZInfo. KsID=31
T_MZTCZInfo. DoctorName="xiao-bing zhou"
T_MZTCZInfo. JzDate=ldt_kk
T_MZTCZInfo. JBBM='J00. X03'
T_MZTCZInfo. LoginUserID=ls_uid
T_MZTCZInfo. Remark=""
T_MZTCZInfo. BCPZ=""
T_MZTCZInfo. Zfy=80

String ls_wareid
Long ll_count ll_for, ll_xid, ll_num
A decimal {2} ldec_cc
String ls_waremark ls_typemark, ls_dlb
String ls_null
Ll_count=1//dw_2 rowcount ()
For ll_for=1 to ll_count
T_MZTCZInfo. QdInfo [ll_for]. MedID=3492
T_MZTCZInfo. QdInfo [ll_for] hisID="2", "
T_MZTCZInfo. QdInfo [ll_for] allNumber=1
T_MZTCZInfo. QdInfo [ll_for] allPrice=60
T_MZTCZInfo. QdInfo [ll_for] DLB='0'
If the trim (ls_null)="" then setnull (ls_null)
T_MZTCZInfo. QdInfo [ll_for]. "reason=" "//ls_null

T_MZTCZInfo. QdInfo [ll_for] itemid=0
T_MZTCZInfo. QdInfo [ll_for] wcid=0
T_MZTCZInfo. QdInfo [ll_for] bcMoney=0
T_MZTCZInfo. QdInfo [ll_for] lbCode=""
T_MZTCZInfo. QdInfo [ll_for]. Id=0
Next

String ls_K
Ls_k='51068210720110005403'
Long ll_k
Long ld_k
Ll_k=1
Ld_k=99
Tns__MZQDRetrun t_MZQDRetrun
T_MZQDRetrun=lproxy_obj. MZTCZLoginInt (ref t_MZTCZInfo, ll_k, ld_k, ls_k, ls_hosid)

CodePudding user response:

T_MZTCZInfo is a structure, but there is a substructure in its elements, so wrong

CodePudding user response:

Key to see if he defined in the DLL.
Data types match.

CodePudding user response:

Don't know to solve this problem no, I have encountered this

CodePudding user response:

Don't know to solve this problem no, I have encountered this

CodePudding user response:

Don't know to solve this problem no, I have encountered this

CodePudding user response:

Presumably easysoap does not allow the structure as a parameter
  • Related