Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8411

Re: How to call a Stored procedure from xsodata service?

$
0
0

Hi Arjun,

 

You can expose the procedure as an Odata Service if you wrap it in a Scripted Calculation View..

 

Firstly You will have to create a Scripted Calculation View from the Modeller perspective.

 

Below is an example I just tried.

 

Add Columns & Input Parameters

 

CV.JPG

 

Consume this Calc View in your Odata service :

 

service namespace "services.test"

{

"pda.Models::CV_TEST" as "Customer"

keys generate local "ID"

parameters via entity;

}

 

Check your service by Passing the Input Parameters

 

http://<host>:<port>/<>/services/test.xsodata/CustomerParameters(2)/Results?$format=json

 

Hope this was Helpful

 

Regards,
Avinash Raju


Viewing all articles
Browse latest Browse all 8411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>