Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Calling REST API from SSIS (SQL Server 2008 R2)
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

267 Posts

Posted - 01/11/2013 :  16:38:56  Show Profile  Reply with Quote
Hi guys,

There is a REST API that once called returns the data set in the CSV format.

I am trying to figure out the best way to implement that API call in SSIS so that a csv file can get returned and stored in a folder to be looped through and processed by the next step.

Can anyone, who has made REST API calls from SSIS, provide some suggestions please?

Thanks in advance!

Edited by - sql_er on 01/11/2013 16:39:39

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 01/12/2013 :  12:51:55  Show Profile  Reply with Quote
Sounds like use of script task for me.

SQL Server MVP

Go to Top of Page

Flowing Fount of Yak Knowledge

1635 Posts

Posted - 01/13/2013 :  00:00:25  Show Profile  Click to see yosiasz's MSN Messenger address  Reply with Quote
definitely a script task. Just did one and it was a bear. gotcha is that you cannot use web.config from SSIS. you have to carve up the bare binding

var binding = new WSHttpBinding();
binding.Name = "WSHttpBinding_IYOURSERVICE";
binding.CloseTimeout = new TimeSpan(00, 01, 00);
binding.OpenTimeout = new TimeSpan(00, 01, 00);
binding.ReceiveTimeout = new TimeSpan(00, 10, 00);
binding.SendTimeout = new TimeSpan(00, 01, 00);
binding.BypassProxyOnLocal = false;
binding.TransactionFlow = false;
binding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard;
binding.MaxBufferPoolSize = 524288;
binding.MaxReceivedMessageSize = 65536;
binding.MessageEncoding = WSMessageEncoding.Text;
binding.UseDefaultWebProxy = true;
binding.AllowCookies = false;
your best bet is to try it out with a small client .net app then port over the code in SSIS

If you don't have the passion to help people, you have no passion
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000