Page 1 of 1

REST 2.0 Service in ISD

Posted: Mon Mar 21, 2016 8:04 pm
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.

Posted: Mon Mar 21, 2016 9:38 pm
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.

Posted: Tue Mar 22, 2016 9:01 am
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

Posted: Tue Mar 22, 2016 9:53 am
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

Posted: Tue Mar 22, 2016 2:08 pm
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>

Posted: Tue Mar 22, 2016 2:21 pm
by chulett
So... resolved?

Posted: Tue Mar 22, 2016 6:42 pm
by betterthanever
Yes Craig