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

Zsolt Szloboda commented on CXF-5915:
-------------------------------------

yes, MTOM is enabled for the Dispatch

it's working, if I am adding the attachments "manually" to the 
AttachmentCollection;

I think this is the same problem you have resolved several day ago, in CXF-5832

> 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)

Reply via email to