SAP connection failed - troubleshooting SOAP and WSDL errorsSummary This article lists common SAP errors seen with the ServiceNow ITAM Product and the troubleshooting steps for each. Release Supported for Rome, Sandiego, Tokyo and later releases. Instructions 1) ServiceNow SAP Test connection link is failing with error - "Request failed with response : SAMSoapHandler: Unable to generate SOAP function for SOAP Message..." Workaround/Solution: There can be different reasons for this error. Check the following possible causes: 1.The WSDL is not generated by following the technical documentation. See the WSDL creation documentation in Related Links, section "Create a WSDL for your SAP service definition", step 8: the service name field must be NOW_SAMP. If the generated SOAP message function name has any prefix other than ZNOW_SAMP, step 8 was not followed. 2.Multiple mid servers are present in the ecc_agent table, and the correct mid server is not selected. See the mid server configuration documentation in Related Links for how to set the mid server. 3.The mid server through which all SAP requests reach the SAP system is not on the allow list for the targeted SAP system. Confirm with the customer that the mid server is allow listed. 4.The WSDL on the SAP connection is not valid. To check validity, the customer can open the WSDL in their internal network, provide credentials, and confirm it returns output. 5.DNS mapping is missing to resolve the IP used in the WSDL. Confirm with the customer and add the correct DNS mapping. See the DNS mapping documentation in Related Links. 6.The SAP system is taking too long to respond, causing a connection timeout. Increase the mid server response waiting time. See the mid server response time documentation in Related Links. 2) SAP client is not received as active from the SAP system to ServiceNow (in the table 'samp_sap_client') for a SAP connection. Workaround/Solution: 1.Go to the SAP system and run the /NOW/SAMP_RFC_DETAILS RFC program. 2.Select the required ServiceNow RFC connection. 3.Select "Saved to Servicenow RFC List" and then select "Test RFC Connection". The RFC Connection column must show a green tick. Note: make sure the selected theme is "Blue Crystal theme" in the SAP GUI options. Follow the documentation steps in the section "Select SAP clients to import data in your ServiceNow instance" on page 10 (a screenshot of the RFC list is also included in the documentation). See Related Links. Related Links SAP - ITAM Product SAP technical information KB0813999 Map an IP address to a DNS name