Can I change the boundary delimiter that CXF generates for multipart messages?

Solution Verified - Updated -

Issue

Our SOAP client has a problem with a colon in the content-type's boundary tag. Using CXF we have implemented a SOAP service which also returns an attachment. Currently the boundary is a UUID (e.g. uuid:cd43dc28-34e0-4f9e-9b2b-ff7a073c4bff) with a colon.

  • Is it possible to customize the value of the boundary? The client has a problem parsing the content-type/boundary due to the colon in the uuid.
Encoding: UTF-8
Content-Type: multipart/related; type="text/xml"; boundary="uuid:cd43dc28-34e0-4f9e-9b2b-ff7a073c4bff"; start="<root.message@cxf.apache.org>"; start-info="text/xml"
Headers: {}
Payload:
--uuid:cd43dc28-34e0-4f9e-9b2b-ff7a073c4bff
Content-Type: text/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></soap:Envelope>
--uuid:cd43dc28-34e0-4f9e-9b2b-ff7a073c4bff
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.