cancel
Showing results for 
Search instead for 
Did you mean: 

Web service error

Neel1
MVP
Hello,
Facing below error while using the SOAP web service via Action.

ERROR: Internal: Unexpected error Error in Web service- the underlying connection was closed: An unexpected error occurred on a send

What shall i need to check and apply for this error?

------------------------------
Neeraj Kumar
Technical Architect
------------------------------
8 REPLIES 8

PabloSarabia
Level 11
Hi @Neeraj Kumar

Are you using the Web Service functionality from Blue Prism for this, right?

​This is a problem with the Security Protocols.

If you try to call the api using a code stage, adding this line you will solve the problem:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;


See you in the community, bye 🙂


------------------------------
Pablo Sarabia
Architect
Altamira Assets Management
Madrid
------------------------------

Hello @PabloSarabia - Thanks for your reply.

 WSDL is http based. so security protocol will come in picture?

I am not calling API via code stage.​

------------------------------
Neeraj Kumar
Technical Architect
------------------------------

@Neeraj Kumar,

If you're connecting to a SOAP web service over HTTP, as opposed to HTTPs, the TLS version shouldn't come into play. Does the web service you're connecting to have any sort of authentication (ex. HTTP Basic) enabled on it?

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

PabloSarabia
Level 11
Hi @Neeraj Kumar

In addition to what Eirc has said, did you try to call your service with the SoapUI or Postman, just to test if the service repsonse correctly.


Bye :)​

------------------------------
Pablo Sarabia
Architect
Altamira Assets Management
Madrid
------------------------------

hello,

We are using basic authentication and successfully  able to consume the Web service.
using action in object- receiving the error. 

@PabloSarabia- did not use the Postman or SOAPUI so far.​

------------------------------
Neeraj Kumar
Technical Architect
------------------------------

Hi,

I suggest SOAPUi just to test the communication between your BP universe and the WS.

It's a simple software to perform web service calls. I use it whenever I have a communications problem to check whether the problem is in the service, in the program calling the service or in the communication between the machines.   

Here is the link: https://www.soapui.org/


Hope this helps you.

Bye 🙂

------------------------------
Pablo Sarabia
Architect
Altamira Assets Management
Madrid
------------------------------

Hello Pablo - Tried with SOAP UI, getting the error, raised the issue to the team who provided the WS.

------------------------------
Neeraj Kumar
Technical Architect
------------------------------

Hi Neeraj!

Nice to hear. I remember that Postman have an extension version for Google Chrome.

In case it helps, here is the link: https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=es


Bye 🙂

------------------------------
Pablo Sarabia
Architect
Altamira Assets Management
Madrid
------------------------------