This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting the tag names for child nodes in web service response XML  RSS feed

 
Divi Senthil
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

We 're provider system for a web service. Here, the requirement is to match the response tags as per the consuming system.

We managed to build the response tag names, but we're struck in getting the hierarchy built.

For example,

We are sending something as follows:

<Resource>
<Employee>
<Technical>
<id>892387834</id>
<name>Name1</name>
</Technical>
<Employee>
<Contractor>
.....
</Contractor>
</Resource>

We use the @WebResult annotation and were able to get as follows:

<Resource>
<id>892387834</id>
<name>Name1</name>
</Resource>


I would like to know how I can set the tag names in the above to reflect the child nodes names <Employee> and <Contractor>

any inputs?

Thanks
Divi
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!