Skip to main content
Kofax

Kofax TotalAgility - SOAP - An existing connection was forcibly closed by the remote host

Article # 3030972 - Page views: 64

Applies to

KTA v7.7.x +

Background

When trying to return a Dynamic Complex variable from a CreateJobSync SOAP call via custom .net using SOAP WebService,
Using split Web and App environments, we receive an error when we include a Dynamic Complex variable in the ‘VariablesToReturn’

When we have a sync node only in the map and attempt to make the call (including returning the DC variable) via SOAP Webservice action, or via SOAP in custom .net,
We see this error on screen/in the VS project and in the Event Log:

Type : System.ServiceModel.CommunicationException, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Message : An error occurred while receiving the HTTP response to http://app/TotalAgility/Services/core/JobService.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down).

Inner Exception

---------------

Type : System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Message : An existing connection was forcibly closed by the remote host

If we test the same form on a combined web/app, we get the following error when calling the SOAP action:

Method 'System.Xml.XmlAttribute.InnerText' not found.
If you need technical assistance, reference action: WebService1.

How to resolve these issues

On the SOAP Webservice reference,
Configure a Custom header called JsonEndpoint with a value of true:

JsonEndpoint.png