Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Web Services and XML Parameters  RSS feed

 
Miguel Capo
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
Newbie to WS, Question for those of you that have much more experience.
I have to build a web service that is going to process some data in the format of, let�s say 20 fields containing plain text and a body field containing rich text content. In order to avoid passing each field as a parameter, I had decided to use just one parameter and make that parameter an XML document. This way the data will have some structure and will be extensible. Meaning that if the client decides to add/remove/change any of the text fields we will not have to change the call to the WS or the receiving code, we will just have to change the XML doc that is passed as a parameter.

Here is where I need your help. Is this a good idea? If is not, any suggestions? If it is, any advise on possible issues that I may encounter?

Thanks in advance.
 
Watsh Rajneesh
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its a good idea to pass the data as an XML document. You may want to refer to this section of blueprints to use as a checklist while designing using the XML document approach. Also you may find this article a useful reference.
[ October 08, 2006: Message edited by: Watsh Rajneesh ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!