Hi

I'm wondering, why there's a need to configure MTOM explicitly on the client side ? CXF is policy-aware, so if the service' WSDL contains a non-optional MTOM WS-Policy assertion then the client runtime should consume it and do MTOM. The thing is, the server has already expressed a requirement to have messages MTOMed, so this should be sufficient. One of the purposes of WS-Policy expressions is to mimimize the need for a client-side configuration.

Cheers, Sergey

----- Original Message ----- From: "Willem Jiang" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, August 21, 2007 9:33 AM
Subject: Re: enable MTOM client


Hi,

You can take [1]'s inlineSoapBinding bean as a example to configure the MTOM on 
the client side.
[1]https://svn.apache.org/repos/asf/incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/spring/clients.xml

Willem.

nuka wrote:
I didn't configure MTOM on the client side. The only configuration I've made
is
- jaxws endpoint configuration for MTOM (beans.xml)
- MIMEType annotation application/octet-stream for the binary data


I don't know how to configure the client via xml (or by code). I use jaxws
as frontend. I saw that the client can be configured by xml (in the
beans.xml file ) but I don't know how. I would appreciate if you can show me
a sample.

thanks in advance

Nuka











Dan Diephouse wrote:

What does your client code look like? You probably aren't configuring MTOM
right on the client side.

Cheers,
- Dan

On 8/20/07, nuka <[EMAIL PROTECTED]> wrote:

Hello,

I have some problems when enabling MTOM for CXF generated client.
I've made the configuration for MTOM as suggested in the user guide for
both
client and server side.

- jaxws endpoint configuration for MTOM (beans.xml)
- MIMEType annotation application/octet-stream for the binary data


The server is ok, its responses support MTOM. But the client requests are
not MTOM based. The binary data is embedded in the SOAP body.

I believe I've missed something on the client side configuration but I
don't
know what.

Thanks in advance
Nuka


--
View this message in context:
http://www.nabble.com/enable-MTOM-client-tf4300910.html#a12242043
Sent from the cxf-user mailing list archive at Nabble.com.



--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog






----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to