Hi,
Add mtomEnabled="true" to your cxf bc consumer/provider and cxf se
endpoint configuration.
So that you can get the multiple part attachment instead of the base64
binary encoded in your soap message...
Freeman
ppil1 wrote:
Hi,
i'm using servicemix r3.3 on windows platform, java 1.6.
I'm using Servicemix CXF component.
I'm calling an external service thru a cxf-se SU.
SOAP CALL --> CXF BC --> CXF SE --> CXF BC >> External WS.
My external WS is multipart, and i need to send a text/xml file attached.
>From a java program using apache cxf it' s works perfectly; but from
servicemix every part are serialized in soap:body (see soap enveloppe
hereafter)
Is there a way to workaround this ?
Thanks
Here soap enveloppe send from service mix
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SayHelloOUT xmlns="http://servicemix.apache.org/test/types">
<name>mon nom</name>
</SayHelloOUT>
<ns2:fileattach xmlns="http://servicemix.apache.org/test/types"
xmlns:ns2="http://servicemix.apache.org/test">kljkljl</ns2:fileattach>
</soap:Body>
</soap:Envelope>
Here a correct soap send from stand alone java program using apache cxf
--uuid:a1a9ac94-f059-4f6e-9a87-711b125957bf
Content-Type: text/xml
<?xml version="1.0" ?><S:Envelope
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><SayHello
xmlns="http://servicemix.apache.org/test/types"
xmlns:ns2="http://servicemix.apache.org/test"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true"/></S:Body></S:Envelope>
--uuid:a1a9ac94-f059-4f6e-9a87-711b125957bf
Content-Id:<[email protected]>
Content-Type: text/xml
Content-Transfer-Encoding: binary
<ns2:fileattach xmlns="http://servicemix.apache.org/test/types"
xmlns:ns2="http://servicemix.apache.org/test">dklfjklklhjsdfhjslf</ns2:fileattach>
--uuid:a1a9ac94-f059-4f6e-9a87-711b125957bf--
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com