Domanda

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.
È stato utile?

Soluzione 2

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

Find my solution here (updated with easy steps).

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top