Hi,
I’m creating a webservice (in Java) to read/update a persons calendar from a java app. I’m consuming the webservice with axis1.2.
All is going well until the point I’m trying to retrieve a list of entries (returns a java.util.Vector).
A simple testfunction
–>public java.util.Vector vectorTest()
returns a vector like this
<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”>
<vectorTestReturn xmlns="urn:DefaultNamespace">
<item xmlns="">
<id>2E473B04C49D9980C12574CD004BE5AA</id>
<startDateTime>0108-09-02T15:00:00.271Z</startDateTime>
<endDateTime>0108-09-02T15:30:00.271Z</endDateTime>
<title>Updated title</title>
<location>testLocation</location>
</item>
<item xmlns="">
<id>2E473B04C49D9980C12574CD004BE5AA</id>
<startDateTime>0108-09-02T15:00:00.271Z</startDateTime>
<endDateTime>0108-09-02T15:30:00.271Z</endDateTime>
<title>Updated title</title>
<location>testLocation</location>
</item>
</vectorTestReturn>
</soapenv:Body>
</soapenv:Envelope>
Note: ---->item xmlns=“”<---- empty namespace!!
When consuming the service, this results in:
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
Is returning a vector unsupported in this version? Or is is just unsupported if the vector contains custom classes? Or am I just doing something wrong?
If needed, I’ll post the WSDL…
Any light on this would be very nice…
Thanks in advance…