http post

Six Stars

http post

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.

One Star

Re:http post

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.

Six Stars

Re: http post

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,.

Moderator

Re:http post

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re:http post

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.

Moderator

Re: http post

Hi jijli,
Which version do you used before your download the new talend open studio 5.2.1.
Best regards
Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re:http post

I used 5.0.0 M2.

Moderator

Re: http post

Hi,
Perhaps there is a issue in 5.0.0 M2 of tHttpRequest, I will make a research on it.
Best regards
Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.