Layer7 API Management

 View Only

MTOM Encoded Requests Failed on Layer7

  • 1.  MTOM Encoded Requests Failed on Layer7

    Posted 22 days ago

    Hello,


    We have a SOAP service on Layer7 . Backend sends  MTOM encoded request with content-type heades as;

    content-type:multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:ce53f6c0-b7bb-4a1e-b965-7691cbe5a644+id=7";start-info="application/soap+xml"

    When backend calls vendor url directly, it works.
    But when backend server sends request to the Gateway, which would then route it to vendor url, it fails. I could not catch the request by service debugger.

    The gateway returns following message;

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
        <soapenv:Body>
            <soapenv:Fault>
                <faultcode>soapenv:Server</faultcode>
                <faultstring>Error in assertion processing</faultstring>
                <faultactor>ssg</faultactor>
                <detail>
                    <l7:policyResult
                        status="Multipart stream ended before a terminating boundary was encountered" xmlns:l7="http://www.layer7tech.com/ws/policy/fault"/>
                </detail>
            </soapenv:Fault>
        </soapenv:Body>
    </soapenv:Envelope>
    How can I fix it?