ASMX Web Service and HTTPS

Hi,

I have been trying to call the WFGEN web service (e.g. CanCancelProcessInstance) from a .NET Core application (WorkflowGen APIs as Connected Service). On Localhost, it works fine. However, when deployed on the test server, the same call returns the following message:

“System.Web.Services.Protocols.SoapException: The connected user cannot be set as inactive or be archived to access the web services.
at Advantys.Workflow.Web.Services.WebServiceController.​()
at Advantys.Workflow.Web.Services.Processes.Runtime.RuntimeService.CanCancelProcessInstance(Int32 processInstanceId, Boolean isSuperUserMode)”

Notes:

  1. Please note that I’m using BasicHttpSecurityMode.TransportCredentialOnly for BasicHttpBinding. And, I am passing the username and password for wfGenClient.ClientCredentials.Windows.ClientCredential. Here, basicHttpBinding.Security.Transport.ClientCredentialType has been set to HttpClientCredentialType.Ntlm. Please note that wfGenClient refers to WFGEN_APIs.RuntimeServiceSoapClient.
  2. The user has an administrator role and is active. The user has also been added to the web.config as ProcessesRuntimeWebServiceAllowedUsers and ApplicationConfigAllowedUsersLogin.
  3. EndPoint: http://[SERVER]/wfgen/ws/processesruntime.asmx

HTTPS: I tried to use BasicHttpsSecurityMode.Transport for BasicHttpsBinding as well and it returns the same message. However, can you please guide me to any resource that can help me set up for HTTPS as well (https://[SERVER]/wfgen/ws/processesruntime.asmx)?

Furthermore, will GraphQL integration be easier/more efficient in this scenario?

Thanks a lot in advance.

Kind regards,
TKS

Hi @tks,

Is the user active in the test server’s WorkflowGen application?

Hello @eddy.daouk ,

Yes, the user is active and has an administrator role on WorkflowGen.

"The user has an administrator role and is active. The user has also been added to the web.config as ProcessesRuntimeWebServiceAllowedUsers and ApplicationConfigAllowedUsersLogin.

Furthermore, I also adjusted the web service (ws) web.config. I have added an appSettings section with the key ProcessesRuntimeWebServiceAllowedUsers.

I appreciate your valuable suggestions and support.

Kind regards,
TKS