I'm seeing a problem with jax-ws unmarshalling a message. With the following xml bit the "Text" element does not get unmarshalled by jax-ws/JAXB.
<ns3:RoomDescription>
<ns4:Text xmlns:ns4="This'>
http://websvc.com/htlavail">This room rocks</ns4:Text>
</ns3:RoomDescription>
In the artifacts that are generated by jax-ws wsimport, the class that represents the RoomDescription element has a list that holds the "Text" elements. This list is defined as List<JAXBElement<?>>.
I have written a little something that uses JAXB to unmarshall the xml string into a response object created by wsimport and learned that if the "Text" element's namespace prefix is "ns3", then the unmarshall works. Anything else and the unmarshall fails to build the list with the "Text" elements in it.
Any idea why this is happening??
---------------------------------
Want to start your own business? Learn how on Yahoo! Small Business.