all groups > sql server dts > june 2007 >
You're in the

sql server dts

group:

WebService Task and session enabled methods in SSIS


WebService Task and session enabled methods in SSIS Mogens Nielsen - WM-Data A/S
6/28/2007 1:38:00 AM
sql server dts:
Hi,
I'm currently setting up a SSIS package.
The purpose is to read a comma-separated text file and call a webservice
with the values from the text file using the webservice task in SSIS.
The webservice methods are session-enabled that is, I call an
Initialize-method, then the Add-method for each row in the text-file.
Eventually I call a commit-method.

I am able to do this in a test project, if I set a CookieContainer on the
proxy-object of the web service. When using the Web Service Task in SSIS the
Session object is being reset between each call.
I suspect that SSIS is not setting a CookieContainer on the proxy object
when using the Web Service Task.

Is this method of using the web service task all wrong? Do anyone have a
better solution to this scenario?
I could of course write my own custom WS task component, but would rather
use standard components..

Mogens Nielsen

-------------------------------------------
Check out my BI blog here <a
RE: WebService Task and session enabled methods in SSIS Mogens Nielsen - WM-Data A/S
7/5/2007 1:46:02 PM
Okay I dropped the idea about using session variables. Instead I solved it by
sending xml as input to my web methods.
As a matter of fact this works.

However I would still like to know if anyone solved using session enabled
web methods in SSIS

Cheers,
Mogens

-------------------------------------------------------------------------------
Check out my BI blog here http://frustrated-developer.blogspot.com

[quoted text, click to view]
AddThis Social Bookmark Button