在PHP中使用Web Service需要返回一个数组::
[0] => Array
(
[0] => 0100
[1] => 0101-01-000741
[2] => 0101
[3] => 0101ABM1704621
[4] => 0101-256-01-04-00133
[5] => 2.5000
)
[1] => Array
(
[0] => 0100
[1] => 0101-01-000443
[2] => 0101
[3] => 0101ABY2211791
[4] => 0101-256-01-00-00130
[5] => 2.5000
)
当你得到数组不能治疗[3] => 0101ABY2211791位置,服务器提取数据但不返回WSDL数据。
如何通过WSDL恢复数据?
我的WSDL是:
<wsdl:types>
<xsd:schema targetNamespace="urn:Aritmetica">
<xsd:complexType name="resultArray">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType"
wsdl:arrayType="xsd:string[][]"/>
</restriction>
</complexContent>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<message name="AritmeticaPeticion">
<part name="operando1" type="xsd:string" />
</message>
<message name="AritmeticaRespuesta">
<part name="respuesta" type="xsd:resultArray" />
</message>