Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 52706 invoked from network); 28 Jan 2011 15:04:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2011 15:04:00 -0000 Received: (qmail 54310 invoked by uid 500); 28 Jan 2011 15:03:59 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 54134 invoked by uid 500); 28 Jan 2011 15:03:57 -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 54126 invoked by uid 99); 28 Jan 2011 15:03:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 15:03:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bimargulies@gmail.com designates 209.85.210.169 as permitted sender) Received: from [209.85.210.169] (HELO mail-iy0-f169.google.com) (209.85.210.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 15:03:48 +0000 Received: by iyj17 with SMTP id 17so3103970iyj.0 for ; Fri, 28 Jan 2011 07:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=zVJXnUaCCDn6p50yepN0qQrqhBd1SSHiYYxRYOpZsn8=; b=p4HTJTAqSdNrDtbXgm09GtDda1PjoOtSITHOhG1+tUVV0hSNZwMHST2Pu2QltaHvxL EUPj7uy6gAGZmAJEdjAn8gtncoBm4cbFaj1/XQUMqXnv2iQgG8exs9xJXjhZKnseDAe0 08RyQ4m3r0ou91bjwBvuc5oYy6rAo2VkEcyJQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MpDgI1FDolByvgST2ClklymmQxvVlYI1sSfwShm77sP8OtBNdMCtArCLWr7Mc+QMmm Fq0M/8VwRJqVVqHCsNdPfO4OAcadQViABh3CRyZycNc3Ytbn2bchxXfjQl2qTBtZFbiR D2mQ/HC3e23FmbcAaGRUpJSG2vHhSfoIqFaNA= MIME-Version: 1.0 Received: by 10.42.223.132 with SMTP id ik4mr3920261icb.333.1296227006936; Fri, 28 Jan 2011 07:03:26 -0800 (PST) Received: by 10.42.223.198 with HTTP; Fri, 28 Jan 2011 07:03:26 -0800 (PST) In-Reply-To: References: Date: Fri, 28 Jan 2011 10:03:26 -0500 Message-ID: Subject: Re: Custom WSDL binding From: Benson Margulies To: users@cxf.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org There seems to be no term of art so simple that the web service community can't make a ambiguity of it. OK, then ... The two CXF things I mentioned ... front end and data binding ... are neither of them 1-1 with the WSDL binding concept you reference. In my time on the project, I can't remember anyone come through here looking to deal with an 'exotic' binding at this level. So, while on the one hand, soap bindings are just another class hierarchy in CXF, I don't feel at all confident in asserting that you can just knock off a new one and expect it to work. If things work as usual around here, presently Dan will turn up in this conversation, so I'll stop here before I write anything completely out to lunch. On Fri, Jan 28, 2011 at 9:35 AM, Alan Egerton wrote: > Hi Benson, > > Thank you for your reply. =C2=A0I have made some comments inline below: > >> What exactly do you mean be 'binding'? In CXF, that means the mapping >> of data type parameters to and from XML, as opposed to 'front end', >> which deals with message structure. It's not obvious to me what you >> are counting four of. > > Apologies for the ambiguity: I meant WSDL bindings which, if I > understand correctly, express the serialization of messages for the > wire. =C2=A0From what you say, this is the 'front end' in CXF's > terminology? > > According to , CXF > supports four such bindings / 'front ends': MTOM, Pure XML, SOAP 1.1 > and SOAP 1.2. > >> Our usual advice to people who need to talk to 'some weird >> nonconforming thing' is to use the provider interface, not a WSDL at >> all. Just use CXF to push the XML in and out. > > Thanks, I'll look into this. > >> For a WSDL to be a viable approach, I think that the binding has to >> have the character that it can be expressed in W3C XML Schema. If you >> can't describe the parameters in XML Schema, i >> you would need to deal in WSDL extensions. > > Indeed, perhaps this is the source of the original confusion: the > contract in question is indeed using WSDL extensions=E2=80=94but it had n= ot > quite clicked. =C2=A0I will dig around on this subject. > >> Generally, though, the cost-benefit works like this: if you are >> rigging up communications with a unique legacy service, building a >> data binding or front-end would be an inefficient process. The value >> of building one of these components is reusability; if you need to >> talk to 27 different variations. > > Actually, it's more of an academic exercise to try and familiarise > myself with some of the more obscure features of WSDL. =C2=A0A baptism by > fire, if you will. > >> Finally, I'd note that a lot of messages on this list discuss ways to >> tweak CXF so that the standard components can talk to nonstandard >> endpoints. Fiddling with namespaces is by far the most frequent, but >> many other things are possible. At the front-end level, you can grab >> control of many decisions by writing a class and pushing it into a >> property, for example. > > Sounds like I have a lot more reading to do over the weekend! > > Thank you again for all your help. > > -- Alexi >