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 2014/07/30 17:11:39 UTC

[jira] [Commented] (CXF-5915) JAX-WS Dispatch sending JAXBSource with attachment

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

Daniel Kulp commented on CXF-5915:
----------------------------------

Please provide a test case for this.

When creating the Dispatch object, are you adding the MTOM feature the list of features or adding "mtom-enabled" request context property (set to "true" or Boolean.TRUE) to let the runtime know to expect attachments?



> JAX-WS Dispatch sending JAXBSource with attachment
> --------------------------------------------------
>
>                 Key: CXF-5915
>                 URL: https://issues.apache.org/jira/browse/CXF-5915
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.0.1
>            Reporter: Zsolt Szloboda
>            Priority: Minor
>
> I am trying to send a JAXBSource payload from a JAX-WS Dispatch; 
> the JAXBSource's Marshaller has a custom AttachmentMarshaller 
> that puts the attachments into the AttachmentCollection
> the problem is that the attachments are not included in the request multipart SOAP message
> however, if I transform the same JAXBSource request payload 
> into a DOMSource, and send this DOMSource with Dispatch#invoke() method, 
> then the attachments are included in the request multipart SOAP message!
> I think the problem is that 
> when I send the JAXBSource 
> the attachments are added "too late" 



--
This message was sent by Atlassian JIRA
(v6.2#6252)