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 78D30189C0 for ; Sat, 29 Aug 2015 06:43:03 +0000 (UTC) Received: (qmail 82875 invoked by uid 500); 29 Aug 2015 06:43:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 82846 invoked by uid 500); 29 Aug 2015 06:43:03 -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 Received: (qmail 82835 invoked by uid 99); 29 Aug 2015 06:43:02 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Aug 2015 06:43:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5EB79C06B6 for ; Sat, 29 Aug 2015 06:43:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.739 X-Spam-Level: ***** X-Spam-Status: No, score=5.739 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, KAM_BADIPHTTP=2, NML_ADSP_CUSTOM_MED=1.2, NORMAL_HTTP_TO_IP=0.001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313, WEIRD_PORT=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ver3al3WwGAr for ; Sat, 29 Aug 2015 06:42:52 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 1A98142B42 for ; Sat, 29 Aug 2015 06:42:52 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id AF9E31446195 for ; Fri, 28 Aug 2015 23:40:12 -0700 (PDT) Date: Fri, 28 Aug 2015 23:42:51 -0700 (MST) From: amit3880 To: users@camel.apache.org Message-ID: <1440830571722-5771079.post@n5.nabble.com> Subject: cxf webservice over https MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello All, I am developing a cxf webservice and want to expose that over https, but I am not using spring and I am using directly java dsl and google guice to inject routes. I I am not sure how should I configure the https webservice consumer endpoint in camel. I have tried lot by searching around internet/stackoverflow and camel mailing lists., but I yet not got any proper solution to do that. If anyone can help would be great. Below is the sample example which works good on http, but I want to use https as I said. Please help. import javax.jws.WebMethod; import javax.jws.WebService; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.main.Main; public class CXFWebService { public static void main(String[] args) { Main main = new Main(); main.addRouteBuilder(new RouteBuilder() { @Override public void configure() throws Exception { // The below works from("cxf://http://0.0.0.0:8989/sayHi?serviceClass=SayHiService").to("log:output").end(); // but below does not work directy, want to know how can we do it using without spring, directly in java // from("cxf://https://0.0.0.0:8989/sayHi?serviceClass=com.cxf.https.SayHiService").to("log:output").end(); } }); main.enableHangupSupport(); try { main.run(); } catch (Exception e) { e.printStackTrace(); } } } @WebService class SayHiService { @WebMethod public String sayHi() { return "Hi From Webservice "; } } -- View this message in context: http://camel.465427.n5.nabble.com/cxf-webservice-over-https-tp5771079.html Sent from the Camel - Users mailing list archive at Nabble.com.