cancel
Showing results for 
Search instead for 
Did you mean: 

Consume Web Service Soap with header authentication

DeiseSantos
Level 2
I'm trying to consume a SOAP web service with a basic authentication scheme. As per the guidelines in the Blue Prism Web Service guide, I generated the code using "wsdl.exe" and included it in the object's initialise. I created a new action and included in a code stage the C # code to authenticate and invoke the web service method I need. But Blue Prism is experiencing the following error "The request was canceled: A secure channel for SSL / TLS could not be created." I tested the same code used in Blue Prism in Visual Studio and it worked correctly. Does anyone have any suggestions to solve this problem?

------------------------------
Analista de Negócio
CSC Algar
------------------------------
1 REPLY 1

DeiseSantos
Level 2
The problem was solved by adding the code below:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls12
| SecurityProtocolType.Ssl3;

------------------------------
Analista de Negócio
CSC Algar
------------------------------