Re: Setting web service location dynamically

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Nils Magnus Englund (nils.magnus.englund_at_orkfin.no)
Date: 02/21/05


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
>>
>>
>>



Relevant Pages

  • Re: Setting web service location dynamically
    ... I feel slightly embarassed for not figuring that out by myself;) ... > In visual studio change the property 'URL Behavior' of the web service ... test and development environment for my web ... >> and a web service (The test web application connects to the test web ...
    (microsoft.public.dotnet.framework.aspnet)
  • SoapException: unable to generate temporary class
    ... I have a Biztalk assembly that has been working great in my dev environment. ... the Web Service Publishing Wizard with great success. ... ping the WSDL on my production W2K3 server. ...
    (microsoft.public.biztalk.general)
  • RE: Setting web service location dynamically
    ... test and development environment for my web application ... > and a web service (The test web application connects to the test web ... > Is it possible to let the web services location be set in e.g. Web.config? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Setting web service location dynamically
    ... test and development environment for my web application ... and a web service (The test web application connects to the test web ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: repost: Help with error "80070005"
    ... Have you tried running the SDK web service samples on your environment. ... The Messaging Engine failed to retrieve the configuration from the database. ...
    (microsoft.public.biztalk.general)