662
社区成员
发帖
与我相关
我的任务
分享
//代码如下:
//---连接WebService
long ll_returnint li_ret
SoapConnection lsc_conn
locationgatewayimplport lsrv_obj
powerobject pb_objname
String ls_url = "http://www.jxin.com.cn:7080/lbs/ws/locationService"
//String ls_url = "http://www.jxin.com.cn:7080/lbs/ws/locationService?wsdl"
//String ls_url = "http://www.baidu.com"
lsc_conn = Create SoapConnection
ll_return = lsc_conn.createInstance(lsrv_obj,"locationgatewayimplport",ls_url)
//这边返回0 连接成功!
lsc_conn.SetOptions("SoapLog=~"soaplog.txt~"")
tns__authenticateresult lst_authenticateresult
tns__locate lst_locate
tns__locateresponse lst_locatereponse
tns__locateresult lst_locateresult
tns__login lst_login
tns__loginresponse lst_loginresponse
lst_login.account = 'jxtest'
lst_login.password = 'jxtest'
lst_loginresponse = lsrv_obj.login(lst_login) //这边开始报错
//代码如下:
//---连接WebService
long ll_return
int li_ret
SoapConnection lsc_conn
locationgatewayimplport lsrv_obj
powerobject pb_objname
String ls_url = "http://www.jxin.com.cn:7080/lbs/ws/locationService"
//String ls_url = "http://www.jxin.com.cn:7080/lbs/ws/locationService?wsdl"
//String ls_url = "http://www.baidu.com"
lsc_conn = Create SoapConnection
ll_return = lsc_conn.createInstance(lsrv_obj,"locationgatewayimplport",ls_url)
//这边返回0 连接成功!
lsc_conn.SetOptions("SoapLog=~"soaplog.txt~"")
tns__authenticateresult lst_authenticateresult
tns__locate lst_locate
tns__locateresponse lst_locatereponse
tns__locateresult lst_locateresult
tns__login lst_login
tns__loginresponse lst_loginresponse
lst_login.account = 'jxtest'
lst_login.password = 'jxtest'
lst_loginresponse = lsrv_obj.login(lst_login) //这边开始报错