Web services Talend tRestClient:如何在POST请求中设置正文

Web services Talend tRestClient:如何在POST请求中设置正文,web-services,talend,Web Services,Talend,如何在tRestClient中设置与在tRest中类似的body请求?我无法编辑“输入模式”。它只是说“body”是类型文档,但它是只读的。我尝试将tFileInputXML与文档类型的输出一起使用。 但是当我做这份工作时,我犯了一个错误 ::Exception in component tRESTClient_1 () javax.ws.rs.WebApplicationException: HTTP 500 Internal Server Error at ponant.test2_

如何在tRestClient中设置与在tRest中类似的body请求?我无法编辑“输入模式”。它只是说“body”是类型文档,但它是只读的。我尝试将tFileInputXML与文档类型的输出一起使用。 但是当我做这份工作时,我犯了一个错误

::Exception in component tRESTClient_1 ()
javax.ws.rs.WebApplicationException: HTTP 500 Internal Server Error
    at ponant.test2_0_1.test2.tFileInputXML_1Process(test2.java:1021)
    at ponant.test2_0_1.test2.runJobInTOS(test2.java:1354)
    at ponant.test2_0_1.test2.main(test2.java:1205)

我喜欢在tRestClient之前使用tJavaRow,我将两列“body | string”保留为

String-payload=”“;
output_row.string=有效载荷;
输出_row.body=有效载荷;
String payload = "<yourxmlhere>";
output_row.string = payload;
output_row.body = payload;