Generate C# Code from *.xsd files for use as WCF service

1.5k Views Asked by At

Update

I want to generate C# classes files to be used as WCF service based on *.xsd files. How can I achieve that?

2

There are 2 best solutions below

0
On

Simply try:

svcutil <xsd_file>

where <xsd_file> is the path to the XSD file. As John Saunders mentioned, read the command-line syntax and available command options using svcutil /?. This tool does have a lot of functionality, so read carefully.

Also, remember to use the Windows SDK Command Prompt instead of the standard Command Prompt to execute this tool.

0
On

use wcf.blue plugin for visual studio