Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/304.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 字符串数组的NuSoap数组_C#_Php_Wsdl_Nusoap - Fatal编程技术网

C# 字符串数组的NuSoap数组

C# 字符串数组的NuSoap数组,c#,php,wsdl,nusoap,C#,Php,Wsdl,Nusoap,在最后一天,我一直在尝试返回一个可以由c#soap客户端反序列化的有效响应 唯一的问题是当webservice返回字符串数组时 C#客户端得到的错误是: The specified type was not recognized: name='errorArray', namespace='urn:https://xxxxxxxx/index.php', at <errors xmlns=''>. 这是soap服务器返回的XML错误部分 <errors xsi:type=

在最后一天,我一直在尝试返回一个可以由c#soap客户端反序列化的有效响应

唯一的问题是当webservice返回字符串数组时

C#客户端得到的错误是:

The specified type was not recognized: name='errorArray',  namespace='urn:https://xxxxxxxx/index.php', at <errors xmlns=''>.
这是soap服务器返回的XML错误部分

 <errors xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:errorArray[1]">
        <item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[2]">
           <item xsi:type="xsd:string">GENERAL ERRORS :</item>
           <item xsi:type="xsd:string">The request array must contain at least a valid array!</item>
        </item>
     </errors>

一般错误:
请求数组必须至少包含一个有效数组!
 <errors xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:errorArray[1]">
        <item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[2]">
           <item xsi:type="xsd:string">GENERAL ERRORS :</item>
           <item xsi:type="xsd:string">The request array must contain at least a valid array!</item>
        </item>
     </errors>