James:

Hmmm.   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   Both problems are associated with the faultDetail in the pingMe response.

I am using unchanged code from http://people.apache.org/~dkulp/stage_cxf/2.0_incubator_take1/distribution/apache-cxf-2.0-incubator.zip

Just to be clear, what I am reporting is a problem when I round-trip the given hello_world.wsdl, as follows:

1)  Use wsdl2java to create the object model code from hello_world.wsdl.
2)  Run the demo service/server code as given in the hello_world sample.  Classpath contains references the generated om.
3)  Invoke http://localhost:9000/SoapContext/SoapPort?wsdl (URL of the hosted service).

I get 2 problems (confirmed by Eclipse WSDL Validator) for the wsdl that comes up in the browser.
  1. Duplicate schema elements for faultDetail infoset.
  2. Wrong namespace for the faultDetail message type in the pingMe operation.
Is the latest snapshot you refer to 2.0.1 (as opposed to the 2.0 code that has been voted for release)?   If its 2.0, what am I doing wrong?   If not, where I do I get the snapshot you are using? 

       -- Dan Connelly

------------------------------------------------------------------------------------------------------


James Mao wrote:
Hi Dan,

I tried with the latest snapshot, it is

<wsdl:operation name="pingMe">
     <wsdl:input message="tns:pingMeRequest" name="pingMeRequest">
   </wsdl:input>
     <wsdl:output message="tns:pingMeResponse" name="pingMeResponse">

   </wsdl:output>
     <wsdl:fault message="tns:pingMeFault" name="pingMeFault">
   </wsdl:fault>
</wsdl:operation>

tns is
xmlns:tns="http://apache.org/hello_world_soap_http"

So seems correct in the latest snapshot.


James



Another problem with ?wsdl output using SNAPSHOT cxf-api-2.0-incubator-20070619.165612-29 when running hello_world service.

        <wsdl:operation name="pingMe">
            <wsdl:input message="ns1:pingMe" name="pingMe"></wsdl:input>
            <wsdl:output message="ns1:pingMeResponse"
                name="pingMeResponse">
            </wsdl:output>
            <wsdl:fault message="ns2:faultDetail" name="faultDetail">
            </wsdl:fault>
        </wsdl:operation>

Should be:

<wsdl:fault message="ns1:faultDetail" name="faultDetail">


Eclipse WSDL Validator (which can be run standalone)  flags this error.    It also flags the duplicate schema element problems. 
       -- Dan Connelly


Reply via email to