如何在SOAP wsdl文件中定义关联数组?这就是我到目前为止定义数组元素类型的方法:
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="webservice.wsdl" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:complexType name="ArrayOfString">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="tns:arrayElement"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
Run Code Online (Sandbox Code Playgroud)
谢谢!
我在谈论PHP关联数组,我想使用任意数量的任何key =>值字符串对,它们将被转换回通信方另一端的关联数组.作为替代方案,我可以将序列化数组或json表示作为字符串发送,但我想知道如何在wsdl中执行此操作.
谢谢!