You are not logged in.
Announcement
Unanswered posts
|
Pages: 1
We invoke a web service using tREST (no WSDL - so we CANNOT use tWebServiceInput) and extract XML based on XPath queries defined in tExtractXMLField - we then use tMAP to pass on the result to a csv file - which in turn gets sFTPd over to a local server (see attached diagram 1)
There is an additional change we are looking to make:
For OTHER components like tWebServiceInput (which we CANT USE) one can add security - AND add certs as described in diagram 2 - this adds a layer of security to the call
~~~
How do we add security in tREST similarly ?
How do we configure tREST for security ? Do we simply add Authorization Headers under HTTP Headers - see attached diagram 3 ? This is a SIMPLE GET REQUEST API call.
Is it perhaps a good idea to instead scrap tREST and replace with tFileFetch instead (see diagram 4 and diagram 5) ? Is tFileFetch used commonly for making web service calls and extracting output?
Any advice would help
Thanks
-A
Last edited by aditya3245 (2012-05-24 01:42:54)
Offline

Hi
Because tREST simply uses javax.net for accessing resources via HTTP, we can only add Authorization Headers under HTTP Headers for security.
But when it comes to tFileFetch, it turns to org.apache.commons.httpclient which supports more Authentication modes.
You might have a try with tFileFectch. But please remember the URL needs to point to specified file(e.g. http://talendforge.org/file_fetch.txt). It doesn't work with URL like http://talendforge.org/.
Regards,
Pedro
Offline
Thanks for your response - how do we add authorization headers for tREST ?
We want to explicitly add security certificates - can that be done as a part of header configuration (or rather header addition) ?
The goal is to do HTTP protocol for the GET request PLUS add certs for security.
Last edited by aditya3245 (2012-05-24 18:26:10)
Offline
Pages: 1