XSD.EXE - 从 XSD 文件生成 类 失败并给出奇怪的警告
XSD.EXE - Generating classes from XSD file fails giving strange warnings
我正在尝试从 CWMP 1.1 XSD file 生成 .Net 类 以供客户端使用。为了生成 类,我使用了 Windows SDK 中的 XSD.EXE 实用程序,但出现错误:
Undefined complexType 'http://schmeas.xmlsoap.org/soap/encoding/:Array' is used as a base for complex Type restricition'
的多个实例
- 一个
The
'http://schemas.xmlsoap.org/soap/envelope/:mustUnderstand' attribute is not
declared.
我检查过,两个网址都有效。这让我很困惑。
我尝试使用 xsd2code 命令行工具,但我很难向 SOAP 数组添加项目。
我可以重复你的错误,但和你一样,我看不出原因。
我过去经常遇到 xsd.exe 的问题。以至于去年我切换到 xsd2code++ (http://www.xsd2code.com/en-us/home.aspx),从那以后再也没有回头。 Xsd2code++ 将生成更紧凑的代码,并让您更好地控制它生成的内容。我用它测试了 CWMP xsd,它实现了梦想。
我正在尝试从 CWMP 1.1 XSD file 生成 .Net 类 以供客户端使用。为了生成 类,我使用了 Windows SDK 中的 XSD.EXE 实用程序,但出现错误:
Undefined complexType 'http://schmeas.xmlsoap.org/soap/encoding/:Array' is used as a base for complex Type restricition'
的多个实例
- 一个
The 'http://schemas.xmlsoap.org/soap/envelope/:mustUnderstand' attribute is not declared.
我检查过,两个网址都有效。这让我很困惑。
我尝试使用 xsd2code 命令行工具,但我很难向 SOAP 数组添加项目。
我可以重复你的错误,但和你一样,我看不出原因。
我过去经常遇到 xsd.exe 的问题。以至于去年我切换到 xsd2code++ (http://www.xsd2code.com/en-us/home.aspx),从那以后再也没有回头。 Xsd2code++ 将生成更紧凑的代码,并让您更好地控制它生成的内容。我用它测试了 CWMP xsd,它实现了梦想。