hooklift / gowsdl

WSDL2Go code generation as well as its SOAP proxy
Mozilla Public License 2.0
1.14k stars 390 forks source link

Error when parsing response: Expected param start-info="application/soap+xml", got text/xml #229

Closed giovanni-orciuolo closed 1 year ago

giovanni-orciuolo commented 2 years ago

The SOAP service I'm communicating with responds in MTOM mode. Sample response:

--uuid:f1eb0f5f-52d7-416d-8bf1-02e8b7b7036e
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
Content-Transfer-Encoding: binary
Content-ID: 
<root.message@cxf.apache.org>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap:Body>
            omitted for brevity
        </soap:Body>
    </soap:Envelope>
--uuid:f1eb0f5f-52d7-416d-8bf1-02e8b7b7036e--

I get this error when I try to parse this response through the soap library: Expected param start-info="application/soap+xml", got text/xml

Any help? I can't tweak the response I get from this bs service

giovanni-orciuolo commented 2 years ago

I just opened a PR to solve this issue: #230

giovanni-orciuolo commented 1 year ago

Fixed in PR #230