我的架构:
<xsd:element name="GetTasksForRolesResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="tuple" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="old">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Role">
<xsd:complexType mixed="true">
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="unbounded" ref="ns:Task" xmlns:ns="http://schemas.cordys.com/task/1.0/"/>
</xsd:sequence>
<xsd:attribute type="xsd:string" name="dn" use="optional"/>
<xsd:attribute type="xsd:string" name="configTaskId" use="optional"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
我的内容:
<GetTasksForRolesResponse
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="http://schemas.cordys.com/task/1.0/runtime/">
<tuple>
<old>
<Role
xmlns="http://schemas.cordys.com/task/1.0/"
dn="cn=Analyst,cn=Cordys@Work,cn=cordys,cn=defaultInst,o=vanenburg.com"></Role>
</old>
</tuple>
</GetTasksForRolesResponse>
请帮我解决上述错误。
错误 原因:org.xml.sax.SAXException:cvc-complex-type.2.4.a:发现以元素“角色”开头的无效内容。'{" http://schemas.cordys.com/task/1.0/runtime/ ":Role}' 之一是预期的。org.xml.sax.SAXParseException;行号:9;列号:77;cvc-complex-type.2.4.a:发现以元素“角色”开头的无效内容。'{" http://schemas.cordys.com/task/1.0/runtime/ ":Role}' 之一是预期的。