Results 1 to 2 of 2

Thread: [2005] Web references

  1. #1

    Thread Starter
    Hyperactive Member Jonny1409's Avatar
    Join Date
    Mar 2005
    Posts
    308

    [2005] Web references

    Hello,

    I wonder if anyone can help me please ?

    I have about 20 Web Services which were originally created on my machine, and when I referenced them it had a reference to "http://localhost:1313/"

    I then published these to our server, and subsequently had to change the properties of every single web reference to "http://Server1/DB_WebService/"

    This is a bit of a carry on, and to be honest I only do this because I've been told to do it this way.

    Is there no way of doing these all at once ?

  2. #2
    Fanatic Member bgmacaw's Avatar
    Join Date
    Mar 2007
    Location
    Atlanta, GA USA
    Posts
    524

    Re: [2005] Web references

    You can use the URL property of your web service to change the location of the service on your clients.

    vb Code:
    1. _remoteService.Url = newUrlValue

    I usually just put the URL as a value in the config file for all the services I'm using and read it from there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width