[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to POST in XML format
- From: Jeff Crilly <jlc-xalan@myrealbox.com>
- To: hector santos <xml-dev@winserver.com>, xml-dev@lists.xml.org
- Date: Sat, 09 Jun 2001 10:24:17 -0700
I did the post from a browser form once by putting
the XML data in an input text field. On the server
side I do getParameter() using the text field name.
The POST is actually an http POST with HTTP headers,
but the xml data was not encoded (Pretty sure about this,
but others on the list seem to think its encoded.)
I suppose you could put the XML in a hidden field also.
We're actually not using this method for our real stuff,
which is server->server data interchange. For that
we just http POST to a url with content-type text/xml
and none of the FORM post headers.
I suggest you just try it out.. and experiment a bit.
Thats the best way to figure this stuff out.
----- Original Message -----
From: hector santos <xml-dev@winserver.com>
To: <xml-dev@lists.xml.org>
Sent: Saturday, June 09, 2001 5:42 AM
Subject: Re: How to POST in XML format
> First, thanks to all who provided input.
>
> On Jun 08, 2001 01:46pm, MIKE@SKEW.ORG wrote to ALL:
>
> >> a) you could use a proxy or middleware whichs reformats the
> >> data into XML/SOAP before sending to a seerver, and
>
> > Yes.
>
> I wrote a javascript to generically wrap form elements in a XML
> format. Now I have to add yet another layer to our server to
> take in a new format. Great! Now I'll have more OVERHEAD <g>
>
> >> b) you can also use the FORM type="text/xml" attribute
> >> using the "browser" built-in XML support.
>
> > No. Well, if the browser has such a thing, sure. But HTML does not allow
> > for the possibility of anything other than the 2 standard media types for
> > form data submissions. If you find an example of "B", let me know. :)
>
> I thought I read some where in the internet where you can do B but it
> required encoding schemas. I have to do the search again for this,
> but I properly misunderstood thinking this was all said and done.
>
> The main point I realize now and surprise to see is that the client
> world has not standardized on it yet. Just coming into XML/SOAP now,
> one would think this is all resolved by now. :-)
>
> Thanks again
>
> Hector Santos, President
> http://www.santronics.com
>
>
> ------------------------------------------------------------------
> The xml-dev list is sponsored by XML.org, an initiative of OASIS
> <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To unsubscribe from this elist send a message with the single word
> "unsubscribe" in the body to: xml-dev-request@lists.xml.org
>