Xml complexType是否允许作为属性内容?

Xml complexType是否允许作为属性内容?,xml,xsd,wsdl,Xml,Xsd,Wsdl,我从客户端获得了一个WSDL/XSD,并尝试使用wsimport导入,但它抱怨: [ERROR] Unexpected <complexType> appears at line 508 column 33 [ERROR]意外出现在第508行第33列 我检查了文件,它显示: <complexType name="ActionInfo"> <sequence/> <attribute name="action">

我从客户端获得了一个WSDL/XSD,并尝试使用wsimport导入,但它抱怨:

[ERROR] Unexpected <complexType> appears at line 508 column 33
[ERROR]意外出现在第508行第33列
我检查了文件,它显示:

   <complexType name="ActionInfo">
    <sequence/>
    <attribute name="action">
     <complexType name="string">
      <simpleContent>
       <extension/>
      </simpleContent>
     </complexType>
    </attribute>
    <attribute name="type">
     <complexType name="string">
      <simpleContent>
       <extension/>
      </simpleContent>
     </complexType>
    </attribute>
   </complexType>

这合法吗?很明显,这是我从他们的生产环境中得到的xsd,所以它对他们来说很有用


在他们的WSDL顶部,它说它是由Axis1.4生成的,绝对不是

属性本质上不能有复杂的内容。错误消息完全正确:
xs:attribute
的类型定义


另请参见

绝对不是。

属性本质上不能有复杂的内容。错误消息完全正确:
xs:attribute
的类型定义

另见

“为[我们]工作”不是借口。这是错误的。(也有人怀疑它是否真的对他们有效。)“对我们有效”不是借口。这是错误的。(这是否真的适用于他们也值得怀疑。)