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 39180200BEB for ; Wed, 28 Dec 2016 11:14:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 37412160B2E; Wed, 28 Dec 2016 10:14:18 +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 7E044160B19 for ; Wed, 28 Dec 2016 11:14:17 +0100 (CET) Received: (qmail 20716 invoked by uid 500); 28 Dec 2016 10:14:16 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 19005 invoked by uid 99); 28 Dec 2016 09:24:06 -0000 X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.313 X-Spam-Level: **** X-Spam-Status: No, score=4.313 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, URI_HEX=1.313] autolearn=disabled Date: Wed, 28 Dec 2016 02:23:49 -0700 (MST) From: Siddharth Patil To: users@camel.apache.org Message-ID: <20161228092339.BB2B01618244@in3web-01-04.a3.dal09.isc4sb.com> Subject: Passing Files and String to REST service in Camel. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_71897_2072413187.1482917029995" archived-at: Wed, 28 Dec 2016 10:14:18 -0000 ------=_Part_71897_2072413187.1482917029995 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I want to create a web service which accepts files(.png, .pdf, .txt) and a String. Previously I created a service that accepts only files and the structure of the service is as shown below : @POST @Path("/uploadDoc") @Consumes("multipart/form-data") @Produces(MediaType.APPLICATION_JSON) public Response uploadFile(final MultipartBody uploadedFile); This is working fine. Now I want a service that accepts String as well along with files. Here is my HTML page layout through which I will be hitting the service :

JAX-RS Upload Form

Account Number :

Select a file :

Please help. Regards, Siddharth Patil Infrasoft Technologies Limited Tel: +91 20 6629 3416 www.infrasofttech.com InfrasoftTech is a specialist solutions & services company for the Banking & Finance and Insurance Industry. We are a SEI CMMI Level 5 v1.3, ISO 9001 and ISO 27001 certified company having a global footprint with over 200 client banks and operations in United Kingdom, Channel Islands, U.S.A., Canada, India, Dubai, Singapore & Africa and a global Channel partner network in over 20 countries Notice: This correspondence may contain some privileged information. We cannot be held responsible in any manner for any misuse of this correspondence. If you are not the intended recipient of this email (including attachments if any) and have received the same in error, kindly delete the same, without retaining any copy in soft or printed form and inform the sender. --------------------------------------------------------------------------------------- This email has been scanned for email related threats and delivered safely by Mimecast. For more information please visit http://www.mimecast.com --------------------------------------------------------------------------------------- -- View this message in context: http://camel.465427.n5.nabble.com/Passing-Files-and-String-to-REST-service-in-Camel-tp5791968.html Sent from the Camel - Users mailing list archive at Nabble.com. ------=_Part_71897_2072413187.1482917029995--