This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes How to run the Web Service java class to generate my xml file.. after i had marshalled it Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How to run the Web Service java class to generate my xml file.. after i had marshalled it" Watch "How to run the Web Service java class to generate my xml file.. after i had marshalled it" New topic
Author

How to run the Web Service java class to generate my xml file.. after i had marshalled it

John Bates
Greenhorn

Joined: May 31, 2012
Posts: 9
Hello I have created a java web application project for travel agency in that, initially I have JAXB Binded the schema, and got my generated classes from it.

And now at present in that project I have created a Web Service from a Java Class, I am trying to Marshall an operation about Flight trip information in to an XML file,



in the program to start of I have created a content tree of my trip elements to write it to xml and i have written the marshal code for the content tree

I can successfully marshal and output the xml file only on java application main class, I can run it successfully and generated the xml file using

but if I use a web service java class first thing i cant able to run it, only I can able to deploy it and run the entire project, also i can test the web service, but it is not writing the xml out put.

So my question is how to run and generate the xml file from a web service java class?
Instead of not using java main method class.

Thanks
i will post complete java code if necessary.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to run the Web Service java class to generate my xml file.. after i had marshalled it
 
Similar Threads
Jersey Hibernate Problem
JAX WS marshalling,
javax.xml.bind.Marshall Exceptio the object parameter to marshal() is not marshallabl
Any JUnit Test Could be Written for
Marshalling and unmarshalling java objects (Castoring)