Xml Visual Studio';s wsdl.exe可以';在我的模式中找不到一些信息。不确定这是否是一个错误
当我使用wsdl.exe从我的wsdl创建客户机时,它会完成,但会在文件中插入以下注释: //CODEGEN:参数“VerificationData”需要使用参数模式无法捕获的其他架构信息。特定属性是“System.Xml.Serialization.XmlArrayItemAttribute”。 我不知道wsdl中的其他信息应该放在哪里,wsdl的相关部分如下所示:Xml Visual Studio';s wsdl.exe可以';在我的模式中找不到一些信息。不确定这是否是一个错误,xml,visual-studio,wsdl,schema,wsdl.exe,Xml,Visual Studio,Wsdl,Schema,Wsdl.exe,当我使用wsdl.exe从我的wsdl创建客户机时,它会完成,但会在文件中插入以下注释: //CODEGEN:参数“VerificationData”需要使用参数模式无法捕获的其他架构信息。特定属性是“System.Xml.Serialization.XmlArrayItemAttribute”。 我不知道wsdl中的其他信息应该放在哪里,wsdl的相关部分如下所示: <xsd:complexType name="VerificationDataType"> <xsd:s
<xsd:complexType name="VerificationDataType">
<xsd:sequence>
<xsd:element name="Item" type="VerificationItemType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="VerificationItemType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="type" type="xsd:string" use="required" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
有什么想法吗?我无法从您提供的WSDL片段中看出,但我想知道您是否需要在Item元素中使用的类型上使用名称空间,例如
<xsd:element name="Item" type="ns:VerificationItemType" minOccurs="0" maxOccurs="unbounded" />
添加名称空间会删除消息。没错。他指的是默认名称空间中的“
VerificationOnItemType
”,而没有这样的东西。
- The datatype 'http://schemas.xmlsoap.org/wsdl/:VerificationItemType' is missing.