Page 1 of 1

Call https:// from server job

Posted: Wed Nov 12, 2014 4:57 am
by pqrabc
Hi,

We have a requirement to make http:// call from datastage which I understand is different from web service call. I tried to search through forums but could not find relevant information. Can someone please help.

I was able to make web service call using Web_Services_Client stage, but could not call a normal http://.

Posted: Wed Nov 12, 2014 8:13 am
by chulett
You'd need to write something in Java and then integrate it into your job using something like the Java pack. What exact version are you running?

Posted: Wed Nov 12, 2014 11:09 pm
by pqrabc
I am using Ver 8.5..
How to use Java Pack.

Posted: Wed Nov 12, 2014 11:23 pm
by chulett
It comes with full documentation and is probably online as well. The bigger question is can you or someone at your site code up the Java needed to source from a URL? The 'pack' just allows you to integrate that into a job.

Posted: Thu Nov 13, 2014 12:04 am
by pqrabc
Thanks for your response.

I will check for Java code and Java pack.

Posted: Thu Nov 13, 2014 1:58 am
by eostic
It is also useful to know more about exactly what you are trying to do with the Web Service, and what type of service it is....some things to think about:
  • Is it a REST based Web Service?
    Is it delivering a json or xml payload to you? ...or just some .csv data or other type of data?
    How often will you call it? ...three times a day? ...or 300 times per second?
    How much data is in the return payload?
    How many of these web services do you have to invoke? (one or two for a particular application? ....or hundreds as part of a whole web services infrastructure?)
There are more, but that's a start.

Ernie

Posted: Thu Nov 13, 2014 2:54 am
by pqrabc
Hi,

We need to call http url to kick off MebMethods peice of code. Currently they do not have webservice created for these URLs, so a direct call is to be placed to http:/

Posted: Thu Nov 13, 2014 1:50 pm
by eostic
If you aren't processing a response payload from the service, consider just using something like curl from the command line. I haven't done it myself, but I have talked to a lot of folks who use that all the time for their REST calls.....it ought to work for any http invocation. Just use a before/after job subroutine or similar....or the command stage, depending on the release and job edition that you are using.

Ernie