I don't use wsdl2java.
In Jonas, using the new (not so new) ejb 2.1 service endpoint features, i
just provide the wsdl (that is generated from the java endpoint interface),
and the ejb and webservices descriptors (for the ejb deployment). At
assembly time, Jonas produces the java stubs, the whole web application as a
war with a limited wsdd descriptor. At deployment time, Jonas merges the
war's wsdd file with the full platform's one to expose the web service
endpoint. This is the wsdd file :

<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/";
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

      <service name="J2ME05WS" provider="java:JOnASEJB"
                   style="document" use="literal" >
        <wsdlFile>j2me05ws.wsdl</wsdlFile>
        <!-- Namespace -->
        <namespace>http://ws.moon.net/j2me05</namespace>
        <!-- Default value for scope -->
        <parameter  name="scope" value="session"/>
        <parameter  name="serviceEndpointJndiName"
                    value="ejb/j2me05/StringToolWebService_SE"/>
                <parameter      name="serviceEndpointInterfaceName"
                                value="net.moon.me.five.ws.StringTool"/>
                <parameter  name="allowedMethods"
                    value="reverse"/>

                <handlerInfoChain>
                </handlerInfoChain>
    </service>


</deployment>

The only thing i don't like in this file is the session scope that leads to
creation of useless session when clientsdon't handles cookies. I have
already open a issue report in Jonas bugs lists to ask for a way to select
this scope or, at least, set it up with a default request value...

>From my point of view, Axis was expected to use the given wsdl file to
handle client requests according to the descriptor it generated itself...

>>> -----Message d'origine-----
>>> De : Michael Schuerig [mailto:[EMAIL PROTECTED]
>>> Envoyé : mardi 11 janvier 2005 04:03
>>> À : [EMAIL PROTECTED]
>>> Objet : Re: Document/Literal : bad part name in axis server response
>>>
>>>
>>> On Tuesday 11 January 2005 01:57, Bill Keese wrote:
>>>
>>> >  Since all the method request/response info is in the WSDL file, I
>>> > thought you shouldn't need to duplicate any of that information in
>>> > the WSDD file.  You would simply have the WSDD file point to the WSDL
>>> > file.
>>>
>>> Does Axis even use the WSD_L_ file on the server side? I don't
>>> think so.
>>> AFAIR, the wsdlURL parameter in the WSDD file is only used to return
>>> the specified file for ?wsdl-style requests.
>>>
>>> Ephemeris, could you post the WSDD that wsdl2java generates for your
>>> wsdl?
>>>
>>> Michael
>>>
>>> --
>>> Michael Schuerig           Contests between male toads over females are
>>> mailto:[EMAIL PROTECTED]     often settled by the depth of the croak.
>>> http://www.schuerig.de/michael/                    --John Maynard Smith

Reply via email to