Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 50999 invoked from network); 18 Jun 2007 02:24:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jun 2007 02:24:10 -0000 Received: (qmail 25060 invoked by uid 500); 18 Jun 2007 02:24:14 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 24860 invoked by uid 500); 18 Jun 2007 02:24:14 -0000 Mailing-List: contact cxf-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-user@incubator.apache.org Delivered-To: mailing list cxf-user@incubator.apache.org Received: (qmail 24851 invoked by uid 99); 18 Jun 2007 02:24:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jun 2007 19:24:13 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [209.85.134.189] (HELO mu-out-0910.google.com) (209.85.134.189) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jun 2007 19:24:09 -0700 Received: by mu-out-0910.google.com with SMTP id w9so1619710mue for ; Sun, 17 Jun 2007 19:23:46 -0700 (PDT) Received: by 10.82.116.15 with SMTP id o15mr10347383buc.1182133426349; Sun, 17 Jun 2007 19:23:46 -0700 (PDT) Received: by 10.82.176.13 with HTTP; Sun, 17 Jun 2007 19:23:46 -0700 (PDT) Message-ID: <7b774c950706171923w3da615bbw8760ce3ad06f22a1@mail.gmail.com> Date: Sun, 17 Jun 2007 22:23:46 -0400 From: "Dan Diephouse" To: cxf-user@incubator.apache.org Subject: Re: How to invoke a CXF endpoint from a WCF client ? In-Reply-To: <46757C6F.7010901@comcast.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_87955_23971415.1182133426322" References: <467303B4.8060603@comcast.net> <46757C6F.7010901@comcast.net> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_87955_23971415.1182133426322 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline This is definitely not valid per the spec... I think this might be a problem with the JAXBDataBinding/JAXBSchemaInitializer code. Any chance you tried a snapshot build recently? Thanks, - Dan On 6/17/07, Dan Connelly wrote: > > OK. Don't blame VS Express ("Orcas") just yet. The major problem > appears to come from CXF (2.0 RC in my case). > > The snag shows up when Orcas runs svcutil.exe, which is does for "Add > Service Reference ...". This is the Microsoft tool equivalent of > wsdl2java (or wsimport). > > Svcutil throws errors and fails to produce any C# artifacts when the > WSDL it reads contains 2 or more element type definitions with the same > name. And, duplicate element types seems quite common in CXF samples > (at least for xformat BindingType). > > For instance, for sample "hello_world_xml_bare" server returns the the > following definitions in response to the ?wsdl URL: > > ... > > elementFormDefault="unqualified" > targetNamespace="http://apache.org/hello_world_xml_http/bare/types"> > type="tns:myComplexStructType"/> > > > > > type="xs:string"/> > type="xs:string"/> > > > > type="tns:myComplexStructType"/> > > > > > elementFormDefault="qualified" > targetNamespace="http://apache.org/hello_world_xml_http/bare"> > namespace="http://apache.org/hello_world_xml_http/bare/types"/> > namespace="http://apache.org/hello_world_xml_http/bare/types"/> > type="ns0:myComplexStructType"/> > type="ns0:myComplexStructType"/> > > > > ... > > > Note: > > This WSDL has 2 definitions each named myComplextType, requestType, out > It also has 3 definitions named: responseType > > I suspect that the WSDL XML specification would not allow multiple > declarations of element types with the same name. > > Whether or not the spec allows duplicate names, the fact it breaks the > Microsoft tooling (which would be used frequently for client creation) > is full justification for CXF eliminating its output of element type > names in the synthetic WSDL. > > -- Dan Connelly > > > ------------------------------------------------------------------------------------------------------ > > > Dan Connelly wrote: > > Compare with: How to invoke a WSIT endpoint from a WCF client ? > > > > > > I am trying this process but for a CXF endpoint using latest C# Visual > > Studio 9 Express ("Orcas") from Microsoft. > > > > I have not found a CXF sample WSDL that works cleanly with Orcas "Add > > Service Reference" function. > > > > Any suggestions? > > > > -- Dan Connelly > > > > > > > > -- Dan Diephouse Envoi Solutions http://envoisolutions.com | http://netzooid.com/blog ------=_Part_87955_23971415.1182133426322--