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 1728D200BBD for ; Tue, 8 Nov 2016 18:19:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 15EA0160B0A; Tue, 8 Nov 2016 17:19:06 +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 2F679160AD0 for ; Tue, 8 Nov 2016 18:19:05 +0100 (CET) Received: (qmail 18588 invoked by uid 500); 8 Nov 2016 17:19:04 -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 18575 invoked by uid 99); 8 Nov 2016 17:19:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2016 17:19:03 +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 51A69C0748 for ; Tue, 8 Nov 2016 17:19:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.472 X-Spam-Level: * X-Spam-Status: No, score=1.472 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, PLING_QUERY=0.279, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Hk5FQaOWwJKr for ; Tue, 8 Nov 2016 17:19:01 +0000 (UTC) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E3FC75F644 for ; Tue, 8 Nov 2016 17:19:00 +0000 (UTC) Received: by mail-wm0-f43.google.com with SMTP id a197so259067612wmd.0 for ; Tue, 08 Nov 2016 09:19:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=80d+NxtdfPSdSqXAiLsgWVgN4nOCRHO9/gBoKNO/bvo=; b=NTxu53U1pOGZjSXbYIDnM5Mcs6HbIdOLJd4kbKEQZrQBJN1feoykIg6N64ZRHiQEqX 9IK/85Ly9kNZVMryBRQhIgXGcT25tcVNe7aQ6vUTzeb99rxxMpozwsIiv5rLUn8eoBtm JoPIgQmXESKMKt6G+JBbEp3Th2z/gwm0++5FqtScuN8oeCifR+339gz8xPxPBWY7XqrQ imnP9ljbLQ3kAmz2/HNca+KqUoT3x5Gmga1VoZN60pooMRACfq69/BUxko2Km0wUGLXM GxNm/NSpbSvrANMBD3pGWxNOjZ2jSYEZUsxqec1MI++/+P6ta/kzcn7wCA317b2zz0Be kIyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=80d+NxtdfPSdSqXAiLsgWVgN4nOCRHO9/gBoKNO/bvo=; b=OaAqu/WrN4vtbliTseMSttgQOZnbsAy5KT6OUl6cWdXNW8tJJe0GNzVE8hXjltvrTr 6NKwon6ed3Hq/qjy01vYcAAZCiBew3YzUZ6W3lwGc66SPvttDVkbN+jLn9NHH/12Y83i g4AqKEHvQUpxS1tsaEbZjZxV+VrM3WRPiI5bIpXww3iIsOjl4OIXiuaKATD/xFbWKgRm m3MrnUNDJVWMbgiB99x8kNCtbUCB6nRboVk2soZQh1Shs6PhYqQhmRsj7usntMsmd5LH U568Y8/2apWuUgnm/mkibFzU13JhRyI+KaGEVhQ4atr4M+FIUyfKOFYu2rSVEyDjeUgw GQWg== X-Gm-Message-State: ABUngvezv9jgxsrQGsHxXTX6eUWFFlRBRVbprHDG3brByL8PDaLq9jIPAUc/szKVMuycKQ== X-Received: by 10.28.48.203 with SMTP id w194mr14856241wmw.115.1478625539697; Tue, 08 Nov 2016 09:18:59 -0800 (PST) Received: from [10.36.226.98] ([80.169.137.53]) by smtp.googlemail.com with ESMTPSA id kq7sm38022017wjb.0.2016.11.08.09.18.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Nov 2016 09:18:59 -0800 (PST) Subject: Re: CXF supports clients in other languages? Then provide samples! To: users@cxf.apache.org References: <1478402599353-5774606.post@n5.nabble.com> <9c489d21-6cc9-b16d-9103-99aae5407f6d@fwd.at> <41f9949f-ff04-feae-f86e-1098065d1674@fwd.at> <841135f7-513f-7cce-3b29-de67db242c4b@fwd.at> <64ca52a9-9474-529d-8ba5-7e10310a2f0e@gmail.com> <574cfc93-46aa-8105-a391-7c0ed2da2d47@fwd.at> From: Sergey Beryozkin Message-ID: Date: Tue, 8 Nov 2016 17:18:58 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <574cfc93-46aa-8105-a391-7c0ed2da2d47@fwd.at> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit archived-at: Tue, 08 Nov 2016 17:19:06 -0000 Hi Johannes Ok, can you please create a CWiki account with a 'jfiala' id ? Cheers, Sergey On 08/11/16 17:10, J. Fiala wrote: > Hi Sergey, > > I'd prefer jfx or jfiala. > > Best regards, > Johannes > > > Am 08.11.2016 um 18:01 schrieb Sergey Beryozkin: >> Hi Johannes, what is your preferred login id ? >> >> Cheers, Sergey >> >> On 07/11/16 15:48, Sergey Beryozkin wrote: >>> Hi Johannes >>> >>> We'll try to enable the access this week, will update you once it is >>> done >>> >>> Thanks, Sergey >>> On 06/11/16 21:58, J. Fiala wrote: >>>> Hi Sergey, >>>> >>>> Should we add a link to the docs to make people aware what they can do >>>> with the Swagger contract/SwaggerFeature at the client side? >>>> >>>> If you like, I can also start editing the Wiki (but I haven't heard >>>> anything about my write access there and don't know how to edit it, pls >>>> let me know how I can contribut there) or provide you with a draft. >>>> >>>> Best regards, >>>> Johannes >>>> >>>> >>>> Am 06.11.2016 um 22:53 schrieb J. Fiala: >>>>> Hi Philippe, >>>>> >>>>> p.s. if you want to see this all in action you can also come to >>>>> ApacheCon Seville in two weeks and see my talk there >>>>> (http://events.linuxfoundation.org/events/apachecon-europe/program/schedule). >>>>> >>>>> >>>>> >>>>> >>>>> Best regards, >>>>> Johannes >>>>> >>>>> >>>>> Am 06.11.2016 um 22:44 schrieb J. Fiala: >>>>>> Hi Philippe, >>>>>> >>>>>> CXF REST services actually support clients of any programming >>>>>> language capable of doing REST API calls. >>>>>> >>>>>> If you want to generate client code, pls check out Swagger-Codegen >>>>>> (http://github.com/swagger-api/swagger-codegen), it currently >>>>>> supports around 40 programming languages (client/server stubs), all >>>>>> the languages you listed are already there (JavaScript, Python, Ruby, >>>>>> Perl). >>>>>> >>>>>> It allows you to actually generate the client code in any language >>>>>> provided by Swagger contract. You can create the Swagger contract >>>>>> yourself or generate the contract dynamically using CXF >>>>>> SwaggerFeature (http://cxf.apache.org/docs/swagger2feature.html). If >>>>>> you want to generate the CXF application itself from an existing >>>>>> Swagger contract, you can take a look at a talk I did yesterday at >>>>>> DevFest Vienna >>>>>> (http://www.slideshare.net/johannes_fiala/how-to-generate-a-rest-application). >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Pls also try the Javascript generator there (Disclaimer: I added the >>>>>> basic generator for Javascript last year) and give feedback there. >>>>>> The Javascript calls are per se asynchronous & it supports AMD like >>>>>> RequireJs. >>>>>> >>>>>> If you want an overview of the Javascript features, you can watch a >>>>>> short talk I did at dotjs last year after creating the Javascript >>>>>> language generator: >>>>>> http://www.slideshare.net/johannes_fiala/rest-api-code-completion-for-javascript. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Best regards, >>>>>> >>>>>> Johannes >>>>>> >>>>>> >>>>>> Am 06.11.2016 um 04:23 schrieb cp10000: >>>>>>> One of the fundamental characteristics and advantages of >>>>>>> web-services is that >>>>>>> it allows different environments, different operating system, >>>>>>> different >>>>>>> programming languages to interact. >>>>>>> >>>>>>> Does Apache CXF support clients in other other languages (especially >>>>>>> dynamic >>>>>>> languages like JavaScript, Python, Ruby, Perl,...)? >>>>>>> >>>>>>> The answer to that question is not clearly stated anywhere in CXF >>>>>>> documentation. If CXF supports clients in other languages, then >>>>>>> SAMPLE >>>>>>> SOURCE CODES SHOULD BE PROVIDED! It's not enough to say yes. >>>>>>> >>>>>>> We must separate the two cases of synchronous functions and >>>>>>> asynchronous >>>>>>> functions. I would like to see sample code in JavaScript and >>>>>>> Python for >>>>>>> call to synchronous web-service in CXF. This might be possible, >>>>>>> but some >>>>>>> sample code would be helpful. >>>>>>> >>>>>>> I am particularly interested in seeing how a client in another >>>>>>> computer >>>>>>> language than Java like JavaScript or Python can call an >>>>>>> asynchronous >>>>>>> web-service in Apache CXF. Asynchronous web-service in CXF uses >>>>>>> classes >>>>>>> like Future, AsyncHandler. These classes don't map >>>>>>> directly to >>>>>>> classes in JavaScript and other languages. I am not aware of any >>>>>>> correspondence across computer languages. >>>>>>> >>>>>>> I have a strong feeling that a different language like JavaScript >>>>>>> requires a >>>>>>> software framework in order to write a client that can call >>>>>>> Apache CXF >>>>>>> web-services. Does such framework exist? If yes, it should be >>>>>>> mentioned >>>>>>> in the documentation. If such framework does not exist, then >>>>>>> Apache CXF >>>>>>> should write one for the major other programming languages >>>>>>> (JavaScript, >>>>>>> Python, Ruby, Perl, ....etc) >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> View this message in context: >>>>>>> http://cxf.547215.n5.nabble.com/CXF-supports-clients-in-other-languages-Then-provide-samples-tp5774606.html >>>>>>> >>>>>>> >>>>>>> >>>>>>> Sent from the cxf-user mailing list archive at Nabble.com. >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>> >>> >> >> > -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/