Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-1090

preventing override of webservices.xml when multiple web services are processed with wstools

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Critical Critical
    • jbossws-1.0.3
    • jbossws-1.0.1
    • tools-jaxrpc
    • None

      I am trying to deploy two or more services in the same module (either WAR or EJB-JAR). The wstools configuration file only takes one <java-wsdl> element at a time, so I need several configuration files for each service. This is fine; each wstools task runs successfully. However, the second one overwrites the contents of the webservices.xml file leaving me with only one service definition element.

      The feature I want to add is a switch in the <webservices> element of the configuration file that toggles between the following behaviors when the webservices.xml file already exists:
      a) Override the webservices.xml file. Make this the default behavior to maintain backwards compatibility
      b) Read the webservices.xml file. Append a new <webservice-description> element as child of the <webservices> element.

      When the webservices.xml file does not exist, the switch has no effect.

      The wstools configuration file would look like this:

      <configuration ...>

      <java-wsdl>

      <service name="TestService" style="rpc"
      endpoint="org.jboss.test.ws.samples.jsr109pojo.JaxRpcTestService"/>

      <namespaces target-namespace="http://org.jboss.ws/samples/jsr109pojo"
      type-namespace="http://org.jboss.ws/samples/jsr109pojo/types"/>

      <mapping file="jaxrpc-mapping.xml" />

      <!-- append the web service description to webservices.xml if it already exists -->
      <webservices servlet-link="TestService" override="false" />

      </java-wsdl>

      </configuration>

              aguizar_jira Alejandro Guizar (Inactive)
              aguizar_jira Alejandro Guizar (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: