Usage of SvcUtil.exe command


In this article I have explained the usage of SvcUtil.exe command to create service model code. This is avalable in VS3.0 and 3.5 framework.

SvcUtil.exe is used to create service model code. You can generate proxy class and .config files from wsdl, xsd etc.. It generates client code from running services or static metadata documents.

The various functionalites provided by this tool are:

1) Exports metadata documents from compiled code.
2) Validates compiled service code.
3) Downloads metadata documents from running services.
4) Generates serialization code.

This tool is available in the following location

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin
(or)
C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin

Go to the visual studio command prompt and type the above path prefix with "cd" and space and type SvcUtil.exe http://localhost/mywebservice.wsdl

The above will generate client code along with config file. For more details about this see the below link

http://msdn.microsoft.com/en-us/library/aa347733.aspx


Reference: http://msdn.microsoft.com/en-us/library/aa347733.aspx


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: