To make use of the XML over HTTP form action simply drag the XML over HTTP action field onto your form:
Give the field the URL to which the XML data should be sent:
After the form has been saved and published, when a customer visiting your site completes the form their data will be packaged up into XML and sent to the URL you specify:
Results in:
<?xml version="1.0"?>
<objects type="FORM_TESTFORM">
<alldata>
<properties>
<lastupdatedon>01-01-0001 00:00:00</lastupdatedon>
<label>1353-2132-0305-1280</label>
<createdby>UNKNOWN</createdby>
<createdon>01-01-0001 00:00:00</createdon>
<lastupdatedby>UNKNOWN</lastupdatedby>
<objectid>2457</objectid>
</properties>
<content>
<forename>Joe</forename>
<surname>Bloggs</surname>
</content>
</alldata>
</objects>
The XML data is sent as the raw POST data in a HTTP request to the specified URL. So to make use of the XML data use the request stream of your relevant platform:
- Java: http://download.oracle.com/javaee/1.3/api/javax/servlet/ServletRequest.html#getInputStream%28%29
- ASP.NET: http://msdn.microsoft.com/en-us/library/system.web.httprequest.inputstream.aspx
- ColdFusion: http://livedocs.adobe.com/coldfusion/8/functions_e-g_43.html
Posted by Ralph Jones, 23rd August





