-
Feature Request
-
Resolution: Done
-
Critical
-
jbossws-1.0.1
-
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>