• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How you post XML Request to a webpage?

Guest
Jan 04, 2008 Jan 04, 2008

Copy link to clipboard

Copied

I got a XML Request format.....

<?xml version="1.0" encoding="UTF-8"?>
<Root>
<Action>AddData</Action>
<ID>1234</ID>
<Name>John</Name>
<Phone>4453433334</Phone>
</Root>


How i post this XML request to a application?.
application url : http://servername/appname/enterdata.jsp


How can i make this work using CFHTTP?.

TOPICS
Advanced techniques

Views

369

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 06, 2008 Jan 06, 2008

Copy link to clipboard

Copied

You can post it as a string, using cfhttp and cfhttpparam, with cfhttpparam's type attribute set to formfield or xml.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 28, 2008 Feb 28, 2008

Copy link to clipboard

Copied

Do you need <cfoutput> around <cfsavecontent>
</cfsavecontent>?


Do u need <cfoutput> around <cfhttp> </cfhttp>?.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2008 Feb 28, 2008

Copy link to clipboard

Copied

LATEST
> Do you need <cfoutput> around <cfsavecontent>
> </cfsavecontent>?


No.

Do u need <cfoutput> around <cfhttp> </cfhttp>?

No.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation