Four Stars

invoking a service using trestClient

Hi All,

I want to invoke a server using trestclient.

the URL is of the format.. 

  http://localhost:8080/user/events?FilterType=FilterID\&FilterValue=10513\&DisplayID=139

 

could you please suggest how to configure the trestClient.

Thanks,

Rohit

 

2 REPLIES
Fifteen Stars

Re: invoking a service using trestClient

Does that url work if you put it into a web browser? If so, it is likely a GET method. If that is the case, just use the tRestClient with that url in the URL parameter (...surrounded by quotes)

https://help.talend.com/reader/hCrOzogIwKfuR3mPf~LydA/~V42EBQClKxKQghNvzHF1g

Rilhia Solutions
Four Stars

Re: invoking a service using trestClient

Hi Rilhia,

i tried with curl command in the server and it worked.

Below is the error which I am getting when directly putting the URL in the trestclient..

 

Execution failed : Job compile errors
At least job "FM_AssureNow_Alarms" has a compile errors, please fix and export again.
Error Line: 898
Detail Message: Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.

 

Could you help?

 

Thanks,

Rohit