On Sep 9, 2008, at 1:00 PM, David Blevins wrote:
On Sep 8, 2008, at 6:36 AM, Monteiro Jean-Louis wrote:
Hi all,
With OpenEJB 3.0, it seems MTOM is never activated when I try a get
an object from a web service.
- I added the following line at the top of my web service
implementation :
@BindingType(value = SOAPBinding.SOAP12HTTP_MTOM_BINDING)
- Here is my method:
public DataHandler getFakeHandler() {
DataSource source = new ByteArrayDataSource("[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>".getBytes(), "text/plain;
charset=UTF-8");
return new DataHandler(source);
}
- In debug mode, in org.apache.openejb.server.cxf.CxfEndPoint:
if (getBinding() instanceof SOAPBinding) {
((SOAPBinding)
getBinding()).setMTOMEnabled(port.isMtomEnabled());
port.isMtomEnabled is always false.
I think a slight modification is needed inside
org.apache.openejb.config.WsDeployer. Something like:
//set mtom
portComponent.setEnableMtom(JaxWsUtils.isMtomBinding(ejbClass));
Has anybody had this problem ?
If so, I can provide a fix, I already have something working.
Not entirely my area of expertise, but it seems reasonable to me.
That seems correct to me. Is there a way to write a test that MTOM is
actually being used?
-dain