2 Replies Latest reply on Sep 29, 2011 8:38 AM by anoopsk

    Weblogic equivalent library in JBOSS for generating wsdl2service and clientgen

      Hello All,

       

      We are planning to migrate from Weblogic to JBOSS.

       

      in our build scripts we are refering weblogic library for generating wsdl2service and clientgen

       

      <taskdef name="wsdl2service" classname="weblogic.ant.taskdefs.webservices.wsdl2service.WSDL2Service" classpathref="site.classpath">
                  <classpath refid="weblogic.classpath" />
              </taskdef>       
              <taskdef name="clientgen" classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask" classpathref="site.classpath">
                  <classpath refid="weblogic.classpath" />
              </taskdef>

       

      Please let me know equivalent library in JBOSS for WSDL2Service and ClientGenTask classess.

       

      Thanks,

      Gurunath

        • 1. Re: Weblogic equivalent library in JBOSS for generating wsdl2service and clientgen
          asoldano
          Take a look at the JAXWS tools documentation. There're Ant tasks and Maven plugins available.
          • 2. Re: Weblogic equivalent library in JBOSS for generating wsdl2service and clientgen
            anoopsk

            Hi,

             

            wsprovide is a ant task that generates portable JAX-WS artifacts for a service endpoint implementation and wsconsume is a command line tool and ant task that "consumes" the abstract contract (WSDL file) and produces portable JAX-WS service and client artifacts.

            But we have ejb's as service endpoint in the form of ejb jars as below from weblogic build.xml. How can we go about in converting this in jboss, so that services/wsdl's can be generated ? Your help is much appreciated.

             

             

             

             

             

             

             

             

             

             

             

            <target

             

            name="servicegen" depends="ejbjar" description="Generate webservices"

            >

             

             

            <mkdir dir="${jar.dir}/${ear.dir}"

            />

             

             

            <!-- Our exploded ear dir -->

             

            <mkdir dir="${jar.dir}/${war.dir}"

            />

             

             

            <!-- Our exploded war dir -->

             

            <mkdir dir="${jar.dir}/${client.dir}"

            />

             

             

            <!-- Our exploded war dir -->

             

            <tempfile prefix="exploded_ear" property="temp.ear.dir" destdir="${env.ANT_TMP}"

            />

             

            <tempfile prefix="exploded_war" property="temp.war.dir" destdir="${env.ANT_TMP}"

            />

             

            <mkdir dir="${temp.ear.dir}"

            />

             

            <mkdir dir="${temp.war.dir}"

            />

             

            <taskdef

             

             

            name="servicegen" classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask" classpathref="wl.servicegen.path"

            />

             

             

             

             

            <servicegen destEar="${temp.ear.dir}" overwrite="true" contextURI="temp"

            >

             

            <classpath>

             

            <path refid="wl.ejbc.path"

            />

             

            <path refid="wl.servicegen.path"

            />

             

            <path refid="share.compile.path"

            />

             

            </classpath>

             

            <service

             

            ejbJar=

            "${jar.dir}/ejb/a.jar"

             

            targetNamespace=

            http://${deploy.host}:${port}/temp

             

            serviceName=

            "a"

             

            serviceURI=

            "/a"

             

            generateTypes=

            "True"

             

            expandMethods=

            "True"

             

            />

            </servicegen>

            </target>

             

            Thanks,