Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4FAA3200B3B for ; Mon, 11 Jul 2016 11:28:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4E52A160A78; Mon, 11 Jul 2016 09:28:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 94577160A62 for ; Mon, 11 Jul 2016 11:28:27 +0200 (CEST) Received: (qmail 33895 invoked by uid 500); 11 Jul 2016 09:28:26 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 33883 invoked by uid 99); 11 Jul 2016 09:28:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2016 09:28:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CBD9A180F27 for ; Mon, 11 Jul 2016 09:28:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ozZSVq3KTcdS for ; Mon, 11 Jul 2016 09:28:22 +0000 (UTC) Received: from mail-yw0-f174.google.com (mail-yw0-f174.google.com [209.85.161.174]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 79A0F5F23B for ; Mon, 11 Jul 2016 09:28:22 +0000 (UTC) Received: by mail-yw0-f174.google.com with SMTP id b72so87321922ywa.3 for ; Mon, 11 Jul 2016 02:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=oL1ZrGPiqM34M6d5GQBnZGBJZwrB0/gNFoBawzckxGM=; b=vz64cVJcfdO0V+WDNECWP7ptLp+4a6zjyewg4sIyZHNXFCq4JdYM+jli58TqjtkI/X VBBXtnEYuK9ArgRHPC5I6eZ/v7Pd6uOYls+wLtb3g1ihH+/AkyimoT0bD+o1A/J1CsFe uZ3pwWXkwu8YBKp+i36frPYFPj3wrayYnTPE0ASmygLT/4YZvbZppzT/LTnGzwoEA7BA TEX8sVk3CEcKl8Nk5mAbW1X+GvXTJrqgOneqUfJCZBryIRpwSyjlxPaBga+odDtj7lz/ sxVKs1E3Qw0vX73aFE4lvzVWvJFXmx4TU1p58dDENTFpGVfg04d+TWX9CGVqr1E5lqG6 dzxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=oL1ZrGPiqM34M6d5GQBnZGBJZwrB0/gNFoBawzckxGM=; b=kIvuLwkVaWqROXVrqHzKgnCDDuiSWHvFwhiv4EWz2rRneVeIi6F0gjLS8nHZDpa4XT J0/Jl7GKevr05+/9L4sgTb9LB8XEQvjBgTzhukIjgkcStsqWrmMt7f3jlxTXHltvz2op fVoBCyqI+ahRH8UToq8FDlWAaERHC0x+MdqNzTvldUuDRiQCgU777eBBBJwmUk19LSMN btPHqxxOjM8/hpdQ9pJXx5/7mGIGbhpCcRz/4sOzf/BIFcYhO8ufPX8Qf2pyff/cNZkT 1Q8v+QClIoffIRXEfKych96cz3XyYs3kDZl7WKg6zioqBd1MEkyH6bOTKDF1isBP4JkS Bh+A== X-Gm-Message-State: ALyK8tLp1QQNCbSWKScH0TeRtk02ZDen2cuOmpK3gI4x6lmIVwOMTn1jsrnIH2tXymrNVk11c8wYR2WpC16wGw== X-Received: by 10.37.3.203 with SMTP id 194mr4566538ybd.58.1468229301581; Mon, 11 Jul 2016 02:28:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: lanabe Date: Mon, 11 Jul 2016 09:28:12 +0000 Message-ID: Subject: Re: Attachment with SOAP Handler To: users@cxf.apache.org Content-Type: multipart/alternative; boundary=001a11414a78f83d4c053758c58f archived-at: Mon, 11 Jul 2016 09:28:28 -0000 --001a11414a78f83d4c053758c58f Content-Type: text/plain; charset=UTF-8 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 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. > --001a11414a78f83d4c053758c58f--