How to SOAP on http/https

How to SOAP on http/https?

Step-by-step guide

A. Testing HTTP with SOAP request:

1. Download SoapUI version 5.5.0 from here  and install it with default settings:

2. Create from File > New SOAP project. Give it a Name and use the following  
web service as Initial WSDL.
Check “Create sample requests for all operations?”:

 

3. Right click the first binding and select Generate SOAP Mock Service:

 

4. Give a name to the service (in this case SoapNumberService) and enable it from the Start button

 5. Start Service




6. Double-click the first binding, navigate to the second tab “Service Endpoints”, and check that there are 2 endpoints added (online and local):

 

7. On the endpoint (our named binding which in this case is SoapNumberService) modify the Request and the Response Body .

Double-Click the Response1 and the edit the <web:dNum>?</web:dNum> for the request, and the <web:NumberToDollarsResult>?</web:NumberToDollarsResult>

for the response values. Check example:

 

 

8. Copy the local endpoint, in our case: http://end_point:8088/mockNumberConversionSoapBinding

To test this press the run button and check Request and Response message.


 

9. Click send and notice the response > response is working.

  1. From UiPath Studio > New Project which uses the UiPath.Web.Activities, version 1.4.4 as dependency. Add a SOAP request Activity and configure it as following:
  2. Service Description > Add your binding address + “.asmx?wsdl” (http://end_point:8088/mockNumberConversionSoapBinding.asmx?wsdl )
  3. Press Get to retrieve the Data
  4. Pick the method with modified body, in our case “NumberToDollars”
  5. Press Invoke and check the response

B. Testing HTTPS with SOAP request:

 

1. Studio is configured to validate the trust chain of server certificate that it connects to. If the certificate is issued by a public certificate authority, it will work without any further configurations. Here is an example that works directly, where the certificate is issued by Digicert authority 

 

2. If the certificate is self signed/private it must be added as a trusted certificate into the local machine/user certificate store (on the machine running Studio).

To secure the mock service previously created via SSL, we first need to generate a keystore with private and public keys. To do this, use the keytool command-line utility that is included in the JDK installation (see below steps).

Note: If JDK is not installed, it can be downloaded from the Oracle web site 

<ul style="margin: 12px 0px 0px;padding: 0px 0px 0px 40px;list-st