You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2017/07/28 14:50:00 UTC

[jira] [Commented] (CXF-7458) JAXWS : MTOM threshold value is ignored

    [ https://issues.apache.org/jira/browse/CXF-7458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16105060#comment-16105060 ] 

Daniel Kulp commented on CXF-7458:
----------------------------------


You are going to need to create a test case for this.     We have a test in the code already:

https://github.com/apache/cxf/blob/a36af6323505211479c875fb9923cc6dcbc6ac95/systests/databinding/src/test/java/org/apache/cxf/systest/jaxb/MTOMTest.java#L74

and if I change from threshold=1 to 1000000 then the parts are all inlined.  I also tried moving the @MTOM annotation onto the impl instead of the interface, but that didn't change anything, it still behaved properly.

In anycase, this is not something I can reproduce.

> JAXWS : MTOM threshold value is ignored
> ---------------------------------------
>
>                 Key: CXF-7458
>                 URL: https://issues.apache.org/jira/browse/CXF-7458
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 3.1.6
>         Environment: Wildfly 10.1
>            Reporter: Balu S
>
> The webservice is defined as MTOM enabled with threshold value as 5MB, but still the attachments (in responses) that are less than 5MB are not inlined. It looks like if `@MTOM` is enabled, the response is always returned as XOP (multipart) and ignores the threshold value.
> {quote}{@HandlerChain(file="/handler-chain.xml")
> @MTOM(threshold=5242880) // 5MB limit for inline soap attachements else MTOM
> public class WSImpl {. }{quote}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)