none
Can you delete WSDL file after creating the proxy classes using svcutil? RRS feed

  • Question

  • If I understand correctly, wsdl is used so that we can inform our system about a services everything. After we have the info and created the proxy classes, do we still need to keep it around if WE ARE SURE that the service won't change? If so why? Where would we need it? Do we still need it for out application to call the service even if we already generated the interfaces?
    Tuesday, September 17, 2013 3:17 PM

Answers

  • Hi,

    WSDL file describes your service operations. In order to generate client Proxies, WSDL file is used.

    After you finished creating client proxy, you do not need WSDL file anymore. In fact, it is a good practice to delete or restricting access to WSDL file in terms of security.

    So you will not need WSDL file, unless you make changes to the service, such as adding a new operation or deleting an existing one. In this case, WSDL file is need to update the client again.

    Best Regards,
    Amy Peng


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by manduz_griffus Thursday, September 19, 2013 2:08 PM
    Wednesday, September 18, 2013 6:04 AM
    Moderator
  • Hi manduz_griffus,

    Yes, WSDL is mainly used as metadata for explain your service (including contract data types, address, other policies) information to client consumers. If the client consumers have already correctly generated proxy class, then you no longer need the WSDL. For ASP.NET webservice or WCF service, it can auto-generate the WSDL document, and one advantage of the WSDL document is that the service (server-side) might update it (in case the service has been changed). Then the client-side can update its client proxy based on the updated WSDL document.


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by manduz_griffus Thursday, September 19, 2013 2:08 PM
    Thursday, September 19, 2013 3:49 AM
    Moderator

All replies

  • Hi,

    WSDL file describes your service operations. In order to generate client Proxies, WSDL file is used.

    After you finished creating client proxy, you do not need WSDL file anymore. In fact, it is a good practice to delete or restricting access to WSDL file in terms of security.

    So you will not need WSDL file, unless you make changes to the service, such as adding a new operation or deleting an existing one. In this case, WSDL file is need to update the client again.

    Best Regards,
    Amy Peng


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by manduz_griffus Thursday, September 19, 2013 2:08 PM
    Wednesday, September 18, 2013 6:04 AM
    Moderator
  • Hi manduz_griffus,

    Yes, WSDL is mainly used as metadata for explain your service (including contract data types, address, other policies) information to client consumers. If the client consumers have already correctly generated proxy class, then you no longer need the WSDL. For ASP.NET webservice or WCF service, it can auto-generate the WSDL document, and one advantage of the WSDL document is that the service (server-side) might update it (in case the service has been changed). Then the client-side can update its client proxy based on the updated WSDL document.


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by manduz_griffus Thursday, September 19, 2013 2:08 PM
    Thursday, September 19, 2013 3:49 AM
    Moderator
  • Thanks for the answers!
    Thursday, September 19, 2013 2:09 PM