Consuming Web Services with dynamic url behaviour

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

Hi,

In smart device application development (PocketPC2002,
VS.NET 2003, .NET Compact Framework), is there a way to
consume Web Services with "dynamic" url behaviour? So that
after a Web Service is added as a web reference, one can
still change the http address (the server which hosted the
Web Services) through a config file after it is compiled
and deployed. I don't see the URL Behaviour attribute
appears in the property, but I just wonder if there is
anyone knows anyway.

Thanks,

Eric
 
Yeah, I think this may. The only thing that may have to be done is to
have some code written to dynamically lookup the http address value and
assigned that to the URL attribute. Thanks a lot, Mikael.

Eric
 
Eric,

I don't know if you have made it work, but I think the method
suggested may not wrok. VS.Net does not respect the URL property set
in the suggested way, instead, it will use the URL value set in a
auto-generated file Reference.vb. Therefore, you may have to modify
this file to use a dynamic Web Service URL.

Ryan
 
Back
Top