<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 类型对客户端有特殊要求吗? 

解决方案 »

  1.   

    For anyone having trouble with ArrayOf_xsd_string and getting an error similar to 'No deserializer defined for array type {http://www.w3.org/2001/XMLSchema}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));
    ?>