之前返回的是String,可以获取到返回值,现在返回的复杂数组,我尝试了几天都没有成功,获取的都是空。webservice接口如下:
<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://localhost/soap/myswdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://localhost/soap/myswdl">
<types>
<xsd:schema targetNamespace="http://localhost/soap/myswdl"
>
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
<xsd:complexType name="Customer">
<xsd:all>
<xsd:element name="phone" type="xsd:string"/>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="long" type="xsd:float"/>
<xsd:element name="lat" type="xsd:float"/>
<xsd:element name="speed" type="xsd:float"/>
<xsd:element name="direction" type="xsd:string"/>
<xsd:element name="company" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="CustomerArray">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Customer[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
</types>
<message name="findcustomerRequest">
<part name="long" type="xsd:float" />
<part name="lat" type="xsd:float" />
<part name="longrange" type="xsd:float" />
<part name="latrange" type="xsd:float" />
<part name="pin" type="xsd:string" /></message>
<message name="findcustomerResponse">
<part name="return" type="tns:CustomerArray" /></message>
<portType name="myswdlPortType">
<operation name="findcustomer">
<input message="tns:findcustomerRequest"/>