my dog learned polymorphism*
The moose likes Web Services and the fly likes how to write service? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to write service?" Watch "how to write service?" New topic

how to write service?

B Sleek

Joined: Mar 02, 2004
Posts: 11
How would I write a write a web service that returns this response? Should I just create a single object to encapsulate the date, or what? Thanks for help.

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Using a document-style web service, the Java code would look like

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
subject: how to write service?
Similar Threads
span tag issue in javascript
Use a SAX Parser to split huge XML file into multiple parts, also need to keep the hierarchy intact
Help extracting text out of a response
How to update/insert/delete an element from an XML document