Inventory REST and SOAP Web Service Invoke Actions in WEBCON Using SQL

Learn how to inventory REST and SOAP invoke actions in WEBCON using SQL, including connections, automation hierarchy, methods, and request configuration.

Inventory REST and SOAP Web Service Invoke Actions in WEBCON Using SQL

Introduction

Integrations with external systems are often distributed across multiple WEBCON applications, processes, and automations. As the number of integrations grows, maintaining a clear overview of where REST and SOAP web services are invoked becomes increasingly challenging.

Whether you’re documenting existing integrations, troubleshooting connectivity issues, reviewing dependencies, or preparing updates and upgrades to WEBCON or connected systems, knowing which actions are configured and where they are used is essential.

This article provides a SQL query to inventory REST and SOAP invoke actions across your WEBCON environment, including their application and process context, automation hierarchy, connections, methods, and request configuration.

Prerequisites

You need read access to the WEBCON SQL database and a SQL client such as SQL Server Management Studio. The query uses tables described in the official WEBCON 2026 database documentation, including WFActions, Automations, WFDefinitions, WFApplications, WFApplicationsGroups and WFDataConnections.

What the query returns

InformationColumns
Scope and statusScope, ActionType, IsActive
REST settingsRESTHttpMethod, RESTRequestMode, RESTRequestSuffix
SOAP settingsSOAPWebServiceURI, SOAPWsdlURI, SOAPMethod
Application contextApplication group, application and process name, ID and GUID
Automation contextAutomationName, AutomationID, AutomationGUID, ActionPath
Action detailsActionName, ActionID, ActionGUID, ActionDescription
ConnectionConnectionName, ConnectionID, ConnectionGUID
Request configurationRequestBody

Each matching action appears as a row, including inactive actions. A missing value means the corresponding information was not resolved or extracted, not necessarily that the setting is unused.

SQL query

Disclaimer: This SQL query was created with the assistance of AI. Although it is intended for read-only use, always review and validate the query before executing it. It is recommended to use a test environment and ensure that a recent database backup is available.

Note: The query uses a recursive Common Table Expression (CTE) to resolve nested automation hierarchies and build the ActionPath. Due to this structure, it cannot be used directly in a WEBCON SQL data source and must be executed separately, for example in SQL Server Management Studio (SSMS).

WITH AutomationHierarchy AS (
-- Start with the automation assigned to each Invoke action
SELECT a.ACT_ID AS ActionID, au.AUTM_ID AS AutomationID,
au.AUTM_Name AS AutomationName, au.AUTM_Guid AS AutomationGUID,
au.AUTM_AUTMID AS ParentAutomationID, au.AUTM_DEFID AS ProcessID,
CAST('' AS NVARCHAR(MAX)) AS ActionPath, 0 AS HierarchyLevel
FROM dbo.WFActions a
INNER JOIN dbo.Automations au ON au.AUTM_ID = a.ACT_AUTMID
WHERE a.ACT_ActionKindID IN (32, 78)
UNION ALL
-- Resolve parent operators up to the root automation
SELECT h.ActionID, parent.AUTM_ID, parent.AUTM_Name, parent.AUTM_Guid,
parent.AUTM_AUTMID, COALESCE(parent.AUTM_DEFID, h.ProcessID),
CAST(CONCAT(h.AutomationName,
CASE WHEN h.ActionPath <> '' THEN ' > ' ELSE '' END,
h.ActionPath) AS NVARCHAR(MAX)),
h.HierarchyLevel + 1
FROM AutomationHierarchy h
INNER JOIN dbo.Automations parent ON parent.AUTM_ID = h.ParentAutomationID
),
RootAutomations AS (
-- Select the highest automation for each Invoke action
SELECT h.*,
ROW_NUMBER() OVER (PARTITION BY h.ActionID ORDER BY h.HierarchyLevel DESC) AS RowNum
FROM AutomationHierarchy h
)
SELECT
-- Scope and action type
CASE WHEN d.DEF_ID IS NOT NULL THEN 'Process'
WHEN root.AutomationID IS NOT NULL THEN 'Global'
ELSE 'Unassigned' END AS Scope,
CASE a.ACT_ActionKindID WHEN 32 THEN 'SOAP' WHEN 78 THEN 'REST' END AS ActionType,
a.ACT_IsActive AS IsActive,
-- REST HTTP methods (verified WEBCON 2026 codes)
CASE WHEN a.ACT_ActionKindID = 78 THEN
CASE hm.HttpMethodCode
WHEN 0 THEN 'GET' WHEN 1 THEN 'POST' WHEN 2 THEN 'PUT'
WHEN 3 THEN 'PATCH' WHEN 4 THEN 'DELETE'
WHEN 5 THEN 'GET_WITH_BODY' WHEN 6 THEN 'DELETE_WITH_BODY'
ELSE CONCAT('Code ', hm.HttpMethodCode)
END
END AS RESTHttpMethod,
-- REST request configuration
CASE WHEN a.ACT_ActionKindID = 78 AND NULLIF(sfx.SwaggerSuffix, '') IS NOT NULL THEN 'Swagger'
WHEN a.ACT_ActionKindID = 78 THEN 'Custom' END AS RESTRequestMode,
CASE WHEN a.ACT_ActionKindID = 78 AND NULLIF(sfx.SwaggerSuffix, '') IS NOT NULL THEN sfx.SwaggerSuffix
WHEN a.ACT_ActionKindID = 78 THEN sfx.CustomSuffix END AS RESTRequestSuffix,
-- SOAP request configuration
CASE WHEN a.ACT_ActionKindID = 32 THEN soap.WebServiceURI END AS SOAPWebServiceURI,
CASE WHEN a.ACT_ActionKindID = 32 THEN soap.WsdlURI END AS SOAPWsdlURI,
CASE WHEN a.ACT_ActionKindID = 32 THEN soap.Method END AS SOAPMethod,
-- Application group
grp.AGR_Name AS ApplicationGroupName,
grp.AGR_ID AS ApplicationGroupID,
grp.AGR_Guid AS ApplicationGroupGUID,
-- Application
app.APP_Name AS ApplicationName,
app.APP_ID AS ApplicationID,
app.APP_Guid AS ApplicationGUID,
-- Process
d.DEF_Name AS ProcessName,
d.DEF_ID AS ProcessID,
d.DEF_Guid AS ProcessGUID,
-- Root automation and nested operator path
root.AutomationName AS AutomationName,
root.AutomationID AS AutomationID,
root.AutomationGUID AS AutomationGUID,
NULLIF(root.ActionPath, '') AS ActionPath,
-- Invoke action
a.ACT_Name AS ActionName,
a.ACT_ID AS ActionID,
a.ACT_Guid AS ActionGUID,
a.ACT_Description AS ActionDescription,
-- Data connection
c.WFC_Name AS ConnectionName,
c.WFC_ID AS ConnectionID,
c.WFC_Guid AS ConnectionGUID,
-- Request body (REST JSON or SOAP parameters)
CASE a.ACT_ActionKindID
WHEN 78 THEN CASE WHEN bodypos.StartPos > 0 AND bodypos.EndPos > bodypos.StartPos
THEN NULLIF(SUBSTRING(a.ACT_Configuration,
bodypos.StartPos + LEN('<JsonCommunicate>'),
bodypos.EndPos - bodypos.StartPos - LEN('<JsonCommunicate>')), '') END
WHEN 32 THEN CASE WHEN soappos.StartPos > 0 AND soappos.EndPos > soappos.StartPos
THEN SUBSTRING(a.ACT_Configuration, soappos.StartPos,
soappos.EndPos - soappos.StartPos + LEN('</parameters>')) END
END AS RequestBody
FROM dbo.WFActions a
-- Resolve automation, process, application and group
LEFT JOIN RootAutomations root ON root.ActionID = a.ACT_ID AND root.RowNum = 1
LEFT JOIN dbo.WFSteps st ON st.STP_ID = a.ACT_STPID
LEFT JOIN dbo.WorkFlows wf ON wf.WF_ID = COALESCE(a.ACT_WFID, st.STP_WFID)
LEFT JOIN dbo.WFDefinitions d ON d.DEF_ID = COALESCE(root.ProcessID, a.ACT_DEFID, wf.WF_WFDEFID)
LEFT JOIN dbo.WFApplications app ON app.APP_ID = d.DEF_APPID
LEFT JOIN dbo.WFApplicationsGroups grp ON grp.AGR_ID = app.APP_AGRID
-- Extract connection ID from #WFC:<ID># without XML parsing
OUTER APPLY (SELECT CHARINDEX('#WFC:', a.ACT_Configuration) AS StartPos) cp
OUTER APPLY (SELECT CASE WHEN cp.StartPos > 0
THEN CHARINDEX('#', a.ACT_Configuration, cp.StartPos + 5) ELSE 0 END AS EndPos) ce
OUTER APPLY (SELECT CASE WHEN cp.StartPos > 0 AND ce.EndPos > cp.StartPos + 5
THEN TRY_CONVERT(INT, SUBSTRING(a.ACT_Configuration, cp.StartPos + 5,
ce.EndPos - cp.StartPos - 5)) END AS ConnectionID) cx
LEFT JOIN dbo.WFDataConnections c ON c.WFC_ID = cx.ConnectionID
-- Extract REST HTTP method
OUTER APPLY (SELECT CHARINDEX('<HttpMethod>', a.ACT_Configuration) AS StartPos,
CHARINDEX('</HttpMethod>', a.ACT_Configuration) AS EndPos) methodpos
OUTER APPLY (SELECT CASE WHEN methodpos.StartPos > 0 AND methodpos.EndPos > methodpos.StartPos
THEN TRY_CONVERT(INT, SUBSTRING(a.ACT_Configuration,
methodpos.StartPos + LEN('<HttpMethod>'),
methodpos.EndPos - methodpos.StartPos - LEN('<HttpMethod>'))) END AS HttpMethodCode) hm
-- Extract custom and Swagger URL suffixes
OUTER APPLY (SELECT CHARINDEX('<RestRequestSufix>', a.ACT_Configuration) AS CustomStart,
CHARINDEX('</RestRequestSufix>', a.ACT_Configuration) AS CustomEnd,
CHARINDEX('<SwaggerEndpoint>', a.ACT_Configuration) AS SwaggerStart,
CHARINDEX('</SwaggerEndpoint>', a.ACT_Configuration) AS SwaggerEnd) suffixpos
OUTER APPLY (
SELECT CASE WHEN suffixpos.CustomStart > 0 AND suffixpos.CustomEnd > suffixpos.CustomStart
THEN SUBSTRING(a.ACT_Configuration,
suffixpos.CustomStart + LEN('<RestRequestSufix>'),
suffixpos.CustomEnd - suffixpos.CustomStart - LEN('<RestRequestSufix>')) END AS CustomSuffix,
CASE WHEN suffixpos.SwaggerStart > 0 AND suffixpos.SwaggerEnd > suffixpos.SwaggerStart
THEN SUBSTRING(a.ACT_Configuration,
suffixpos.SwaggerStart + LEN('<SwaggerEndpoint>'),
suffixpos.SwaggerEnd - suffixpos.SwaggerStart - LEN('<SwaggerEndpoint>')) END AS SwaggerSuffix
) sfx
-- Extract SOAP endpoint, WSDL and method
OUTER APPLY (SELECT CHARINDEX('<webserviceuri>', a.ACT_Configuration) AS ServiceStart,
CHARINDEX('</webserviceuri>', a.ACT_Configuration) AS ServiceEnd,
CHARINDEX('<wsdluri>', a.ACT_Configuration) AS WsdlStart,
CHARINDEX('</wsdluri>', a.ACT_Configuration) AS WsdlEnd,
CHARINDEX('<method>', a.ACT_Configuration) AS MethodStart,
CHARINDEX('</method>', a.ACT_Configuration) AS MethodEnd) soaptags
OUTER APPLY (
SELECT CASE WHEN soaptags.ServiceStart > 0 AND soaptags.ServiceEnd > soaptags.ServiceStart
THEN NULLIF(SUBSTRING(a.ACT_Configuration,
soaptags.ServiceStart + LEN('<webserviceuri>'),
soaptags.ServiceEnd - soaptags.ServiceStart - LEN('<webserviceuri>')), '') END AS WebServiceURI,
CASE WHEN soaptags.WsdlStart > 0 AND soaptags.WsdlEnd > soaptags.WsdlStart
THEN NULLIF(SUBSTRING(a.ACT_Configuration,
soaptags.WsdlStart + LEN('<wsdluri>'),
soaptags.WsdlEnd - soaptags.WsdlStart - LEN('<wsdluri>')), '') END AS WsdlURI,
CASE WHEN soaptags.MethodStart > 0 AND soaptags.MethodEnd > soaptags.MethodStart
THEN NULLIF(SUBSTRING(a.ACT_Configuration,
soaptags.MethodStart + LEN('<method>'),
soaptags.MethodEnd - soaptags.MethodStart - LEN('<method>')), '') END AS Method
) soap
-- Locate REST JSON body and SOAP parameter configuration
OUTER APPLY (SELECT CHARINDEX('<JsonCommunicate>', a.ACT_Configuration) AS StartPos,
CHARINDEX('</JsonCommunicate>', a.ACT_Configuration) AS EndPos) bodypos
OUTER APPLY (SELECT CHARINDEX('<parameters>', a.ACT_Configuration) AS StartPos,
CHARINDEX('</parameters>', a.ACT_Configuration) AS EndPos) soappos
WHERE a.ACT_ActionKindID IN (32, 78)
ORDER BY Scope, ApplicationGroupName, ApplicationName,
ProcessName, AutomationName, ActionPath, ActionName, ActionID
OPTION (MAXRECURSION 100)

Understanding the results

Action types and methods

ACT_ActionKindID identifies REST (78) and SOAP (32) Invoke actions. For REST, RESTHttpMethod maps the stored codes to GET, POST, PUT, PATCH, DELETE, GET_WITH_BODY and DELETE_WITH_BODY (codes 0 through 6, respectively). SOAP is a separate action type, not an HTTP method; its operation appears in SOAPMethod.

Automation hierarchy and scope

An Invoke action inside a ForEach operator may reference that nested operator rather than the top-level automation. The recursive query follows Automations.AUTM_AUTMID to the highest parent and builds ActionPath from the nested operator names, separated by >. The Invoke action itself remains in ActionName.

For example:

AutomationName: Sync Users
ActionPath: ForEach Department > ForEach User
ActionName: Invoke REST API

Scope is Process if a process can be resolved, Global if an automation but no process can be resolved, and Unassigned otherwise. These are reporting classifications. Global actions may therefore have empty application or process fields.

Connections and request settings

The query extracts a connection reference such as #WFC:5# from ACT_Configuration and resolves it through WFDataConnections. REST settings include the HTTP method and stored URL suffix; SOAP settings include service URI, WSDL URI and method.

RESTRequestMode is inferred: a non-empty stored SwaggerEndpoint means Swagger, otherwise Custom. This may not always reflect the current Designer Studio selection. RESTRequestSuffix is returned as stored, potentially including an HTTP method such as /groups GET.

RequestBody extracts content from <JsonCommunicate> for REST or the <parameters> XML fragment for SOAP. It does not cover all REST body formats or represent a complete SOAP envelope. Empty output does not prove that no payload is sent.

Filtering the Results

The query can be easily customized by adding conditions to the WHERE clause. For example, you can filter by:

  • Action type: REST or SOAP (ACT_ActionKindID)
  • Activity status: Active or inactive actions (ACT_IsActive)
  • Scope: Global or process-associated automations (Scope)
  • Application: Actions belonging to a specific application (APP_ID)
  • Connection: Actions using a particular data connection (WFC_ID)

These filters can also be combined to narrow down the inventory to specific integrations.

Using the inventory

Export the result to Excel or another reporting tool to identify affected Invoke actions before upgrading WEBCON, changing API endpoints, replacing connected systems or reviewing legacy integrations. Filter by connection, application, process, action type or activity status to narrow the review. Use AutomationName, ActionPath and ActionName to locate each configuration in Designer Studio.

Limitations

  • The query covers only these two Invoke action kinds, not integrations implemented through other actions, business rules, data sources or custom code.
  • Extraction relies on specific serialized tags in ACT_Configuration. Other formats or future WEBCON versions may require adjustments.
  • RESTRequestMode is heuristic, and RequestBody covers only the described configuration fragments.
  • The automation traversal uses MAXRECURSION 100; a cycle or excessive depth causes an error.
  • The result describes stored configuration, not endpoint availability, runtime values or execution history.

Conclusion

This inventory makes REST and SOAP dependencies easier to find before upgrades or changes to connected systems. It combines action details, connection references and nested automation locations in one read-only report, providing a practical starting point for impact analysis.

For schema details, see the WEBCON 2026 database documentation.


This article was created with the assistance of AI, allowing me to spend less time on writing and more time exploring new ideas and topics.

Categories

Last updated on

Comments

Comments will be added here later.