cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lanabe <lanabe.lan...@gmail.com>
Subject Re: Attachment with SOAP Handler
Date Mon, 11 Jul 2016 09:28:12 GMT
I also asked SO, and got the answer. I need to set mtomEnabled although my
app doesn't use MTOM.

http://stackoverflow.com/questions/38216547/attachment-with-soap-handler-using-cxf/38241788#38241788

On Tue, Jul 5, 2016 at 7:37 PM lanabe <lanabe.lanabe@gmail.com> wrote:

> Hi, I'm new to here.
>
> I'm trying to attach a file with a SOAP Handler, but it doesn't work.
>
> My example is here.
> https://github.com/emag-notes/cxf-soaphandler-demo
>
> In this example, I use SAAJ API to attach file.
>
> https://github.com/emag-notes/cxf-soaphandler-demo/blob/master/server/src/main/java/cxf/soaphandler/AttachmentHandler.java#L49-L54
>
> However, SOAP Message response is a just SOAP Envelope, not multipart(not
> including the file I attached).
>
> Am I missing something? This code works with Axis2.
> # Even though I know MTOM, I'd like to use my existing codes AMAP for
> now(I'm working on migration from Axis2).
>
> Thanks.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message