Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
ASP.NET
Web Services
Dynamic Web Reference
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="selden03" data-source="post: 1723" data-attributes="member: 174"><p><strong>Dynamically Changing Web Service</strong></p><p></p><p>One approach I've taken is to create several web services, all with the same interface and same name (e.g. MyService.Asmx). Then I put them into various pages: <a href="http://myserver/web1/MyService.asmx">http://myserver/web1/MyService.asmx</a>, <a href="http://myserver/web2/Service.asxm">http://myserver/web2/Service.asxm</a>, etc. The interal process of each web service may be completely different from the others.</p><p></p><p>Then I create a proxy for one of these using wsdl.exe. I use this proxy in my client program. Then I just change the URL property of the proxy. </p><p></p><p>In order for this to work, all of the web services must have the exact same API, and same namespace.</p><p></p><p>Alternatively, you could include proxies for each different web service, but that would be a different approach from this one.</p><p></p><p>Good luck!</p><p> ---Selden</p></blockquote><p></p>
[QUOTE="selden03, post: 1723, member: 174"] [b]Dynamically Changing Web Service[/b] One approach I've taken is to create several web services, all with the same interface and same name (e.g. MyService.Asmx). Then I put them into various pages: [url="http://myserver/web1/MyService.asmx"]http://myserver/web1/MyService.asmx[/url], [url="http://myserver/web2/Service.asxm"]http://myserver/web2/Service.asxm[/url], etc. The interal process of each web service may be completely different from the others. Then I create a proxy for one of these using wsdl.exe. I use this proxy in my client program. Then I just change the URL property of the proxy. In order for this to work, all of the web services must have the exact same API, and same namespace. Alternatively, you could include proxies for each different web service, but that would be a different approach from this one. Good luck! ---Selden [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
ASP.NET
Web Services
Dynamic Web Reference
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom