Generate XML request from web form

Hi, I know this is a long shot, but is there any good java programmer here who is willing to work with me one to one by email on web task I've been given?

I'm at my wits end here. I don't know how to go about generating an XML request from a html form and sending it by HTTP/POST to a URL.

Any help would be greatly appreciated,

Ruth

[361 byte] By [sabatiera] at [2007-11-27 10:22:28]
# 1

Why bother doing that? Why not just send the form data in the request as normal?

georgemca at 2007-7-28 17:16:14 > top of Java-index,Java Essentials,New To Java...
# 2

> Why bother doing that? Why not just send the form

> data in the request as normal?

Because the server only accepts an xml request according to an xml schema. Which means I probably have to use java to xml binding like JAXB which is where I'm completely lost.

sabatiera at 2007-7-28 17:16:14 > top of Java-index,Java Essentials,New To Java...
# 3

> > Why bother doing that? Why not just send the form

> > data in the request as normal?

>

> Because the server only accepts an xml request

> according to an xml schema. Which means I probably

> have to use java to xml binding like JAXB which is

> where I'm completely lost.

What do you mean by "server" here?

georgemca at 2007-7-28 17:16:14 > top of Java-index,Java Essentials,New To Java...
# 4

I have to send the request to a gateway (an URL in the form of http://localhost:9999/xyz/xyz) which processes the request and sends it on to a web service.

sabatiera at 2007-7-28 17:16:14 > top of Java-index,Java Essentials,New To Java...
# 5

> I have to send the request to a gateway (an URL in

> the form of http://localhost:9999/xyz/xyz) which

> processes the request and sends it on to a web

> service.

But your web page does not talk directly to this web service. So it need not concern itself with constructing the XML. Get the gateway (which I'm guessing is a servlet) to do it

georgemca at 2007-7-28 17:16:14 > top of Java-index,Java Essentials,New To Java...
# 6

ok ok we're getting somewhere here. Basically, my form involves uploading a digital signature which has to be verified and the result sent back to me. How do you suggest I go about uploading the file and sending it by HTTP/POST to the gateway?

Message was edited by:

sabatier

sabatiera at 2007-7-28 17:16:14 > top of Java-index,Java Essentials,New To Java...