Troubleshooting Tips: Implement APIs

I see errors when webMethods API Gateway parses huge responses received from the native SOAP API

I see the following errors when webMethods API Gateway parses huge responses received from the native SOAP API:

com.fasterxml.aalto.WFCException: Unexpected end-of-input when trying to parse

com.fasterxml.aalto.WFCException: Unexpected end-of-input when trying to parse CHARACTERS at [row,col {unknown-source}]: [13621,577]

com.fasterxml.aalto.WFCException: 500 for SOAP APIs exchanging bigger payloads

Resolution:

To avoid encountering errors while parsing large responses from the native API, change the enablesoapValidation property in the axis2.xml file located at Install_dir\IntegrationServer\ instances\default\config\wss\ in one of the following ways:

  • By commenting out the line
    <!--<parameter name="enableSoapValidation">true</parameter> -->
  • By setting the property enablesoapValidation to false
    <parameter name="enableSoapValidation">false</parameter>

You must restart the webMethods API Gateway server for the change to take effect. The impact of this change is that the SOAP API request and responses are no more validated if they are compliant with the SOAP specification.