pb中web service proxy的 proxyname指的是什么呀??

muzibs_corwin 2005-05-16 05:02:48
代理的名字是什么呀??
在代码中,conn.CreateInstance(ref,“porxyname”)
...全文
102 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
prdiga 2005-05-16
  • 打赏
  • 举报
回复
定义实例:
connection myconnect
struct_connection_info istruct_connection_info
建立连接:
myconnect=create connection
myconnect.driver =istruct_connection_info.driver
myconnect.application =istruct_connection_info.application
myconnect.location =istruct_connection_info.location
myconnect.trace =istruct_connection_info.trace
myconnect.userid =istruct_connection_info.userid
myconnect.password =istruct_connection_info.password
myconnect.connecttoserver()

if myconnect.errcode=0 then
(parent.title='用户'+Upper(myconnect.userid)+'已经连接到远端服务器'+upper (myconnect.application)+'上'
end if
调用服务器端函数:
uo_customers iuo_customer
st_custlist customer[]
string ls_custid
long ll_rc,i
ll_rc=myconnect.createinstance(iuo_customer)
if ll_rc<>0 then
messagebox("创建远端对象错误",ll_rc)
end if
iuo_customer.retrieve_custlist(customer)
dw_1.object.data=customer
destroy iuo_customer

662

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder Web 应用
社区管理员
  • Web 应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧