• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Marius Vasile
Greenhorn
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:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!