我的wsdl文件元素看起来像这样
<element name="getHemodialysisHospitalResponse">
<complexType
><sequence><element name="getHemodialysisHospitalReturn" type="impl:ArrayOf_xsd_anyType"/></sequence>
</complexType>
</element>
当我尝试在Soap UI中获取数据时,我得到了响应
请求
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://serviceimpl.com.echannelling">
<soapenv:Header/>
<soapenv:Body>
<ser:getHemodialysisHospital/>
</soapenv:Body>
</soapenv:Envelope>
响应
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getHemodialysisHospitalResponse xmlns="http://serviceimpl.com.echannelling">
<getHemodialysisHospitalReturn>
<getHemodialysisHospitalReturn xsi:type="ns1:Hospital" xmlns:ns1="http://serviceimpl.com.echannelling">
<ns1:hosId xsi:type="xsd:string">H56</ns1:hosId>
<ns1:hosName xsi:type="xsd:string">The Singapore Clinic</ns1:hosName>
</getHemodialysisHospitalReturn>
</getHemodialysisHospitalReturn>
</getHemodialysisHospitalResponse>
</soapenv:Body>
</soapenv:Envelope>
但是我无法在使用java的代码中获得相同的返回值 如何在代码中获得此值“新加坡诊所”。生成的方法返回数据类型ArrayOfXsdAnyType但它在代码中返回一个空集