Hi,
I am facing an issue with wsdl2java tool. I read in several other threads
that you can use a binding to get rid of JAXBElement classes. My wsdl is
using a complex HL7 schema. wsdl2java generates all the classes without
problems. All classes reflects the schema but at some points, the element
is a JAXBElement. For some reason, wsdl2java did not generate a class Value
with children Family and Given classes. Can someone help in getting rid of
those JAXBElement classes or can tell me how to get the value "toto" and
"tata" from my objects?
Here's a part of my xml message:
....
toto
tata
...
Here's the Java code that handles the message:
PersonName wPersonName = ...queryByParameter().getValue().getPersonName();
wPersonName.getValue().getContent(); //Returns a List of JAXBElement objects
I would like to know how to retrieve "toto" from the message.
Thanks,
- Erick
--
View this message in context:
http://cxf.547215.n5.nabble.com/How-to-get-String-values-out-of-a-JAXBElement-object-tp3424129p3424129.html
Sent from the cxf-user mailing list archive at Nabble.com.