REST service accepting HTTP POST requests in an HTML form

ESB REST

author
Talend Documentation Team
EnrichVersion
6.4
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > ESB components > ESB REST components
Data Quality and Preparation > Third-party systems > ESB components > ESB REST components
Design and Development > Third-party systems > ESB components > ESB REST components
EnrichPlatform
Talend Studio

This scenario applies only to Talend Open Studio for ESB, Talend Data Services Platform and Talend Data Fabric.

For more technologies supported by Talend, see Talend components.

This scenario describes how to upload data to a REST service using HTTP POST in a HTML form file. To do so, a Job is created to accept HTTP POST requests using the tRESTRequest component.

A predefined HTML form UploadFile.html is used to upload data to the REST service:

<form action="http://localhost:8088/UserInfo" method="post" enctype="multipart/form-data">
	<input type="file" name="id" />
	<button>upload</button>
</form>

The customer.xml that contains a user ID will be uploaded:

  <customer>
    <id>100</id>
  </customer>