Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting xml contents from wsdl2java class

 
jee lim
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure whether it is possible or not. I've heard that getting xml contents from wsdl2java classes.
From wsdl files, I can generate java classes waiting to be implemented using wsdl2java from cxf.
It is all good so far but what I also need is to get xml contents instead of getting values from java classes
generated from wsdl2java.

I wonder there is a method called "getXmlContent()", etc

Thanks,
jee
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
If you use JAXB, then you should have a look at the javax.xml.bind.Marshaller class that is available either in Java SE 6 or JAXB library JAR.
The Javadoc of the Java SE 6 API contains some code snippets that should get you started.
Best wishes!
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give an example of what you mean by "XML content"? wsdl2java is a build-time tool; are you asking about something happening at runtime?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic