java - Dealing with ArrayOfXsdAnyType -
my wsdl file element looks this
<element name="gethemodialysishospitalresponse"> <complextype ><sequence><element name="gethemodialysishospitalreturn" type="impl:arrayof_xsd_anytype"/></sequence> </complextype> </element>
when try data in soap ui i’m getting response
request
<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>
response
<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>
but i’m not able same return value in code using java how value "the singapore clinic" in code. generated method returns data type arrayofxsdanytype returning empty set in code
Comments
Post a Comment