rest client in pentaho

本小妞迷上赌 提交于 2019-12-24 03:16:46

问题


I am very new to the pentaho data integration tool.

I want to consume a restful service(post web service) from my pentaho. For that i found that i should use a rest client. But when i give the url and body(as i want to consume post service) it is not making the necessary changes in the database.

Can anyone tell me how to give body in the rest client in pentaho? i suspect that there is some different way to give the body in the body field of rest client.

I am attaching the screenshot of the rest client which i am making.

Also can anyone suggest me some good links where i can find tutorials for pentaho.


回答1:


In PDI, you need to receive rows, and process them in the next step.

For this case, as stated in the forum, you first need the "GENERATE ROWS" step, to make at least one call to the REST webservice.

Remember to generate only 1 row, else, you will make a X number of calls to the REST webservice.

Then, in the "REST CLIENT" step, choose the field that is generating the row with the URL in the attribute "Accept URL from field".

Hope it helps.




回答2:


Use Generate Rows for your url then pass that to the REST Client and use the 'Accept URL from field'. That's the only I found it to work.



来源:https://stackoverflow.com/questions/25286586/rest-client-in-pentaho

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!