SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS - REST SPI - Parameters


SSIS - REST SPI - Parameters

Author
Message
kamal_ece
kamal_ece
Valued Member
Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)

Group: General Forum Members
Points: 51 Visits: 298
Hi Gurus,

I'm trying to implement data passed from SQL database to REST API using SSIS.

Background:
------------

The REST API takes 3 parameters as input and this input is supplied via output from a sql query which will return me 10 records from my database.
I have a web service with the help of a method in it performs specific task. Once the tasks are complete it gives an output of ID.

So far:
-------

what I have done is built a package having Execute SQL task to generate the 10 records, followed by the Foreach Loop Container passing the 10 records to loop which contains the Script Task to connect to the Webservice. Further if Web Service is successful I will use the output to update a table with the ID for the 10 records.

My Question is:
How to get the result of the SQL query and input it to the REST API? I want to make this possible for one record for now. If this works then I will loop the 10 records.

Regards,
KK
rhythmk
rhythmk
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1710 Visits: 1099
kamal_ece (5/7/2014)
Hi Gurus,

I'm trying to implement data passed from SQL database to REST API using SSIS.



I did not get your requirement. Can you please explain bit more with example. Also what is REST API ?
If it is some other application in which you want to use the query result, the application code need to have connectivity with your DB.

--rhythmk
------------------------------------------------------------------
To post your question use below link

http://www.sqlservercentral.com/articles/Best+Practices/61537/
:-)
kamal_ece
kamal_ece
Valued Member
Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)

Group: General Forum Members
Points: 51 Visits: 298
REST(Representational state transfer) is the model of the Web. A browser makes a request to a URL and we get back a response. That request can be anything from GET, POST, PUT, DELETE and the response can be anything like HTML, image, PDF, XML.

It's just not only a browser but could be anything which can make request and process the response.

My requirement is to pass parameters to the REST API. The REST API will process and give me a response.

Hope this helps.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search