Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I have created one SSIS Package which contains the Web Service Task. The Web Service Task is using the HTTP Connection Manager which is pointing to the address where the Web Service is hosted. When we execute the Task without any credentials, it throws the error -

Error 401 - Unauthorized : The Remote Server returned an Error.

When we give the credentials, then the Test Connection results in success.

The Asp.Net Web.Config contains the code like below -
XML
<location path="SERVICE">
    <system.web>
      <authorization>
        <allow user = "?">
        <allow roles="DOMAIN\ROLENAME"/>
        <allow users="DOMAIN\USERNAME"/>
   </authorization>
  </system.web>
</location>


However, we don't have to give the username & password in HTTP Connection Manager but on the other hand the webservice must be executed by the roles and users mentioned in Web.Config file.

Please suggest how can we achieve this?

Thanks in advance.
Posted
Updated 13-Feb-13 6:21am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900