【问题标题】:XSD.EXE - Generating classes from XSD file fails giving strange warningsXSD.EXE - 从 XSD 文件生成类失败给出奇怪的警告
【发布时间】:2016-11-15 02:57:51
【问题描述】:

我正在尝试从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 数组。

【问题讨论】:

    标签: .net xml windows soap xsd


    【解决方案1】:

    我可以重复你的错误,但和你一样,我看不出原因。

    过去我经常遇到 xsd.exe 问题。以至于去年我切换到 xsd2code++ (http://www.xsd2code.com/en-us/home.aspx) 之后就再也没有回头。 Xsd2code++ 将产生更紧凑的代码,并让您更好地控制它产生的内容。我用它测试了 CWMP xsd,它实现了梦想。

    【讨论】:

      猜你喜欢
      • 2011-05-18
      • 2012-10-28
      • 2011-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-15
      • 2011-01-14
      相关资源
      最近更新 更多