调用webservice问题

whirl 2003-06-28 01:35:33
webservice服务器的地址改变了,用vc.net编的程序怎么实现动态加栽
...全文
62 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
thinkingforever 2003-06-28
  • 打赏
  • 举报
回复
楼上这位老兄说得对。
saucer 2003-06-28
  • 打赏
  • 举报
回复
or use wb.config, for example

service = new Acmeco.AcmecoService();
service.Timeout = 10000;
service.Url = ConfigurationSettings.AppSettings["AcmecoWebServiceUrl"];

if you are using VS.NET, you can also change the "Url Behavior" from "Static" to "Dynamic" in the properties of the web service
see
http://www.aspalliance.com/shark/articles/WSDL/Wsdl.aspx
jhnhu 2003-06-28
  • 打赏
  • 举报
回复
修改 Service1.URL 的值

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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