pb10调用webservices,为何其他机器报错?

zhangwoqian 2007-09-27 10:53:49
用PB10 调用 webservices (asmx),在开发机器上没有问题,使用正常,在其他机器上运行时报错,把DLL考过去也不行,还差什么?

报错信息:

初始化连接CreateInstanc时报 RUNTIME 错
...全文
245 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
zzjder_sh 2009-02-16
  • 打赏
  • 举报
回复
PB9如何调用有身份验证的Webservice????
UltraBejing 2008-05-01
  • 打赏
  • 举报
回复
关注 接分
knowledge_Is_Life 2008-05-01
  • 打赏
  • 举报
回复
支持搂主,收藏
bpy 2008-03-12
  • 打赏
  • 举报
回复
学习.
yellowant 2008-02-19
  • 打赏
  • 举报
回复
SoapConnection conn // Define SoapConnection
webservice proxy_obj
long rVal, lLog
string amount

//Define endpoint. You can omit it, if you want to use
//the default endpoint inside proxy
string str_endpoint
str_endpoint = "http://localhost/webservice"//WebService.asmx"
conn = create SoapConnection //Instantiated connection

rVal = Conn.createinstance(proxy_obj, "webservice", str_endpoint)// Create proxy object

try
amount = proxy_obj.helloworld() // Invoke service
sle_1.Text = amount
catch( SoapException e )
messagebox ("Error", "Cannot invoke Web service") // error handling
end try
destroy conn

yellowant 2008-02-19
  • 打赏
  • 举报
回复
我也遇到了同样的问题,我试了好几台机器,有的行,有的不行.有那位知道原因吗?

662

社区成员

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

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