HTTP call out

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
rajudx
Participant
Posts: 45
Joined: Tue Nov 14, 2006 1:58 pm
Location: NJ

HTTP call out

Post by rajudx »

Hi,

As part of the requirement we need to call one of the HTTP url after loading data into database table.

http://100.266.53.14:1234/QPgetmemberHttp?source=PHX.

Please let me know which stage we need to use to make http call from datastage.

Thanks,
Raju
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

One way that I've seen it done is via JavaPack..(using a small java class that does whatever it needs to with HTTP). letting you do whatever you need/want with whatever you bring back via HTTP, and send content or messages downstream.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
rajudx
Participant
Posts: 45
Joined: Tue Nov 14, 2006 1:58 pm
Location: NJ

Post by rajudx »

Thanks Eostic for quick replay.
We need to call java class code through java client stage or is there any other process we need to use.
Another thing is I don't have any idea on java and just want know is there any other approach we can implement with in datastage to make http call.

Thanks,
Raju.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

I'll let others suggest other possibilities --- there may be some, but java is the only way I've seen it done.

Yes, with java you would implement your class to "talk" with the JavaClient or the Java Transformer Stage (or Java Integration Stage if you are in 9.1).

...and further, yes, it requires that you know enough Java to be dangerous --- probably best if you find a java person on site that can support this part of the development.

Then working with them, you provide the DataStage expertise and you will be able to accomplish a lot. There are lots of threads here in the forum on using java and javapack. I haven't look thru them, but perhaps someone has done HTTP too and can reflect.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
rajudx
Participant
Posts: 45
Joined: Tue Nov 14, 2006 1:58 pm
Location: NJ

Post by rajudx »

Hi Ostic,

We have implemented some java code and able to make HTTP call out for above mentioned URL and please let me know the process for using java class code in datastage.


Thanks,
Raju N
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What version of DataStage are you running?
-craig

"You can never have too many knives" -- Logan Nine Fingers
rajudx
Participant
Posts: 45
Joined: Tue Nov 14, 2006 1:58 pm
Location: NJ

Post by rajudx »

version 8.5
Ran
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Research and experiment with the Java Transformer stage, and read the Java Pack manual.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply