Version 4

    How do I generate the required artifacts?

     

    JBossWS comes with its own toolset which is called wstools. You can run wstools from the command line and from an Apache Ant target.

     

     

     

     

    To run wstools from the command line, use the scripts available in the jboss-4.0.x/bin dir. They are also packaged in the jbossws-client.jar binary.

     

     

     

     

    Here is an example of howto run wstools from the command line.

     

    wstools -cp path-to-classes -config jbosswsConfig.xml
    
    <configuration xmlns="http://www.jboss.org/jbossws-tools">
      
      <java-wsdl>
        <service name="SampleService" wsdlStyle="rpc" endpoint="org.jboss.test.ws.samples.rpcstyle.TrivialService"></service>
        <namespaces targetNamespace="http://org.jboss.ws/samples/rpcstyle" typeNamespace="http://org.jboss.ws/samples/rpcstyle/types"></namespaces>
        <mapping fileName="jaxrpc-mapping.xml"></mapping>
        <wsxml servletLink="TrivialEndpoint"></wsxml>
      </java-wsdl>
      
    </configuration>
    

     

    More information can be found in the JBossWS User Guide