• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing webforms as a webservice  RSS feed

 
Gerbrand van Dieijen
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

There's an external webform out of my control that can be used to access and modify data. I want to access that webform automatically, as if it is a webservice.

All objections aside (what to do when the webform changes, why isn't there an webinterface in the first place, ec.), what is a good tool to do that?
My first guess is apache.commons.http library would be able to do that, allthough that requires some manual work. Are there any other tools (commercial or open-source/free) that allows to do that?

Are there any other people who're doing that, accessing external webforms to automatically perform actions? Any tips?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd suggest using a library like HtmlUnit (or jWebUnit, which is built on top of it), which works at a much higher level than HttpClient. It understands forms, how to fill them in, how to submit them, how to retrieve result pages, cookies etc.
 
Gerbrand van Dieijen
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the tip, that framework looks easy to use.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!