Error in Event Service <Element 'faultstring' with namespace name '' was not found. Line 6, position 117.> is thrown for several different error messages coming from CA SAM

book

Article ID: 6327

calendar_today

Updated On:

Products

CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

In an integrated environment with ITAM and CA SAM, SOAP errors in Event Service are being displayed with a generic error message:

ERROR CA.Applications.WorkFlowProviders.OEM.OEMWorkflowProvider - Server returned an invalid SOAP Fault. Please see InnerException for more details.

System.ServiceModel.CommunicationException: Server returned an invalid SOAP Fault. Please see InnerException for more details. ---> System.Xml.XmlException: Element 'faultstring' with namespace name '' was not found. Line 6, position 117.

 

Cause

The error message being returned by CA SAM webservices to ITAM Event Service cannot be processed by ITAM due to missing configuration settings.

Client Inspector is present in Event Service but it is not automatically enabled.

Environment

ITAM - all versionsCA SAM - all versions

Resolution

In order to read the actual error message returned by SAM webservices please follow the below steps:

  1. check the properties of the file ...\CA\ITAM\Event Service\CA.Common.Utilities.dll, tab Details field File version and take note of the version;
  2. edit the file ...\CA\ITAM\Event Service\CA.Applications.EventService.exe.config;
  3. locate the system.serviceModel element in the file and add or update the settings so that the section looks similar to the following:

NOTE: the version number taken during step 1 should be updated in the Version parameter 

    <client>

        <endpoint address="http://<SAM SERVER>/sam/prod/soap/dyn_server.php" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IOEMService" contract="st_importPortType" behaviorConfiguration="clientInspectorsAdded" name="st_importPortType"/>

    </client>

    <behaviors>

      <endpointBehaviors>

        <behavior name="clientInspectorsAdded">

          <clientInterceptors/>

        </behavior>

      </endpointBehaviors>

    </behaviors>

    <extensions>

      <behaviorExtensions>

        <add name="clientInterceptors" type="CA.Common.Utilities.SAMMessageInpectorBehavior, CA.Common.Utilities, Version=14.1.2.308, Culture=neutral, PublicKeyToken=null"/>

      </behaviorExtensions>

    </extensions> 

 

In red is what you will most likely need to add/update.

Once the above is done you will need to restart the Event Service for the settings to take effect.