Return-Path: Delivered-To: apmail-incubator-etch-dev-archive@locus.apache.org Received: (qmail 12916 invoked from network); 20 Jan 2009 19:08:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jan 2009 19:08:03 -0000 Received: (qmail 99714 invoked by uid 500); 20 Jan 2009 19:08:03 -0000 Delivered-To: apmail-incubator-etch-dev-archive@incubator.apache.org Received: (qmail 99677 invoked by uid 500); 20 Jan 2009 19:08:03 -0000 Mailing-List: contact etch-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: etch-dev@incubator.apache.org Delivered-To: mailing list etch-dev@incubator.apache.org Received: (qmail 99666 invoked by uid 99); 20 Jan 2009 19:08:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 11:08:03 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jliau@cisco.com designates 171.68.10.87 as permitted sender) Received: from [171.68.10.87] (HELO sj-iport-5.cisco.com) (171.68.10.87) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 19:07:51 +0000 X-IronPort-AV: E=Sophos;i="4.37,295,1231113600"; d="scan'208";a="60297320" Received: from sj-dkim-3.cisco.com ([171.71.179.195]) by sj-iport-5.cisco.com with ESMTP; 20 Jan 2009 19:07:30 +0000 Received: from sj-core-2.cisco.com (sj-core-2.cisco.com [171.71.177.254]) by sj-dkim-3.cisco.com (8.12.11/8.12.11) with ESMTP id n0KJ7UJx008972 for ; Tue, 20 Jan 2009 11:07:30 -0800 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-2.cisco.com (8.13.8/8.13.8) with ESMTP id n0KJ7UMI000133 for ; Tue, 20 Jan 2009 19:07:30 GMT Received: from xmb-sjc-215.amer.cisco.com ([171.70.151.169]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 20 Jan 2009 11:07:29 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Post to Etch developer community Date: Tue, 20 Jan 2009 11:07:28 -0800 Message-ID: <4C0FAAC489C8B74F96BEAD85EAEB262507DA0C82@xmb-sjc-215.amer.cisco.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Post to Etch developer community Thread-Index: Acl7FWnUHzcMFDuzSxSbD5uowtMIugAGCfvg References: <4465623F8C892B4C829F7B4D09A4C2B906B0924A@xmb-sjc-234.amer.cisco.com> From: "J.D. Liau (jliau)" To: X-OriginalArrivalTime: 20 Jan 2009 19:07:29.0886 (UTC) FILETIME=[573B5FE0:01C97B32] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; l=3489; t=1232478450; x=1233342450; c=relaxed/simple; s=sjdkim3002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=jliau@cisco.com; z=From:=20=22J.D.=20Liau=20(jliau)=22=20 |Subject:=20RE=3A=20Post=20to=20Etch=20developer=20communit y |Sender:=20; bh=2kQZg8vOSDskiiNfxdcyKnSIWzz/0h318ngPg52jx3E=; b=jsphDqXJMWL9JMbVp8+yXzD4zneSclGX48RKIUySTllZI+x2zBhIenBXso NaL+4PbkFUb2Ys+JmFPpGldJMYRx52Ttf+TkxdTR0GF+ZxMSzfME8UyDuOiH VWqNHGxfnS; Authentication-Results: sj-dkim-3; header.From=jliau@cisco.com; dkim=pass ( sig from cisco.com/sjdkim3002 verified; ); X-Virus-Checked: Checked by ClamAV on apache.org I think there is going to be discussions around how Etch service exposes interfaces such as SOAP, or JavaScript, etc. Native transport or proxy service are all very interesting ideas.=20 >From Etch's perspective, there is no obvious reason to add no-arg default constructor. However, for developers who try to integrate Etch into their existing environment and requirements, developers may run into the same issue as Nithya and would like to modify compiler generated code. So, what's the downside having new Etch compiler option to generate no-arg default constructor (or similar change) on demand? It does not change the integrity of Etch runtime and it is not default Etch compiler option but you give developers other possibilities for further integration. =20 -----Original Message----- From: hedhman@gmail.com [mailto:hedhman@gmail.com] On Behalf Of Niclas Hedhman Sent: Tuesday, January 20, 2009 9:40 AM To: etch-dev@incubator.apache.org Subject: Re: Post to Etch developer community Hi, Cake-on-Cake is an expression in Sweden, when you talk about unnecessary layering. To me, and I am by no means an expert but would like to take a shot at this, the approach is wrong. IIUIC, you are introducing an extra SOAP tier for no particular reason, other than having the service available via SOAP, in which case you might as well do the decorators by yourself or a dynamic proxy. OTOH, Etch IDL should be used as the source to generate the SOAP interface straight at the service, and possibly Etch could later introduce proxy services which could be utilized for 'extra tier' requirements. Sticking SOAP on the Java generated client sounds like an typical anti-pattern to me. Cheers Niclas On Sat, Jan 17, 2009 at 2:17 AM, Nithya Vijayakumar (nvijayak) wrote: > Etch Developers, > > Our current posting is to request no-arg default constructor in all=20 > generated Etch java sources. > > We are using Apache Etch for our services. We have a requirement to=20 > expose Etch as a SOAP web service. We are using the open source Apache > software Tuscany 1.3 and Axis 2 for this purpose. While integrating=20 > we found that the java source code created by the Etch Compiler cannot > be exposed as a SOAP service as it currently does not have a no-arg=20 > default constructor. The requirement stems from Apache Axis 2 and its > use of JAXB for data binding. > > Apache Axis 2 is our underlying SOAP provider. This dictates for a=20 > no-arg default constructor for even things like WSDL generation.=20 > Further when we would like to serialize objects to XML using libraries > like Xstream/JAXB, which in turn try to construct objects before=20 > serializing them to XML using the default constructor. Even when=20 > services are exposed as SOAP via just Apache AXIS (stand alone), there > is a need for a default constructor. We ran some examples that ship=20 > with Axis 2 and removed the no-arg constructors for complex objects=20 > and the service didn't deploy. > > We are adding some references to this topic. We hope the Etch=20 > developer community would be quick to respond to this issue. > > http://www.mail-archive.com/user@tuscany.apache.org/msg00951.html > > http://ws.apache.org/axis2/1_4_1/jaxws-guide.html > > Thanks, > Nithya > > Nithya Vijayakumar, Ph.D. > Software Engineer, Cisco > > > > > -- http://www.qi4j.org - New Energy for Java