Hi @sriramsahani,
Thanks for asking this question. I tried to explore on this topic. I am sure you would have gone through the offical documentation of SAS for using BI Web Services. If not, here is the link to that: http://support.sas.com/documentation/cdl/en/wbsvcdg/64883/HTML/default/viewer.htm
Using this as ref. I was able to create a Web Service and view it via browser. I will later try to use Java to call this web service.
However for now I listing down the basic steps I have performed.
1) Create a STP for ex: MySTP and store it in your Metadata folder /MyTestFolder/MySTP
I added simple SAS code to the STP as below:
proc print data=sashelp.cars;
run;
2) Launch SMC and go the metadata folder location where you have stored your STP in Step 1.
3) Right click on MySTP and select deploy as Web service. It will ask you to give a name for your web service. lets call it MyWebService.
4) Select the default Web Service Markup URL from drop down and Hit Next. Leave the namespace as default. Incase you want to give a namespace, you can give it here. Click Next
5) Review the details and Hit Finish. This would deploy your web service to location /System/Services/MyWebService.
6) Go to browser and hit the URL: http://<SAS-Mid-Tier-Host-Name-Here>:7980/SASBIWS/rest/MyWebService/MySTP/dataTargets/_WEBOUT
7) If asked for Login, please provide LoginID/Pass which would have permissions to read the STP metadata.
Note: Your SAS Environment needs to be deployed with SAS BI Web Services for Java 9.4 in order to make this run. you can validate if this is installed in your environment or not by navigating to SMC -> Plugins -> Application Management -> Configuration Manager -> SAS Application Infrastructure -> BI Web Services for Java 9.4
HTH, Thanks!