Hi Panu,
take a look at the DOSGi intents. See
https://github.com/apache/cxf-dosgi/tree/master/common
You should be able to create a
org.apache.cxf.binding.soap.SoapBindingConfiguration and set mtomEnabled
in it. Export this as an OSGi service with intentName="mtom".
The easiest way to do this is a DS component.
Then add the intent to your service by adding the service property
service.exported.intents=ssl
This should make sure your service is using the intent. If you create
your client automatically from e.g. zookeeper info then the intent
should also be used on the client.
Just make sure the service with the SoapBindingConfiguration is also
present on the client side.
If it does not work out of the box it would be great if you could create
a small sample project on github so we can look into it together.
Christian
On 23.01.2017 07:59, Hämäläinen Panu wrote:
Hi folks,
Is there any guidance available for using MTOM with DOSGi? Or is it supported?
Looking at the page http://cxf.apache.org/docs/mtom.html and the
documentation/samples of the newest DOSGi 2.0.0 (JAX-WS enabled with the
@WebService annotation), it seems that the Java first approach (DataHandler
annotated with @XmlMimeType) on the CXF page might be supported.
For the "enabling MTOM" part, how to do it with DOSGi? I would need a handle to
the binding instance or its configuration (on client and service sides) and enable MTOM
(e.g. by calling setMTOMEnabled(true)).
Regards,
Panu
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com