updating web references

Last post 05-12-2008 10:44 AM by Jeev. 3 replies.

Sort Posts:

  • updating web references

    05-12-2008, 9:20 AM
    • Member
      2 point Member
    • colapsomine
    • Member since 04-26-2007, 4:53 PM
    • Posts 4

    I have a WebService Project and a Client Project in Visual Studio 2005. My Client Project has a web reference to the web service.

    When I make a change in the methods of the Web Service, I have to click the "update web references" in my client project in order to my client project notice changes in the web services.

    I need to Update The Web Reference automatically whenever I build the Web Service Project .
     

    Do you know any method to be able to update the web reference in the Client Project by a Macro e.g. using WSDL.exe tool?

     

    Basically, what does "Update Web Reference" do exactly and How I can do it using a Macro or something?

     
    Many thanks

     

  • Re: updating web references

    05-12-2008, 10:34 AM
    • All-Star
      20,998 point All-Star
    • Jeev
    • Member since 11-24-2005, 7:49 AM
    • Posts 3,163

    By updating the web reference in your project you are making getting the wsdl and regenerating the proxy classes for that webservice. The intention is to update the calling program with changes in the webservice

    Jeev
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If you get the answer to your question, please mark it as the answer.
  • Re: updating web references

    05-12-2008, 10:39 AM
    • Member
      2 point Member
    • colapsomine
    • Member since 04-26-2007, 4:53 PM
    • Posts 4

    Yes, I Know that, thank you, but the thing is I want to update the reference automaticaly without use Visual Studio, only refreshing the .aspx page 

  • Re: updating web references

    05-12-2008, 10:44 AM
    Answer
    • All-Star
      20,998 point All-Star
    • Jeev
    • Member since 11-24-2005, 7:49 AM
    • Posts 3,163

    well that won't be of any help .. If the schema / return type or method signature of the webservice changes... your page would break unless you change your code to match the new signature / return types 

    Jeev
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If you get the answer to your question, please mark it as the answer.
Page 1 of 1 (4 items)