I have written a simple example of a wsdl first development using jsr181
component.
Take a look at
http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/wsdl-first/

The only limitation is that currently it uses jaxws ri, so you need a soap
binding defined in the wsdl.  I hope in the future, we will be able to use
xfire jaxws generation and customize it to be able to remove this
limitation.

Cheers,
Guillaume Nodet

On 6/8/06, Guillaume Nodet <[EMAIL PROTECTED]> wrote:

I will add the ability to deploy a wsdl file along with the pojos and
xbean.xml
so that you will be able to expose the original wsdl instead of the
generated one.
It will ease the wsdl design first approach.

Cheers,
Guillaume Nodet


On 6/8/06, Guillaume Nodet <[EMAIL PROTECTED]> wrote:
>
> I see two problems:
>   * the targetNamespace is missing the last '/'
>   * the xsd for the requests is not generated
>
> I think these are issues with the xfire wsdl generation layer.
> Not sure if it comes from wsdl2java (the one you use) or java2wsdl
> (which is used by jsr181 component) though ...
>
> I think you should raise a JIRA an XFire.
> AFAIK, 1.1.1 which is due soon fixes some problems on wsdl generation,
> so
> hopfully it will fix these.
>
> Cheers,
> Guillaume Nodet
>
> On 6/8/06, jeroevi < [EMAIL PROTECTED]> wrote:
>
> >
> > The generated wsdl:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <wsdl:definitions targetNamespace="http://services.cronos.be/validateOrder
> > "
> > xmlns:tns="http://services.cronos.be/validateOrder";
> > xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/ "
> > xmlns:soap12="http://www.w3.org/2003/05/soap-envelope";
> > xmlns:ns1=" http://datatypes.cronos.be/validateOrder/ "
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > xmlns:soapenc11=" http://schemas.xmlsoap.org/soap/encoding/ "
> > xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding";
> > xmlns:soap11=" http://schemas.xmlsoap.org/soap/envelope/ "
> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
> >   <wsdl:types>
> >     <xsd:schema attributeFormDefault="qualified"
> > elementFormDefault="qualified"
> > targetNamespace="http://datatypes.cronos.be/validateOrder/";
> > xmlns:xsd=" http://www.w3.org/2001/XMLSchema "/>
> >     <xsd:schema attributeFormDefault="qualified"
> > elementFormDefault="qualified"
> > targetNamespace=" http://services.cronos.be/validateOrder "
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> >       <xsd:element name="validate">
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element maxOccurs="1" minOccurs="1"
> > name="validateRequest"
> > nillable="true" type="ns1:validateRequestType"/>
> >           </xsd:sequence>
> >
> >         </xsd:complexType>
> >       </xsd:element>
> >       <xsd:element name="validateResponse">
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element maxOccurs="1" minOccurs="1"
> > name="validateResponse"
> > nillable="true" type="ns1:validateResponseType"/>
> >           </xsd:sequence>
> >         </xsd:complexType>
> >       </xsd:element>
> >
> >     </xsd:schema>
> >   </wsdl:types>
> >   <wsdl:message name="validateResponse">
> >     <wsdl:part name="parameters" element="tns:validateResponse"/>
> >   </wsdl:message>
> >   <wsdl:message name="validateRequest">
> >     <wsdl:part name="parameters" element="tns:validate"/>
> >   </wsdl:message>
> >   <wsdl:portType name="validateOrderPortType">
> >
> >     <wsdl:operation name="validate">
> >       <wsdl:input name="validateRequest"
> > message="tns:validateRequest"/>
> >       <wsdl:output name="validateResponse"
> > message="tns:validateResponse"/>
> >     </wsdl:operation>
> >   </wsdl:portType>
> >   <wsdl:binding name="validateOrderHttpBinding"
> > type="tns:validateOrderPortType">
> >     <wsdlsoap:binding style="document"
> > transport=" http://schemas.xmlsoap.org/soap/http"/>
> >     <wsdl:operation name="validate">
> >       <wsdlsoap:operation soapAction=""/>
> >
> >       <wsdl:input name="validateRequest">
> >         <wsdlsoap:body use="literal"/>
> >       </wsdl:input>
> >       <wsdl:output name="validateResponse">
> >         <wsdlsoap:body use="literal"/>
> >       </wsdl:output>
> >     </wsdl:operation>
> >   </wsdl:binding>
> >   <wsdl:service name="validateOrderHttp">
> >
> >     <wsdl:port name="validateOrderHttp"
> > binding="tns:validateOrderHttpBinding">
> >       <wsdlsoap:address location="http://localhost:8194/validateOrder/
> > "/>
> >     </wsdl:port>
> >   </wsdl:service>
> > </wsdl:definitions>
> >
> > --
> > View this message in context: 
http://www.nabble.com/design-first-and-jsr181-t1755145.html#a4772849
> >
> > Sent from the ServiceMix - User forum at Nabble.com.
> >
> >
>

Reply via email to