Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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