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: Wrong namespace: message="ns2:faultDetail"
Date Tue, 26 Jun 2007 14:27:17 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">
James:<br>
<br>
Hmmm.&nbsp;&nbsp; I still get the wrong namespace problem (and duplicate schema
elements) when I run the "latest snapshot", by which I mean the voted
2.0 release snapshot &nbsp; Both problems are associated with the
faultDetail in the pingMe response.<br>
<br>
I am using unchanged code from
<a class="moz-txt-link-freetext" href="http://people.apache.org/~dkulp/stage_cxf/2.0_incubator_take1/distribution/apache-cxf-2.0-incubator.zip">http://people.apache.org/~dkulp/stage_cxf/2.0_incubator_take1/distribution/apache-cxf-2.0-incubator.zip</a><br>
<br>
Just to be clear, what I am reporting is a problem when I round-trip
the given hello_world.wsdl, as follows:<br>
<br>
1)&nbsp; Use wsdl2java to create the object model code from hello_world.wsdl.<br>
2)&nbsp; Run the demo service/server code as given in the hello_world
sample.&nbsp; Classpath contains references the generated om.<br>
3)&nbsp; Invoke <a class="moz-txt-link-freetext" href="http://localhost:9000/SoapContext/SoapPort?wsdl">http://localhost:9000/SoapContext/SoapPort?wsdl</a>
(URL of the
hosted service).<br>
<br>
I get 2 problems (confirmed by Eclipse WSDL Validator) for the wsdl
that comes up in the browser.<br>
<ol>
  <li>Duplicate schema elements for faultDetail infoset.</li>
  <li>Wrong namespace for the faultDetail message type in the pingMe
operation.</li>
</ol>
Is the latest snapshot you refer to 2.0.1 (as opposed to the 2.0 code
that has been voted for release)? &nbsp; If its 2.0, what am I doing wrong?
&nbsp; If not, where I do I get the snapshot you are using?&nbsp; <br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; -- Dan Connelly<br>
<br>
------------------------------------------------------------------------------------------------------<br>
<br>
<br>
James Mao wrote:
<blockquote cite="mid:467F5310.4000405@iona.com" type="cite">Hi Dan,
  <br>
  <br>
I tried with the latest snapshot, it is
  <br>
  <br>
&lt;wsdl:operation name="pingMe"&gt;
  <br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:input message="tns:pingMeRequest"
name="pingMeRequest"&gt;
  <br>
&nbsp;&nbsp; &lt;/wsdl:input&gt;
  <br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:output message="tns:pingMeResponse"
name="pingMeResponse"&gt;
  <br>
  <br>
&nbsp;&nbsp; &lt;/wsdl:output&gt;
  <br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:fault message="tns:pingMeFault" name="pingMeFault"&gt;
  <br>
&nbsp;&nbsp; &lt;/wsdl:fault&gt;
  <br>
&lt;/wsdl:operation&gt;
  <br>
  <br>
tns is <br>
xmlns:tns=<a class="moz-txt-link-rfc2396E" href="http://apache.org/hello_world_soap_http">"http://apache.org/hello_world_soap_http"</a>
  <br>
  <br>
So seems correct in the latest snapshot.
  <br>
  <br>
  <br>
James
  <br>
  <br>
  <br>
  <blockquote type="cite"><br>
Another problem with ?wsdl output using SNAPSHOT
cxf-api-2.0-incubator-20070619.165612-29 when running hello_world
service.
    <br>
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:operation
name="pingMe"&gt;
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;wsdl:input message="ns1:pingMe"
name="pingMe"&gt;&lt;/wsdl:input&gt;
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;wsdl:output message="ns1:pingMeResponse"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
name="pingMeResponse"&gt;
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/wsdl:output&gt;
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;wsdl:fault message="ns2:faultDetail"
name="faultDetail"&gt;
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/wsdl:fault&gt;
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/wsdl:operation&gt;
    <br>
    <br>
Should be:
    <br>
    <br>
&lt;wsdl:fault message="ns1:faultDetail" name="faultDetail"&gt;
    <br>
    <br>
    <br>
Eclipse WSDL Validator (which can be run standalone)&nbsp; flags this
error.&nbsp;&nbsp;&nbsp; It also flags the duplicate schema element problems.&nbsp;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Dan Connelly
    <br>
  </blockquote>
  <br>
</blockquote>
<br>
</body>
</html>

Mime
View raw message