[VS2k8] Web Services keep using old code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Meganutter
    New Member
    • Mar 2009
    • 47

    [VS2k8] Web Services keep using old code

    Hi all,

    i'm having a really bothersome problem, i am currently building a web service and are testing it using a windows forms application. The problem is however, any changes to the code in the web service does not get reflected into the test application. I tried the following with no results.

    - Rebuild webservice
    - Update reference
    - Clean, build
    - Remove Temporary ASP.NET files
    - Remove temp files, rebuild, update reference
    - New webservice project

    Can anyone help me? i already wasted a day on trying to fix it with no results.
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    Is your WebService hosted on iis ....
    Are you updating the webservice.... and hosting it back to IIS

    Comment

    • Meganutter
      New Member
      • Mar 2009
      • 47

      #3
      My Webservice is hosted in IIS, i publish it TO IIS
      i found out that when i click "view in browser" on the asmx file that it does update then.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        In Java there are several different ways that you can consume a Web Service. You can use a stub, dynamic proxy, or use Dynamic Invocation Interface. A stub is created once and if any changes are made to the web server it is not reflected in the client unless the stub is recreated (usually at build time). Dynamic Proxy and dynamic invocation start to get around this a little.

        I don't have a lot of experience with web services in ASP.NET...but I suggest you look into what options you have to consume the web service especially if your web service is expected to change a lot.

        I know that if you make a change in an ASP.NET web service you need to refresh the web reference to see those changes in your client application. In your client application open your Solution Explorer. In there you should find a folder called "Web References"...e xpand it and find the service that was updated. Right click on it and choose "Update Reference" (or however it's worded)

        -Frinny

        Comment

        • Meganutter
          New Member
          • Mar 2009
          • 47

          #5
          Well i found out that viewing the asmx file in the browser has updated the code in the webservice.

          Comment

          Working...