5 Replies Latest reply on May 22, 2006 6:44 AM by Thomas Diesler

    JBossWS and wsgl2java

    Michael Rother Newbie

      I cannot find any documentation on starting with a WSDL and generating the web service (document / bare) as an EJB endpoint. Can someone give me a place to start?

        • 1. Re: JBossWS and wsgl2java
          Thomas Diesler Master

          Yes, this is an oversight


          Have a look at the jsr181ejb and jsr181pojo samples in the samples download.

          <configuration ...>
           <wsdl-java file="resources/samples/jsr181ejb/META-INF/wsdl/TestService.wsdl">
           <mapping file="jaxrpc-mapping.xml" />

          • 2. Re: JBossWS and wsgl2java
            Spica Gao Newbie

            CAn I generate stub with <wsdl-java/> configuration?
            If I can, what is the configuraiton?


            • 3. Re: JBossWS and wsdl2java
              Steinar Ardasl Newbie


              Based on the example found in the sample code, I have managed to generate the interfaces from the WSDL file, but not the implementing stub classes.

              WS Tool Configuration

              <configuration xmlns="http://www.jboss.org/jbossws-tools">
               <wsdl-java file="resources/wsdl/DataRetrieve.wsdl">
               <mapping file="jaxrpc-mapping.xml" />

              My Web Service is named DataRetrieve.
              Axis generates these files:
              -DataRetrieve.java (javax.xml.rpc.Service)
              -DataRetrieveLocator.java (org.apache.axis.client.Service)
              -DataRetrieveService.java (java.rmi.Remote)
              -DataRetrieveServiceBindingStub.java (org.apache.axis.client.Stub)

              When running the JBossWS wsdl-java code generator, only these files are generated.
              -DataRetrieve.java (javax.xml.rpc.Service)
              -DataRetrieveService.java (java.rmi.Remote)

              How should I configure the wstool to be able to generate the Stubs (e.g. DataRetrieveLocator and DataRetrieveServiceBindingStub) or is this not possible?


              • 4. Re: JBossWS and wsgl2java
                Tom Crosman Newbie

                Likewise I generate two interfaces from a single pojo 181 jsr but no stubs. I noticed the client dir has no
                jbossws-client.jar just the 14 version. Posted a topic about that because wstool.bat refers to it. Don't know if this is the culprit or not.

                I installed via the installer jar downloading the zip now to see if it contains the correct jar

                • 5. Re: JBossWS and wsgl2java
                  Thomas Diesler Master

                  wstools does not generate staticly compilable stubs. We use the JSR109 client deployment model where you look au a preconfigured stub from JNDI.

                  Look at the sample clients