Hi,
I am attempting to load files to Sharepoint 2010 with SSIS 2012 and have linked HttpUploadDownloadTask.2012.stx11 from http://www.cozyroc.com/script/http-upload-download-task into a Script Task Plus.The HttpUploadDownloadTask.2012.stx11 provides the following
parameters -
Username – user name credential (optional).
Password – password credential (optional).
ProxyUrl – HTTP proxy URL (optional).
IgnoreServerCertificate – enable or disable server certificate validation.
Timeout
Action – task action (upload or download).
RemoteUrl – remote file location.
SourceFile – upload from source file. (TargetFile – download to target file.)
Method – method used to upload file. If not specified default is POST.
Headers – additional web request headers (optional). Syntax is [name]=[value]. Multiple headers are separated with newline.
Requirement - Upload file roy.txt into Sharepoint as a new file and ultimately will upload multiple daily/dated Excel reporting files from SSIS
Settings/Results - I have a local file roy.txt and listed below what settings i've applied when attempting to upload the file roy.txt and the results i have.
Settings 1 - Result - No file uploaded - Upload file roy.txt to AllItems with default POST method
Username - roy
Password - royspassword
IgnoreServerCertificate - False
Timeout - 100
Action - Upload File
RemoteUrl - http://sharepoint/testing/ROY%20test%20SSIS/Process/Forms/AllItems.aspx
SourceFile - roy.txt
Method -
Headers -
Setting 2 - Result - Replaced page http://sharepoint/testing/ROY%20test%20SSIS/Process/Forms/AllItems.aspx with roy.txt using PUT method
Username - roy
Password - royspassword
IgnoreServerCertificate - False
Timeout - 100
Action - Upload File
RemoteUrl - http://sharepoint/testing/ROY%20test%20SSIS/Process/Forms/AllItems.aspx
SourceFile - roy.txt
Method - PUT
Headers -
I can manually upload a file fine but wondering if i shoudl use a different RemoteURL and / or Method to get the desired results. Does anyone have any experience or advice in using HttpUploadDownloadTask and/or Sharepoint URL settings to programmatically upload
file successfully in this way?
Thanks
Roy