• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [Security for tREST WebService Call]

#1 2012-05-24 01:30:11

aditya3245
New member
Registered: 2012-05-24
Posts: 9

[Security for tREST WebService Call]

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


Uploaded Images

Last edited by aditya3245 (2012-05-24 01:42:54)

Offline

#2 2012-05-24 04:35:28

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: [Security for tREST WebService Call]

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


Only Paranoid Survive.

Offline

#3 2012-05-24 18:11:35

aditya3245
New member
Registered: 2012-05-24
Posts: 9

Re: [Security for tREST WebService Call]

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

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [Security for tREST WebService Call]

Board footer

Powered by FluxBB