Question

I have been trying to create a STAR standards compliant webservice (ASMX of course) . My service will accept a the an object "ProcessPartsActivity" which is defined as an XSD "ProcessPartsActivity.xsd".

STAR XSD: STAR XSD DownLoad

This XSD is making use of a number of other XSDs inside. The STAR FAQ indicates that using XSDObjectGen instead of XSD to create C# classes.

I have been trying to convert the XSDs into C# objects using XSD.EXE and XSDObjectGen but both are encountering schema validation error.

XSDObjectGen.exe "<folder path>\ProcessPartsActivity.xsd" /l:cs /n:"DummyNamespace"

XSD.exe "<folder path>\ProcessPartsActivity.xsd" 

Has anyone converted these XSDs to C# classes before or if there are other methods to achieve please suggest.

ProcessPartsActivity INFO

Was it helpful?

Solution

I still did not get what was the real issue with XSD.EXE and XSDObjectGen but this seems to work properly in VS 2012 Xsd2Code 3.6 Version.

Xsd2Code 3.6 link

I am able to successfully generate code from the STAR standards XSDs (with more than one nested schema imports files)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top