Hi all,
<?xml version="1.0" encoding="UTF-8"?>
<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>
<findFlightResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<findFlightReturn href="#id0"/>
</findFlightResponse>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns1:ReturnFlight"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:Flight">
<numberFlight xsi:type="soapenc:string">1234</numberFlight>
<price xsi:type="soapenc:string">625.30</price>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
I am trying to get this response numberFlight and price but they belongs to
a type called ReturnFlight. I did that in my appplication:
ReturnFlight ret = new ReturnFlight();
ret = (ReturnFlight)call.invoke( new Object [] { fromCity,
toCity,dtDeparture,dtArrival });
But I receive a convertion error:
Exception in thread "main" java.lang.ClassCastException
at FlightAXISClient.main(FlightAXISClient.java:67)
How can I do to retrieve my values in my application client?
Thank you very much,
DAniela