DiscoStu wrote:
> Is there a way to programatically upload these XML files as part of a
> mime-attachment to the POST the client makes to the server? Would just
> attaching the XML text after the "?" in the URL be the easiest way to
> do it?
You almost certainly don't want to send the XML as part of the URI of an
HTTP request. Use POST or PUT, and place it in the body of the request
(if using POST, as a named parameter; if using PUT, then just attach it
directly). Jakarta Commons HttpClient is helpful for advanced HTTP
usage like this.
If you send a multipart form request (which is ideal for large form
fields in a PUT request), then you'll need special code outside of the
servlet API to parse it on the server. Actually, Jakarta Commons has a
project for this too; but the O'Reilly Servlet class is better-known,
with the restriction that you're required to own a current copy of Jason
Hunter's book in order to use it.
--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation