I tried the tutorial below to consume a web service in a Script Component in SSIS.
After pre-compiling I get following warning:
Warning 1 There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Microsoft.SqlServer.DTSRuntimeWrap, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets
And my script component cannot run.
I found the solution of Microsoft here but I can't apply this in SSIS. Any help is appreciated
-- EDIT --
I sent a new feedback to Microsoft, they are reviewing the issue - Status: Active
This is my solution
I added a Service Reference, instead of Web Reference
by Right-clicking on References in the 'Solution Explorer' -> select 'Add Service Reference' -> Paste the address (http://www.ibanbic.be/IBANBIC.asmx) -> Click on 'Go' Button - Then 'OK'
I added the following References in code
UPDATED
This is how my code looks like:
EDIT
I was getting an error when running my Package, which said:
I added this line of code (in my CreateWebServiceInstance-method):
SUMMARY