Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Web service returning multiple values in a single row delimited by tags  RSS feed

Marius Vasile
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to build a web service that returns multiple rows from database and each row should containt several fields delimited by tags. I created this ws using Netbeans and it is running on a glassfish server. I only managed to return tagged rows containing a string made by concatenated values (fields). Can you please give me some advice on how to modify my return?

Now my web service returns as following:

My return needs to look like this:

Java code below:
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!