Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hiya all,

 

Been looking into Web Services abit. My system has a Web service that is running on a server and the client machines are able to use the service with no problem.

 

My problem however is that I would like to dynamically change the web reference on the client application. This is because when you add the Web Reference while coding the client you write in the static address to the Web Service. I would hate to recompile the client code everytime the service changes location and then export the client App to all the PCs its been installed to.

 

Basically, is there a way of, for example, to extract the Web service address from a SQL-DB/File/Entry and then connect to that service?

 

Best Wishes,

Farek

Posted
If you select the web reference in Solution Explorer and look at the property window there should be an option 'URL Behaviour' (or similar) - change that from static to dynamic and it will move the url to the .config file.

 

Does this mean I'll have to change every app.config file on every PC the software is installed? I cant find any property where I can change the value in the app.config file. :(

 

Best Wishes,

Farek

  • Administrators
Posted

You could investigate UDDI ,http://www.microsoft.com/uddi being a good place to start. Window Server 2003 ships with a UDDI service that may make your life easier.

 

In theory :) the clients would be coded to query the UDDI server for the location of the web service - if the service moves then the UDDI server would be updated. As long as the UDDI server's URL doesn't change then things should be reasonably simple.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...