Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to have a job to post an xml file to a url. Then get the xml http response back.
Does anybody know which component can do this job? If you could provide an example, that will be great.
Thanks.
The component tFileFetch can upload files and save the response into another file.
Under Basic Settings:
Set your destination directory and file name.
Check "POST method".
Under Advanced Settings:
Check "Upload file" and set the POST-parameter "Name" and "File" name here.
Thanks for the reply.
I used tFileFetch.
I put the the destination url into URI field. (This is the URL I want to post my file to.)
And then I check post method. I leave the parameters blank.
And in the advanced settings:
I checked Upload file and put file "name" is the real file name, "file" is the full path with the file name.
When I ran it, I got java.lang.Exception: Method failed: HTTP/1.1 500 Internal Server Error
I think I did something wrong. Can you help me to find out where it is?
Thanks,.
Hi jijli,
Here is a component reference about tFileList with a Scenario, hope it will point you a light.
In addition, could you uploading your screenshot of tFileList component setting into forum so that we can address your issue asap.
Best regards
Sabrina
I downloaded the new talend open studio 5.2.1. Then use component tHttpRequest. It works fine now.
The old version didn't have response.
Thanks anyways.
Hi jijli,
Which version do you used before your download the new talend open studio 5.2.1.
Best regards
Sabrina
I used 5.0.0 M2.
Hi,
Perhaps there is a issue in 5.0.0 M2 of tHttpRequest, I will make a research on it.
Best regards
Sabrina