Custom ASMX webService and Single URL for UAT and Production RRS feed

  • Question

  • User-489008729 posted

    Ive created a custom webservice on UAT server and I am testing the service using client application on the same server. I use UAT for development and user testing once finalize i move it to production so how to make changes in UAT and move on to production without changing the URL. please help.

    Friday, March 15, 2013 7:48 AM


All replies

  • User-760709272 posted

    Without changing which url?  The url of the service?  You can't, you should store the urls in the web.config file so that the code can be moved through your different environments, but the config on the UAT server points to the UAT webservice, and your production config file points to the production service.

    Friday, March 15, 2013 7:53 AM
  • User-489008729 posted

    Aidy ive created a ASMX based webservice using the following


    I am using a workflow product which only supports ASMX so cannot use WCF. I am not experienced in webservices just following tutorials. Can you please guide me how can I do this in easy way or perhaps IIS based? I would appreciate your help in guiding me right direction.

    Friday, March 15, 2013 8:08 AM
  • User-760709272 posted

    The object you create to call the methods on your webservice should have a Url property.  This is provider from the embedded settings by default, but your code can supply its own version at run-time from the web.config file.  Just update the .Url property to something from AppSettings.

    Friday, March 15, 2013 8:44 AM
  • User-489008729 posted

    Can you just tell me how can I create a ASMX webservice and deploy on IIS?

    Friday, March 15, 2013 8:53 AM
  • User-1000095884 posted

    Can you just tell me how can I create a ASMX webservice and deploy on IIS?


    You can refer a MSDN document below to refer a walkthrough on creating a web service.

    #Walkthrough: Creating a Custom ASP.NET Web Service


    Before deploy the service to IIS, you need installed IIS properly; then create a web site; publish the service to the web site, you can refer the steps in detail in below blog:

    #Publishing a Web Service on IIS 7 Server


    And a video tutorial: Serving New Content


    Best Regards.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 20, 2013 6:22 AM