Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
i need to set body in prost request using trestClient.
the body:
<Request>
<Head>
<Username>[Your Username]</Username>
<Password>[Your Password]</Password>
<RequestType>GetCountries</RequestType>
</Head>
<Body/>
</Request>
in postman :
the requests should be sent to the server with the "xml" parameter name using the HTTP POST method.
how can i do this ......
@hiba chaieb , The body should be passed as input schema to tRestclient check the below example.
https://wynandbooysen.com/posts/2019-07-08-talend-tip-posting-json-with-trestclient/
Thanks,
Manohar
Hi @Manohar B
thanks for reply.
how i call the key "xml" in trestClient ....the body must be in a variable called "xml" like in the screenshot in postman.
Thanks,
Hiba
@hiba chaieb ,check this case answer accept type selected xml like that you need to configure.
https://community.talend.com/s/feed/0D73p000004kWEVCA2
Thanks,
Manohar
i didn't get the result :
All XML requests should be sent to the server with the "xml" parameter name using the HTTP POST method.
the body is :
<Request>
<Head>
<Username>[Your Username]</Username>
<Password>[Your Password]</Password>
<RequestType>GetCountries</RequestType>
</Head>
<Body/>
</Request>