740
社区成员
发帖
与我相关
我的任务
分享
string ls_option,as_web_url
long ll_return
soapconnection conn
ws_iproductsoap11port soap
try
conn = create soapconnection
catch (RUNtimeerror e11)
messagebox('', '创建soapconnection出现错误,错误消息是: ' + e11.getMessage() )
return
end try
as_web_url = 'http://202.105.115.150:8085/Product?wsdl'
ls_option = "address='" + as_web_url + "'"
ll_return = conn.setproxyserveroptions(ls_option)
if ll_return <> 0 then
messagebox('',"Web service配置错误")
return
end if
ll_return = conn.createinstance(soap, "ws_iproductsoap11port",as_web_url)
if ll_return <> 0 then
messagebox('',"Web service建立错误")
return
end if
try
string result
result = soap.createproduct("sessionid=0024-9999_ff7dcd27-86f1-49c2-bb1d-27b750077954#rlb=002020120101990100010101#avpr=01058394#card=172999910001:vdisc=0.5:vpnt=100#prod=0001015:tp=1.0:disc=0.8:qty=2:sp=0.8:spnt=10")
messagebox('',result)
catch(Exception e14)
messagebox('',e14.getMessage())
end try
destroy soap
destroy conn