Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6A2F18D31 for ; Wed, 2 Mar 2016 17:20:49 +0000 (UTC) Received: (qmail 27129 invoked by uid 500); 2 Mar 2016 17:20:47 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 27079 invoked by uid 500); 2 Mar 2016 17:20:47 -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 66847 invoked by uid 99); 2 Mar 2016 15:56:40 -0000 X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.188 X-Spam-Level: **** X-Spam-Status: No, score=4.188 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FORGED_YAHOO_RCVD=1.022, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_NEUTRAL=0.652, URI_HEX=1.313] autolearn=disabled Date: Wed, 2 Mar 2016 08:56:36 -0700 (MST) From: amitmahesh To: users@camel.apache.org Message-ID: <1456934196146-5778525.post@n5.nabble.com> Subject: Unable to route Rest webservice Json response to SOAP service via camel route MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit We are calling a thirdparty SOAP service (without WSDL) from a REST service. We created a intermediate proxy cxf webservice to invoke the final third party webservice. The JSON request is not getting converted to SOAP parameters correctly and we getting Exception that "Expecting 3 parameters but getting 1 , Pls check your data format" . When we change the SOAP interface to accept 1 parameter, and remove @Webparam annotation from interface then it is working fine. How do we correctly map the JSON string to SOAP request parameters , such that all 3 parameters from JSON string are correctly mapped. *Rest Server config below : * / / *Proxy webservice to third party service : * / / *Camel route : * / getCustomerDetails / JSON message as seen from Request Processor before invoking the proxy : Exchange[Message: {"customerId":"0000104","systemId":"POR","brandId":"KRS"}] Web param definition of SOAP service proxy : @WebMethod public Customer getCustomerDetails(@WebParam(name="systemId")String systemId,@WebParam(name="brandId")String brandId,@WebParam(name="customerId")String customerId) throws JsonParseException, JsonMappingException, IOException ; Pls suggest how to map JSON elements to each web params?? -- View this message in context: http://camel.465427.n5.nabble.com/Unable-to-route-Rest-webservice-Json-response-to-SOAP-service-via-camel-route-tp5778525.html Sent from the Camel - Users mailing list archive at Nabble.com.