MID Server not able to connect to instance - WS-Security header errorIssue <!-- div.margin{ padding: 10px 40px 5px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing: 8px; border-collapse: separate; } table.internalTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:0; } .sp td{ border-bottom: 1px solid; border-right: 1px solid; border-color:#E0E0E0; background-color: #ffffff; height: 20px; padding-top: .5em; padding-bottom: .5em; padding-left: .5em; padding-right: .5em; } .sphr td{ border-right: 1px solid; border-bottom: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .5em; padding-bottom: .5em; padding-left: .5em; padding-right: .5em; height: 20px; } .title { color: #D1232B; font-weight:; font-size:25px; } .hd1{ color: #D1232B; font-weight:; font-size:18px; } .hd2{ color: #646464; font-weight:bold; font-size:16px; } .hd3{ color: #7a7a7a; font-weight:; font-size:16 px; text-decoration:; } .hd4{ color: #000000; font-weight:bold; font-size:14 px; text-decoration:; } --> Mid-server not able to connect to instance - WS-Security header error OverviewServiceNow offers the capability of enabling WS-Security header verification for all incoming SOAP requests. It is commonly used by administrators who want to: verify that the sender of a SOAP message is trustedensure that SOAP messages have not been altered after they are sent When enabling this system property, it is important to exclude service accounts from the WSS authentication requirement. Due to technical limitations, service accounts responsible for integrations cannot make use of WSS. One very common error that might occur after enabling the security setting is that the MID Server(s) stops working. When inspecting the log files for the MID Server, you might see errors such as this: ECCSender.1 WARNING *** WARNING *** RemoteGlideRecord failed to send data to https://instancename.service-now.com/ with (An error was discovered processing the WS-Security header) MIDServer WARNING *** WARNING *** Method failed: (https://instancename.service-now.com/ecc_agent.do?SOAP&displayvalue=all&redirectSupported=true)HTTP/1.1 500 Internal Server Error with code: 500 MIDServer SEVERE *** ERROR *** getRecords failed (An error was discovered processing the WS-Security header No certificate(s) found in WS-Security profile) StartupSequencer WARNING *** WARNING *** SOAP server error reported by ServiceNow instance, user 'Your-MID-Account' may be missing the 'soap_script' role The MID Server service might show that it is running correctly and you are able to restart the service. However, the instance does not acknowledge the connection and shows a status of down. SolutionAdministrators might forget that the MID Server user is also considered a service account. Therefore, it must also be excluded from the WSS security settings by making it an Internal Integration User. To do so, please follow these steps: Navigate to User Administration > Users and locate the MID Server userSelect the MID server user and right click on the header to personalize the form.Add the Internal Integration User field from the left slushbucket.Reload the form.Select the Internal Integration User option.Update the user record. Ensure that the MID Server user is configured correctly in compliance with the newly added security setting. The error messages should be resolved.