• Post Reply Bookmark Topic Watch Topic
  • New Topic

Simulation?

 
Steve Torrefranca
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

Here is my question.

I need to make a webservice that can call a url, parses the response and then sends out a form. Example say I have a button that says, for the sake of clarity, <New Gmail>. The request is sent to a servlet that:
1. Calls gmail.com
2. Fills up the username and password and sends it back
3. Open "Compose Mail"

Actually what I need is more complex than this. The URL that my servlet calls returns an xml that I need to parse. After extracting the data I need to call a form, fill out some fields with the data I got from the XML file, then redirect the user to that page.

Can anyone give me an idea on how to do this?

Thank you

Steven
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steve Jbuff Welcome to JavaRanch!

Have a look at Jakarta Common HttpClient.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Steven Jbuff",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!