REST 2.0 Service in ISD

Dedicated to DataStage and DataStage TX editions featuring IBM<sup>®</sup> Service-Oriented Architectures.

Moderators: chulett, rschirm

Post Reply
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

REST 2.0 Service in ISD

Post by betterthanever »

Good Evening,
I am setting up a REST 2.0 Service in DataStage 9.1, where the consuming API application can post the status of a JSON transaction we send from DataStage. I am setting this up to take the status(Failure/Success) and persist in a DB for the resource ID/URI of the transaction . Just like when you deploy a DS job as a web service(SOAP over HTTP) you get a WSDL, I was expecting an URL/Service End Point that i can share with the status posting party. I was unsuccessful finding it once the service is deployed.

I may be wrong here to assume REST 2.0 Service is a REST API end point. I appreciate any inputs.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

To help us to diagnose, can you please be specific about how you set up the service in an Information Services Director project? Also please mention what you tried that failed to find the service.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Post by betterthanever »

sure.
i created a project under that started a new Application. under that application i gave REST 2.0 binding(JSON/POST/BODY).After that created a new operation and attached a datastage server job as the Information Service provider and then deployed it.

once it is deployed i went to service management console and check under REST 2.0 where i expected to see a URL link
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

take a look here for the specific url, etc. that you need.

http://www.ibm.com/support/knowledgecen ... ml?lang=en

best thing to do when first getting familiar with this binding is to start with a very simple job that just gets a few rows from a file or database, and send that to ISDoutput. Then publish that, without Job Parameters or anything.....

then.... http://server:port/wisd-rest2/yourApp/yourService/yourOperation

Check to return an array at the Operation "output" tab, and select xml as your output format (json is fine ultimately, but xml works simpler with most browsers for initial testing).

then just issue the call as defined, in your browser...the xml payload should come back to you "as is"....then expand your testing and signature from there.

Suggest also that you get yourself a good REST testing tool..many are available for plugin to your browser. I like one called HTTP Requester, on Firefox.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Post by betterthanever »

Thanks Ernie. I thought i would get the URL from the Information Server Console..but it is not the case

I tired this from the doc and it is responding
http://Host:port/wisd-rest2/Application/<service-name>/<operation-name>
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So... resolved?
-craig

"You can never have too many knives" -- Logan Nine Fingers
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Post by betterthanever »

Yes Craig
Post Reply