Hey Mark,

What I did with CFMX was exactly that.

<CFSET MyXml ="xml stuf">
cfhttp url="www.site.com" method="post" resolveurl="no">
<cfhttpparam type="formfield" name="myXml" value="#myXml#" >
</cfhttp>

and it seems to work. I'm still in the exporatory stage of this. I guess
ultimately I would need a Java solution.

Also, my client is running CF 4.5 so i don't know if it's work with that.


----- Original Message -----
From: "Mark A. Kruger - CFG" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, November 29, 2002 12:50 AM
Subject: RE: Posting XML


> Some things to watch out for here.  CF encodes form parameters
> automatically - which means your content may not be well formed at the
other
> end.  In addition, this is going to deliver the "content" part of the HTTP
> request as:
>
> myXml=<xmltag>...xmlodoc body ... </xmltag>
>
> That's not well formed XML unless the post handler is expecting the XML to
> be stored in the value of a form parameter.
>
> CFMX provides an "xml" type for posting (in CF 5 you are out of luck).  In
> my experience it still suffers from the encoding issue. That's why many
> folks use other third part Java or COM objects to do XML posting.
>
> -Mark
>
>
> -----Original Message-----
> From: Matthew Walker [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 28, 2002 9:38 PM
> To: CF-Talk
> Subject: RE: Posting XML
>
>
> Use something like:
>
> <cfhttp url="www.site.com" method="post" resolveurl="no">
> <cfhttpparam type="formfield" name="myXml" value="#myXml#" >
> </cfhttp>
>
>
>
>
> > -----Original Message-----
> > From: Frank Mamone [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, 29 November 2002 4:33 p.m.
> > To: CF-Talk
> > Subject: Posting XML
> >
> >
> > I am working on an R&D project using WCTP which is an XML
> > specification. Apparently, I need to POST the XML using HTTP
> > 1.0 or 1.1. I really don't know what they mean as the only
> > posting I know how to do is through a HTML form.
> >
> > I've read all the documentation and can't find an example of
> > how it's done. Is there a way using CFMX or otherwise to post
> > an XML document to a URL without using a form?
> >
> > Thanks,
> >
> > Frank
> >
> >
> >
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to