Call webservice and insert/update sql table

Posted on 2013-10-09
Medium Priority
Last Modified: 2016-02-11

I have a basic transaction there I want to read the output from a webservice and put the result in a sql table and update this table after scheduled timebase?

Question by:semlun
  • 2
LVL 43

Expert Comment

by:Eugene Z
ID: 39560891
please provide more details.

as one of ideas, you may use WebService task in SSIS
about Web Service Task

and the  nice example:

Calling a Web Service from a SQL Integration Services package
LVL 28

Accepted Solution

Ryan McCauley earned 1500 total points
ID: 39560910
SSIS is probably going to be the easiest way to set this up, as it's straight-forward to read from a webservice there.

Alternatively, you could set up a SQL-CLR assembly that reads from your webservice and outputs the results, and then you can insert those results directly into your table. Here's a simple example, and you'd need to expand it to use the data types you're returning:


If you'd like more reading, here's another basic example to get you started:


You can have the CLR assembly do anything you can do in normal .NET code, including call a web service and return the results. Not sure if you've got any .NET development experience, but if not, hopefully somebody at the office does and can help you (or you can post another question here with more specifics and we can do our best!).
LVL 43

Expert Comment

by:Eugene Z
ID: 39563009
semlun: does it mean you will go with CLR?

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

My client has a dictionary table. They're defining a list of standard naming convention. Now, they are requiring my team to provide us a mechanism how to match new incoming data with existing data in their system.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question