SSIS Web Service task SSL errors

CC 321 Reputation points
2022-07-11T14:30:09.647+00:00

I've tried different credentials, target server versions, etc. hitting our Primavera WSDL.
Works great in any browser.

Via the Web Service SSIS task, I get an error when running the package:

** Target Server 2016:
--1. Connection manager "HTTP Connection Manager 1": SSL certificate response obtained from the server was not valid. Cannot process the request.

** Target Server 2019:
--2. Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: The Web Service threw an error during method execution. The error is: The request was aborted: Could not create SSL/TLS secure channel

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2022-07-13T02:58:11.683+00:00

    Hi @CC ,

    Sounds like the SSL certificate on the server is not valid. This is probably because it's a temporary certificate, or you self-signed it.

    Add the signer of the temporary certificate to the trusted authorities list on the computer running the package.

    Or import the temporary certificate as a trusted certificate.

    I think for webservices using SSL you may better off using Script Task rather than Webservice task.

    More details you may refer to:

    using-a-script-task-in-sql-server-integration-services-ssis-to-connect-to-a-web-service

    how-to-consume-web-service-through-ssis-package

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

  2. CC 321 Reputation points
    2022-07-13T14:07:21.923+00:00

    Not sure if makes a difference, but just told by db/server admin this web service is setup for cookie authentication.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.