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.