5 Replies Latest reply on May 22, 2006 6:44 AM by thomas.diesler

    JBossWS and wsgl2java

    mjrother

      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

          Yes, this is an oversight

          http://jira.jboss.com/jira/browse/JBWS-929

          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" />
           </wsdl-java>
          </configuration>
          


          • 2. Re: JBossWS and wsgl2java
            sgao

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

            Thanks

            • 3. Re: JBossWS and wsdl2java
              steinar.ardal

              Guys,

              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" />
               </wsdl-java>
              </configuration>



              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?

              Cheers


              • 4. Re: JBossWS and wsgl2java

                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

                  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