Scenario 5: REST service accepting HTTP POST requests in an HTML form
This scenario applies only to a Talend solution with ESB.
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:
1 2 3 4 |
<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:
1 2 3 |
<customer> <id>100</id> </customer> |
Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Login
0 Comments