Microsoft
Software
Hardware
Network
Question : Webservice task in SSIS using Script Task
Hi,
i have a problem, i have a web service and has a web method which i had created a wsdl file. i have three parameters from sql database and stored them in the variables of object type. Also i have a text file and this text file has the fourth parameter for the web service and this fourth parameter is dynamic which has many rows where as the three parameters are constant which come from sql server database.
So i created a Flat file source and dumped the data into variable using recordset destination.
so i placed the web service task in for each loop container and then in the input window i could see the parameter for the web service as element type and when i click on the value it is opening up as one more box and all the parameters are inside that box. and outside i can only assign one variable. but i have four parameters need to be passed to the web service. i don;t understand why it is showing values in to different box.
so i used script component as web service task in control flow.
i created a proxy for the script in program.cs and created a new object and trying to pass varaibles to that script component like
element.customerid=(int) DTS.Varaibles("ID")
where id is the varaible
and i am getting an error saying that varaibles are not defined.
can we pass varaibles to the script component which i am using it as webservice task
Answer : Webservice task in SSIS using Script Task
i got the solution i created a web reference in script task and created a new object and passed the parameters using that new object.
Random Solutions
How do I allow access to certain websites only?
SBS2008 Mail delivery delays
Certreq in Windows 2003 Server (Certificate Authority)
Using SaveAs in excel 2007 vba
Building a form/SubForm reference
How can I delete cells and still preserve the formulas in other cells?
Access 2007 Slow on Subforms
MS Access XP Report shows no "Print Custom Size" y?
Windows Vista won't recognize CD or DVD disks.
Access Form with labels can't cycle through labesl in vba code. Original labels recognized but not newly added labels.