PC Review


Reply
Thread Tools Rate Thread

Consuming Web Services with dynamic url behaviour

 
 
Eric
Guest
Posts: n/a
 
      12th Sep 2003
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
 
Reply With Quote
 
 
 
 
Mikael
Guest
Posts: n/a
 
      12th Sep 2003
Dim ws As New myWebService
ws.Url = "http://www.somehost.com/myWebService.asmx

Will this work for you?

/Mikael

>-----Original Message-----
>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
>.
>

 
Reply With Quote
 
Eric Pat
Guest
Posts: n/a
 
      12th Sep 2003
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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Ryan
Guest
Posts: n/a
 
      3rd Oct 2003
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help : ASP.NET Strange behaviour with time consuming processes veenakj@gmail.com Microsoft ASP .NET 1 22nd Dec 2005 03:13 PM
Need Help : ASP.NET Strange behaviour with time consuming processes veenakj@gmail.com Microsoft Dot NET 1 22nd Dec 2005 07:04 AM
consuming dynamic URL's =?Utf-8?B?RyBMZWlmaGVpdA==?= Microsoft VB .NET 0 19th Aug 2005 05:07 PM
Consuming Web Services Pablo Salazar Microsoft C# .NET 1 6th Jan 2004 10:30 PM
Consuming XML Web Services from ASP.NET Tomas Deml Microsoft ASP .NET 0 10th Nov 2003 05:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:52 PM.