Results 1 to 2 of 2

Thread: Dynamically adding a reference to web service.(resolved...)

  1. #1

    Thread Starter
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464

    Dynamically adding a reference to web service.(resolved...)

    Is there a way to dynamically add the location of a web service. Here is why:

    I am developing a web reference on my localhost. I am also developing a client app on the same computer. Obviously I am able to connect and run the web services just fine. Now, I got to move this set up to the client site. At the client site, they are going to have one dedicated box to the web services and the database. The client app will be installed on multiple computers around the network. All this is internal, and the web services won't be available from outside.

    If I was to compile the client application as it is now, and take it down there to install, it will think the web services are at local host, not the other server that it will actually be at.

    So I am wondering if there is a way I can set up a location string in the app.config file that I can change when I get to the client site that will point to the exact server that is running the web service?
    Last edited by hellswraith; Oct 9th, 2003 at 01:50 PM.

  2. #2

    Thread Starter
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I just realized I could edit the proxy class. So in its constructor, I just replaced the Me.URL reference from a literal string to a string from the app.config file.

    Seems to work so far, I will keep this thread updated on the situation in case others are interested.

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