Webservice URL

Discussion in 'ASP .Net Web Services' started by ViperGTS-R, Nov 15, 2004.

  1. ViperGTS-R

    ViperGTS-R Guest

    Hi,

    I've written a webservide which works fine. I call it from a C# class by
    using a webreference. But now I want to place my webservice on another
    webserver and that results in replacing the webreference and recompile the
    code. My question is how I can prevent this. I used the webconfig.xml to put
    in the serviceUrl but I do not manage to get it working.
    In short the question is how cab I provide the URL of a webservice to a C#
    application.

    Thanks
    Carlo
     
    ViperGTS-R, Nov 15, 2004
    #1
    1. Advertisements

  2. ViperGTS-R

    Martin Kulov Guest

    Hello ViperGTS-R,
    Open properties window of your web reference proxy and select dynamic behavior. This will place an entry in your web.config file which you can modify when you change the server of your web service. Or if you want to change the location in runtime you can modify the Url property of the web service reference instance.

    HTH,
    Martin Kulov
    www.codeattest.com
     
    Martin Kulov, Nov 15, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon paugh
    Replies:
    1
    Views:
    1,357
  2. batista
    Replies:
    1
    Views:
    1,128
    Laurent Bugnion
    Jan 26, 2006
  3. batista
    Replies:
    0
    Views:
    718
    batista
    Jan 26, 2006
  4. Mr. x
    Replies:
    2
    Views:
    860
    Andrew
    Oct 10, 2003
  5. Cyril
    Replies:
    2
    Views:
    4,799
    Cyril
    Jun 1, 2006
  6. Just D.
    Replies:
    0
    Views:
    815
    Just D.
    Aug 11, 2004
  7. Mr. x

    use another webservice in a webservice

    Mr. x, Sep 26, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    251
    Mr. x
    Sep 26, 2003
  8. Peter Nordström

    Webservice calling a webservice.....Error

    Peter Nordström, Oct 21, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    286
    Peter Nordström
    Oct 21, 2003
Loading...