This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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