Re: Setting web service location dynamically
From: Nils Magnus Englund (nils.magnus.englund_at_orkfin.no)
Date: 02/21/05
- Next message: MattC: "aspnet_state.exe Internals Info Needed"
- Previous message: Nils Magnus Englund: "Re: Setting web service location dynamically"
- In reply to: Chris Podmore: "RE: Setting web service location dynamically"
- Next in thread: Chris Podmore: "Re: Setting web service location dynamically"
- Reply: Chris Podmore: "Re: Setting web service location dynamically"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 21 Feb 2005 17:00:07 +0100
Hi Chris, and thanks for your reply.
I think I indeed could do that, but that wouldn't let Visual Studio
automatically make the classes and return types I need to fetch data from
the web methods. It would however work great if I only used basic .NET types
for the web application <> web service communication.
Regards,
Nils Magnus Englund
"Chris Podmore" <ChrisPodmore@discussions.microsoft.com> wrote in message
news:1E05091B-C5F8-4968-BB1B-472232F2BBA0@microsoft.com...
> Something along the lines of:
>
> dim ws as new myWebService
>
> ws.url = "http://999.999.999.999/My_Web_Service/Service1.asmx"
>
> You could store the IP address in the web.config and just read it in
> before
> setting the ws.url.
>
> Hope this helps
> Chris.
>
> "Nils Magnus Englund" wrote:
>
>> Hi,
>>
>> I have a production, test and development environment for my web
>> application
>> and a web service (The test web application connects to the test web
>> service, and so on).
>>
>> Is it possible to let the web services location be set in e.g.
>> Web.config? I
>> don't want to recompile the web application every time I move it to
>> another
>> environment, nor do I want the code to be much more complicated than with
>> a
>> hardcoded location. The web service methods and classes are identical for
>> all three environments, so I could let VS.NET talk to the development web
>> service for figuring out class definitions etc. (I just want the actual
>> communication when the web app is in use to be to the web service
>> specified
>> by each environment).
>>
>> Hope I made it clear to you what I'm trying to figure out :)
>>
>> Thanks!
>>
>>
>> Regards,
>> Nils Magnus Englund
>>
>>
>>
- Next message: MattC: "aspnet_state.exe Internals Info Needed"
- Previous message: Nils Magnus Englund: "Re: Setting web service location dynamically"
- In reply to: Chris Podmore: "RE: Setting web service location dynamically"
- Next in thread: Chris Podmore: "Re: Setting web service location dynamically"
- Reply: Chris Podmore: "Re: Setting web service location dynamically"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|