IBM Support

LI80840: VALIDATE POLICY RETURNS JSON RESPONSE WHEN WSDL VALIDATION FAILS USING THE ASSEMBLY TEST TOOL

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Using the Assembly test tool and the built-in Validate Policy
    (set to validate against a WSDL) you always get a JSON response.
    In case of validation failure, the following is sent as a
    response instead of a SOAP error message.
    ---
    {
    "httpCode": "422",
    "httpMessage": "Unprocessable Entity",
    "moreInformation": "<Reason for the validation failure>"
    }
    ---
    This is because the assembly test tool always sends the accept
    header as 'application/json'.
    In order to get the proper SOAP message such as:
    ---
    <soapenv:Envelope
    xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
     <soapenv:Body>
       <soapenv:Fault>
         <faultCode>soapenv:</faultCode>
         <faultString>Validate:
    https://<apim-host>/<org-name>/<catalog-name>/<serviceName>/<ope
    ration-name> : cvc-particle 3.1: in element
    {http://***/soap/envelope/}Body of type
    {http://schemas.xmlsoap.org/soap/envelope/}Body, found
    </soapenv:Body> (in namespace
    http://schemas.xmlsoap.org/soap/envelope/), but next item
    should be any of
    [{http://schemas.xmlsoap.org/soap/envelope/}Fault,
    {http://bankA.sample.ibm.com/}getBalance,
    {http://bankA.sample.ibm.com/}getBalanceResponse]</faultString>
         <detail>
           <webapi:SOAPFaultInfo
    xmlns:webapi="http://www.ibm.com/apimanagement">
             <httpCode>422</httpCode>
             <httpMessage>Unprocessable Entity</httpMessage>
           </webapi:SOAPFaultInfo>
         </detail>
       </soapenv:Fault>
     </soapenv:Body>
    ---
    the accept header needs to be 'application/soap+xml'
    

Local fix

Problem summary

  • <div><div><div><div>VALIDATE POLICY RETURNS JSON RESPONSE WHEN
    WSDL VALIDATION
    FAILS USING THE ASSEMBLY TEST TOOL</div></div></div></div>
    

Problem conclusion

  • Fixed in 2018.4.1.7
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI80840

  • Reported component name

    API CONNECT ENT

  • Reported component ID

    5725Z2201

  • Reported release

    18X

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-05-07

  • Closed date

    2019-08-16

  • Last modified date

    2019-08-16

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    API CONNECT ENT

  • Fixed component ID

    5725Z2201

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"18X","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"}}]

Document Information

Modified date:
22 August 2024