Integration with External Web Service
  • 08 Mar 2024
  • 3 Minutes to read
  • Dark
    Light

Integration with External Web Service

  • Dark
    Light

Article summary

Feature Details

Introduced in Version

--

Modified in Version

8.17

Location

System > Integration > External  Services

Overview

Webservice references are web services that can be integrated into a Flow. To add a web service within the Portal, navigate to the folder System > Integrations > External Services and click the ADD WEB SERVICE REFERENCE button, then supply the necessary details.
To call a web service method part of a Flow, in the Flow Designer, locate the appropriate component under Integration > External WebServices > [WebService Reference Name], and place it in the Flow's workspace.

Additional Setup.

  • To generate a Web Service Reference, please install .NET Core 6.0 SDK and initiate a machine restart for proper configuration.

  • The platform currently does NOT support creating integrations with Web Services protected using Basic/Windows Authentication or Web Services over HTTPS that use Self-Signed Certificates. For both cases, using an SDK is the best practice.

The following table describes all the settings to configure the External Web Service.

Setting

Description

Name

This is a user-defined name for the external web service reference. Steps with this name will be available in the toolbox under Integration > External WebServices.

URL

The URL is the Uniform Resource Locator of the external web service. It specifies the address where the application will send requests to or receive responses from the web service. It typically includes the protocol (e.g., http or https) and the domain or IP address of the web service.

Share Session

This determines whether the application will share a session with the external web service. If set to "true," the application will maintain a session state across multiple requests to the web service, which can be important for certain types of interactions. If set to "false," each request will be treated independently, and there won't be any session sharing.

Specify WSDL

When enabled, it opens two new fields. This setting is used to specify the Web Services Description Language (WSDL) for the external web service.

  • URL: Allows the provision of a URL pointing to the WSDL file hosted by the web service.

  • From File: Allows to upload a local WSDL file.

Receive Timeout

The TimeSpan specifies how long the application has to receive a message before timing out. The default value is 10 minutes.

Send Timeout

The TimeSpan specifies how long the write operation has to complete before timing out. The default value is 1 minute.

Authentication for Web Service Steps

Users can authenticate all web service steps for secured access. To use authentication, navigate to the step properties and enable Specify Credentials. This will expose a drop-down to select the Authentication Type:

NTLM authentication method is not supported in Containers.

  • Basic: This is a simple authentication mechanism where the client includes a username and password in the request headers. Typically, the web service provider will specify the format or conventions for usernames.

  • NTLM: NTLM (Windows NT LAN Manager) is a more complex authentication protocol often used in Windows environments. It involves a challenge-response mechanism and can provide a higher level of security compared to Basic Authentication.

Ensure that you add the User Name and Password for the selected auth type.


Example

The following example will integrate an External Web Service to verify if a phone number is valid. A user will input the phone number in a Form, which will serve as input to the web service. If the phone number is valid, the Flow will proceed. Otherwise, the user is redirected back to the original Form.

  1. Navigate to System > Integrations > External Services and click ADD WEBSERVICE REFERENCE.

  2. In the Add External Web Services Reference window, enter a name and the URL for the web service reference. Because WSDL defines the web service, select the Specify WSDL option. WSDL-defined web services can describe the methods that users can use. 

  3. After selecting the Specify WSDL option, select Url as the Source Type and enter the WSDL URL in the From URL field. Example URL: http://ws.cdyne.com/phoneverify/phoneverify.asmx.

    The From File option will provide an option to upload a .wsdl file.

  4. Click SAVE SERVICE REFERENCE.

  5. In a Designer Project, click CREATE FLOW to create a Flow.

  6. Navigate to INTEGRATION > WEB SERVICES. Expand the reference, drag over the CheckPhoneNumber step to the workspace, and connect the step to the Start and End steps.

  7. Enter in constant values for the License Key and Phone Number fields.  

  8. Click Debug on the top action bar to review the output of the step.


Feature Changes

Description

Version

Developer Task

 FR Add Ability To Specify Credentials When Using NTML


8.17

[DT-037411]



Was this article helpful?