How to call a web service with multiple input (in a Script Component) in SSIS?

806 views Asked by At

I need to use a Web Service that allows me to perform a special calculation. To perform this I used a Web Service Task, but the problem is that I only know how to call the Web Service once (1 input value), and I need to perform the calculation for multiple values.

enter image description here

I came up with these 2 options to achieve my goal

Option 1:

  • In my opinion it would be better to call the Web Service in a Script Component using a Data Flow Task instead of a WS Task (but don't know how to call a WS in a Script ??).

Option 2:

  • Keep the Web Service Task and perform the calculations for my multiple input values.
2

There are 2 answers

0
Tassisto On BEST ANSWER

I was able to Request the Web Service from a Script Component

Find my solution here (updated with easy steps).

2
SinisterPenguin On

I've used a script task to do this & used System.net.Webrequest to talk to the Web Service - works for me!

However you should also be able to set the Web Service value at run time by putting it in a for each container & using an an expression to set the value in the Web Service Task at run time.