惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
C
Check Point Blog
V
V2EX
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
A
About on SuperTechFans
D
DataBreaches.Net
腾讯CDC
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
博客园_首页
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

博客园 - civ3's .NET studying

Comet in IE comet研究 IIS.pk(vs2005)==Mutex - civ3's .NET studying [Reading]THIRD BASE 良性克服Firefox跨站 Notify Server 战国[节选] Merssenger线程通讯图 Ajax.NET关键 Ajax多线程 Merssenger构想与原型开发[0] CTeX学习散列 多媒体杂志 [Discovery]msn space trackbackable! HTC到StoryBoard——DHTML迁移到WPF(二) MyText RAR控制台日常备份策略 Easy Binding(DataContext,TwoWay) WPF自学方法
动态加载Web Service - civ3's .NET studying
civ3's .NET · 2006-08-10 · via 博客园 - civ3's .NET studying

比如你已经用教科书式的方法添加了一个Web Referece,然后现在这个Web Service内容没有变,只是换了各地方。比如从localhost:8080/a.asmx换到了localhost:8090/a.asmx。如此一来你不必重新修改Web Reference只需要在使用WebMethod时
WebS.A a = new WebS.A();
a.Url="http://localhost:8090/a.asmx"
a.remoteDosth();
就可以了!

可以把Url字符串存到config里面,用的时候去取。
简单罢?