Search code examples
c#interfacemethodsxsdcode-generation

Auto generate C# interfaces (with function prototypes) from XSD?


I know how to define classes/data-structures in XSD format and auto-generate equivalent C# classes (with either xsd.exe or the more elaborated xsd2code.exe).

I would like to define interface classes with methods that utilize the above defined data-structures. The goal is to create some process-to-process (on the same machine) communication protocol with strong-typed classes and interfaces.

I have a big salad in my head, combined from XSD, WSDL, SOAP, REST and more.. which technology should I use?

10x.


Solution

  • Here's the solution I ended up using: http://www.codeproject.com/KB/codegen/XSLCodeGen.aspx