Call https:// from server job

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
pqrabc
Participant
Posts: 20
Joined: Wed Nov 18, 2009 2:59 am

Call https:// from server job

Post 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://.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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?
-craig

"You can never have too many knives" -- Logan Nine Fingers
pqrabc
Participant
Posts: 20
Joined: Wed Nov 18, 2009 2:59 am

Post by pqrabc »

I am using Ver 8.5..
How to use Java Pack.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
pqrabc
Participant
Posts: 20
Joined: Wed Nov 18, 2009 2:59 am

Post by pqrabc »

Thanks for your response.

I will check for Java code and Java pack.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post 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
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
pqrabc
Participant
Posts: 20
Joined: Wed Nov 18, 2009 2:59 am

Post 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:/
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post 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
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply