[jboss-user] [JBoss Web Services] - Force MTOM Response in JBossWS-3.1.1.GA

Marco Strauch do-not-reply at jboss.com
Tue Feb 15 08:55:18 EST 2011


Marco Strauch [http://community.jboss.org/people/fambad] created the discussion

"Force MTOM Response in JBossWS-3.1.1.GA"

To view the discussion, visit: http://community.jboss.org/message/587481#587481

--------------------------------------------------------------
Hi,

How can I force a MOTOM Response although it is not neccessary because I have no binary data in the response.

The reason is follow. I have a foreign test client that sends the request with MTOM enabled and expected that the response is also using MTOM (I think this is a little bit stupid). The client is using AXIS. 
In the request the client sends binary data using MTOM but in my response no binary data is available and so JBoss-WS won't enable the Mtom Feature for the response. The result is that the client don't accept my response. 
All works fine when my response contains binary data (annotated with "@XmlMimeType("application/octet-stream")" ). Then JBoss-WS creates a mtom response and the client accepted the response.

Is there a workaround to force that MTOM is being enabled?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/587481#587481]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110215/427c874b/attachment.html 


More information about the jboss-user mailing list