<complexType name="GetToneEvt">
<complexContent>
<sequence>
<element name="auditionFileNames" nillable="true" type="impl:ArrayOf_xsd_string"/>
<element name="autoReorder" nillable="true" type="xsd:string"/>
<element name="catalog" nillable="true" type="xsd:string"/>
<element name="corpID" nillable="true" type="xsd:string"/>
<element name="cutFlag" nillable="true" type="xsd:string"/>服务端有个参数auditionFileNames ,类型是ArrayOf_xsd_string,我无论传入string 还是 array ,服务端都无法接收到数据。其它几个参数都没有问题。 难道ArrayOf_xsd_string 类型对客户端有特殊要求吗?
<complexContent>
<sequence>
<element name="auditionFileNames" nillable="true" type="impl:ArrayOf_xsd_string"/>
<element name="autoReorder" nillable="true" type="xsd:string"/>
<element name="catalog" nillable="true" type="xsd:string"/>
<element name="corpID" nillable="true" type="xsd:string"/>
<element name="cutFlag" nillable="true" type="xsd:string"/>服务端有个参数auditionFileNames ,类型是ArrayOf_xsd_string,我无论传入string 还是 array ,服务端都无法接收到数据。其它几个参数都没有问题。 难道ArrayOf_xsd_string 类型对客户端有特殊要求吗?
Try using the 'features' param, set to SOAP_USE_XSI_ARRAY_TYPE - this makes sure the correct deserializer is used.eg,
<?php
$client = new SoapClient("some.wsdl", array('features' => SOAP_USE_XSI_ARRAY_TYPE));
?>