• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to write web services simulator - server side  RSS feed

 
ilias basha
Ranch Hand
Posts: 55
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to write a servlet which gives back the response xml packet whenever it receives a request in xml[POST].

But i dont know how to receive the data when the request is of POST and in xml.

can anybody just guide me regarding this.

thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Handling a POST is done in the servlet's doPost method. You can call the request's getReader (or getInputStream) method to get something that you can feed to an XML parser.
 
ilias basha
Ranch Hand
Posts: 55
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Handling a POST is done in the servlet's doPost method. You can call the request's getReader (or getInputStream) method to get something that you can feed to an XML parser.



Thank you so much. It helped me to finish the simulator...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!