aspose file tools*
The moose likes Web Services and the fly likes JAXB issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAXB issues" Watch "JAXB issues" New topic
Author

JAXB issues

Samson Chung
Greenhorn

Joined: Jun 13, 2012
Posts: 2
Hi all,

I am running into a small issue here.



Is an xml returned from a web service, as the authoring party have yet to produce an XSD for me, I chose to write one based on what I see.



when I get XJC to generate the jaxb classes, all that came out was ObjectFactory.java

So, how do I unmarshall this xml file to obtain the String?
Samson Chung
Greenhorn

Joined: Jun 13, 2012
Posts: 2
Samson Chung wrote:Hi all,

I am running into a small issue here.



Is an xml returned from a web service, as the authoring party have yet to produce an XSD for me, I chose to write one based on what I see.



when I get XJC to generate the jaxb classes, all that came out was ObjectFactory.java

So, how do I unmarshall this xml file to obtain the String?


Solution found,

JAXBElement <String> guidElement = (JAXBElement <String>) unmarshal.....;
guidElement.getValue();

Any issues you guys see with this?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB issues