Six Stars

Post the data to Webservice by posting the data from File.

Hi All,

 

I need to Post the data to Soap webservice by using Post parameters from file.

I am avoiding reading the data in the job and then sending the data as String.

 

It is working ok with the httpRequest .But now my main concern is when we get the error,We hav e data in the body of it.Though by using httpRequest i am only getting Response Content as 500 internal server Error.

 

Is there any way i can also get the Error body?

 

Do we have any other component which will help me to achieve this? 

 

Thanks in advance!

4 REPLIES
Moderator

Re: Post the data to Webservice by posting the data from File.

Hello,

Could you please use tSoap component to see if it is what you are looking for?

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.
Seven Stars sgv
Seven Stars

Re: Post the data to Webservice by posting the data from File.

Hi Pooja,

 

Hmmmm... I think you can use a tWebServiceInput. Add your WSDL, then go Advanced Settings, check Advanced Use and click on button near to WSDL2Java.
Talend will generate automatically some routines code that you can use. You have to be good on Java but it's work fine if you want to get your error message or get somes values. 

 

Good luck ,

SGV

Six Stars

Re: Post the data to Webservice by posting the data from File.

Hi,

 

Sure i will try by using  twebserviceinput component.

 

Thanks!

Moderator

Re: Post the data to Webservice by posting the data from File.

Hello,

Is there any update for your issue?

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.