cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Connelly <daniel.s.conne...@comcast.net>
Subject Re: Duplicate schema elements [was Fwd: How to invoke a CXF endpoint from a WCF client ?]
Date Fri, 22 Jun 2007 23:09:28 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
It appears that the duplicate schema element problem is not completely
fixed.&nbsp;&nbsp; I am using SNAPSHOT of June 19.<br>
<br>
As shown below, schema element "faultDetail" is duplicated in response
to ?wsdl requent on <b>hello_world</b> sample service from the
distribution.&nbsp;&nbsp;&nbsp; Perhaps only fault types have the problem with
SNAPSHOT cxf-api-2.0-incubator-20070619.165612-29.(?)&nbsp; <br>
<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; -- Dan Connelly<br>
<br>
<tt>...<br>
&lt;wsdl:types&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xs:schema xmlns:xs=<a
class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
xmlns=<a class="moz-txt-link-rfc2396E" href="http://apache.org/hello_world_soap_http/types">"http://apache.org/hello_world_soap_http/types"</a><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
attributeFormDefault="unqualified"
elementFormDefault="unqualified"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
targetNamespace=<a class="moz-txt-link-rfc2396E" href="http://apache.org/hello_world_soap_http/types">"http://apache.org/hello_world_soap_http/types"</a>&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element name="faultDetail"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element form="qualified" name="minor"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; type="xs:short" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element form="qualified" name="major"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; type="xs:short" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;/xs:element&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element name="greetMe"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element form="qualified"
name="requestType"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; type="xs:string" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;/xs:element&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element name="greetMeOneWay"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element form="qualified"
name="requestType"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; type="xs:string" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;/xs:element&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element name="greetMeResponse"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element form="qualified"
name="responseType"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; type="xs:string" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;/xs:element&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element name="pingMe"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;xs:complexType /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;/xs:element&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element name="pingMeResponse"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;xs:complexType /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;/xs:element&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element name="sayHi"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;xs:complexType /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;/xs:element&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element name="sayHiResponse"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element form="qualified"
name="responseType"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; type="xs:string" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;/xs:element&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element name="faultDetail" nillable="true" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;xs:element name="faultDetail" nillable="true" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/xs:schema&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/wsdl:types&gt;</tt><tt></tt><br>
...<br>
<br>
<br>
<br>
<br>
<br>
Dan Diephouse wrote:
<blockquote
 cite="mid:7b774c950706181506j124dd0b8i1d6b89789351ddaa@mail.gmail.com"
 type="cite">Thanks Jim!
  <br>
  <br>
On 6/18/07, Jim Ma <a class="moz-txt-link-rfc2396E" href="mailto:ema@iona.com">&lt;ema@iona.com&gt;</a>
wrote:
  <br>
  <blockquote type="cite"><br>
Hi Dan ,
    <br>
    <br>
I have fixed this issue with this commit :
    <br>
<a class="moz-txt-link-freetext" href="http://svn.apache.org/viewvc?view=rev&rev=548344">http://svn.apache.org/viewvc?view=rev&amp;rev=548344</a>
.
    <br>
    <br>
--Jim
    <br>
    <br>
    <br>
Dan Diephouse wrote:
    <br>
&gt; I was looking into this and I found that we have at least one test
which
    <br>
&gt; shows a slightly different variation of the same problem. If you
add
    <br>
&gt; these
    <br>
&gt; lines to the CodeFirstTest. you'll get failures:
    <br>
&gt;
    <br>
&gt; assertValid("//xsd:element[@name='FooEcho2HeaderRequest'][1]",
doc);
    <br>
&gt; assertInvalid("//xsd:element[@name='FooEcho2HeaderRequest'][2]",
doc);
    <br>
&gt;
    <br>
&gt; Note that this is a test case which involves headers though. I
suspect
    <br>
&gt; that
    <br>
&gt; the one exemplified by Dan Connelly could be reproduced by adding
a
    <br>
&gt; couple
    <br>
&gt; operations to FooService like:
    <br>
&gt;
    <br>
&gt; Foo echo1(Foo foo)
    <br>
&gt; Foo echo2(Foo foo)
    <br>
&gt;
    <br>
&gt; In this case CXF would create the same &lt;xsd:element name="foo"
    <br>
&gt; type="foo"/&gt;
    <br>
&gt; multiple times I think. It seems both JAXBSchemaIntiailizer and
    <br>
&gt; ReflectionServiceFactory are creating these wrapper elements (i.e.
new
    <br>
&gt; XsSchemaElement). I don't know if they're checking to see if these
    <br>
&gt; elements
    <br>
&gt; already exist at the moment...
    <br>
&gt;
    <br>
&gt; I think this could be considered a pretty critical bug - i.e. we
need to
    <br>
&gt; hold up the release until we get it fixed. I'm posting it here in
case
    <br>
&gt; anyone feels motivated to go through it before I get up again
tomorrow
    <br>
&gt; (getting a little late here) :-). Otherwise I'll fix it first
thing
    <br>
&gt; tomorrow.
    <br>
&gt;
    <br>
&gt; Cheers,
    <br>
&gt; - Dan
    <br>
&gt;
    <br>
&gt; ---------- Forwarded message ----------
    <br>
&gt; From: Dan Diephouse <a class="moz-txt-link-rfc2396E" href="mailto:dan@envoisolutions.com">&lt;dan@envoisolutions.com&gt;</a>
    <br>
&gt; Date: Jun 17, 2007 10:23 PM
    <br>
&gt; Subject: Re: How to invoke a CXF endpoint from a WCF client ?
    <br>
&gt; To: <a class="moz-txt-link-abbreviated" href="mailto:cxf-user@incubator.apache.org">cxf-user@incubator.apache.org</a>
    <br>
&gt;
    <br>
&gt; This is definitely not valid per the spec... I think this might be
a
    <br>
&gt; problem
    <br>
&gt; with the JAXBDataBinding/JAXBSchemaInitializer code.
    <br>
&gt;
    <br>
&gt; Any chance you tried a snapshot build recently?
    <br>
&gt; Thanks,
    <br>
&gt; - Dan
    <br>
&gt;
    <br>
&gt; On 6/17/07, Dan Connelly <a class="moz-txt-link-rfc2396E" href="mailto:daniel.s.connelly@comcast.net">&lt;daniel.s.connelly@comcast.net&gt;</a>
wrote:
    <br>
&gt;&gt;
    <br>
&gt;&gt; OK.&nbsp;&nbsp; Don't blame VS Express ("Orcas") just yet.&nbsp;&nbsp;
The major
problem
    <br>
&gt;&gt; appears to come from CXF (2.0 RC in my case).
    <br>
&gt;&gt;
    <br>
&gt;&gt; The snag shows up when Orcas runs svcutil.exe, which is does
for "Add
    <br>
&gt;&gt; Service Reference ...".&nbsp;&nbsp;&nbsp; This is the Microsoft
tool
equivalent of
    <br>
&gt;&gt; wsdl2java (or wsimport).
    <br>
&gt;&gt;
    <br>
&gt;&gt; Svcutil throws errors and fails to produce any C# artifacts
when the
    <br>
&gt;&gt; WSDL it reads contains 2 or more element type definitions with
the same
    <br>
&gt;&gt; name.&nbsp;&nbsp;&nbsp; And, duplicate element types seems quite
common in
CXF samples
    <br>
&gt;&gt; (at least for xformat BindingType).
    <br>
&gt;&gt;
    <br>
&gt;&gt; For instance, for sample "hello_world_xml_bare" server returns
the the
    <br>
&gt;&gt; following definitions in response to the ?wsdl URL:
    <br>
&gt;&gt;
    <br>
&gt;&gt; ...
    <br>
&gt;&gt; &lt;wsdl:types&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:schema attributeFormDefault="unqualified"
    <br>
&gt;&gt; elementFormDefault="unqualified"
    <br>
&gt;&gt;
targetNamespace=<a class="moz-txt-link-rfc2396E" href="http://apache.org/hello_world_xml_http/bare/types">"http://apache.org/hello_world_xml_http/bare/types"</a>&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xs:element name="myComplexStruct" nillable="true"
    <br>
&gt;&gt; type="tns:myComplexStructType"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xs:element name="requestType" nillable="true"
    <br>
&gt;&gt; type="xs:string"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xs:element name="responseType" nillable="true"
    <br>
&gt;&gt; type="xs:string"/&gt;
    <br>
&gt;&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xs:complexType name="myComplexStructType"&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xs:sequence&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xs:element form="qualified" name="elem1"
    <br>
&gt;&gt; type="xs:string"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xs:element form="qualified" name="elem2"
    <br>
&gt;&gt; type="xs:string"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xs:element form="qualified" name="elem3"
    <br>
&gt;&gt; type="xs:int"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/xs:sequence&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/xs:complexType&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name="myComplexStruct"
nillable="true"
    <br>
&gt;&gt; type="tns:myComplexStructType"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name="responseType"
nillable="true"
type="xs:string"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name="requestType"
nillable="true"
type="xs:string"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name="responseType"
nillable="true"
type="xs:string"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:schema&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsd:schema attributeFormDefault="unqualified"
    <br>
&gt;&gt; elementFormDefault="qualified"
    <br>
&gt;&gt; targetNamespace=<a class="moz-txt-link-rfc2396E" href="http://apache.org/hello_world_xml_http/bare">"http://apache.org/hello_world_xml_http/bare
"</a>&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xsd:import
    <br>
&gt;&gt;
namespace=<a class="moz-txt-link-rfc2396E" href="http://apache.org/hello_world_xml_http/bare/types">"http://apache.org/hello_world_xml_http/bare/types"</a>/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xsd:import
    <br>
&gt;&gt; namespace=<a class="moz-txt-link-rfc2396E" href="http://apache.org/hello_world_xml_http/bare/types">"
http://apache.org/hello_world_xml_http/bare/types"</a>/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xsd:element name="in" nillable="true"
    <br>
&gt;&gt; type="ns0:myComplexStructType"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xsd:element name="out" nillable="true"
    <br>
&gt;&gt; type="ns0:myComplexStructType"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;xsd:element name="out" nillable="true"
type="xsd:string"/&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsd:schema&gt;
    <br>
&gt;&gt; &lt;/wsdl:types&gt;
    <br>
&gt;&gt; ...
    <br>
&gt;&gt;
    <br>
&gt;&gt;
    <br>
&gt;&gt; Note:
    <br>
&gt;&gt;
    <br>
&gt;&gt; This WSDL has 2 definitions each named&nbsp;&nbsp; myComplextType,
requestType,
    <br>
&gt;&gt; out
    <br>
&gt;&gt; It also has 3 definitions named:&nbsp;&nbsp; responseType
    <br>
&gt;&gt;
    <br>
&gt;&gt; I suspect that the WSDL XML specification would not allow
multiple
    <br>
&gt;&gt; declarations of element types with the same name.
    <br>
&gt;&gt;
    <br>
&gt;&gt; Whether or not the spec allows duplicate names, the fact it
breaks the
    <br>
&gt;&gt; Microsoft tooling (which would be used frequently for client
creation)
    <br>
&gt;&gt; is full justification for CXF eliminating its output of
element type
    <br>
&gt;&gt; names in the synthetic WSDL.
    <br>
&gt;&gt;
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --
Dan Connelly
    <br>
&gt;&gt;
    <br>
&gt;&gt;
    <br>
&gt;&gt;
    <br>
------------------------------------------------------------------------------------------------------
    <br>
&gt;&gt;
    <br>
&gt;&gt;
    <br>
&gt;&gt;
    <br>
&gt;&gt; Dan Connelly wrote:
    <br>
&gt;&gt; &gt; Compare with:&nbsp;&nbsp; How to invoke a WSIT endpoint
from a WCF
client ?
    <br>
&gt;&gt; &gt;
<a class="moz-txt-link-rfc2396E" href="http://blogs.sun.com/arungupta/entry/how_to_invoke_a_wsit">&lt;http://blogs.sun.com/arungupta/entry/how_to_invoke_a_wsit&gt;</a>
    <br>
&gt;&gt; &gt;
    <br>
&gt;&gt; &gt; I am trying this process but for a CXF endpoint using
latest C#
    <br>
Visual
    <br>
&gt;&gt; &gt; Studio 9 Express ("Orcas") from Microsoft.
    <br>
&gt;&gt; &gt;
    <br>
&gt;&gt; &gt; I have not found a CXF sample WSDL that works cleanly
with Orcas "Add
    <br>
&gt;&gt; &gt; Service Reference" function.
    <br>
&gt;&gt; &gt;
    <br>
&gt;&gt; &gt; Any suggestions?
    <br>
&gt;&gt; &gt;
    <br>
&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Dan
Connelly
    <br>
&gt;&gt; &gt;
    <br>
&gt;&gt; &gt;
    <br>
&gt;&gt; &gt;
    <br>
&gt;&gt;
    <br>
&gt;&gt;
    <br>
&gt;
    <br>
&gt;
    <br>
    <br>
  </blockquote>
  <br>
  <br>
  <br>
</blockquote>
<br>
</body>
</html>

Mime
View raw message