Hi,
I am using jboss-wstools ant task to generate my wsdl file from the Endpoint. Following is the build.xml code,
<taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools"> <classpath refid="compile.classpath" /> <classpath path="${base-jar-module}" /> <classpath path="${services-jar-module}" /> </taskdef> <wstools verbose="true" dest="${gen-src-folder}" config="${config}/wstools-config.xml" />
<configuration xmlns="http://www.jboss.org/jbossws-tools" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://www.jboss.org/jbossws-tools http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd"> <java-wsdl> <service name="SecurityService" style="document" endpoint="com.security.services.SecurityServiceSEI"/> <namespaces target-namespace="http://org.jboss.ws/samples/jsr109ejb" type-namespace="http://org.jboss.ws/samples/jsr109ejb/types"/> <mapping file="jaxrpc-mapping.xml"/> <webservices ejb-link="SecurityService"/> </java-wsdl> </configuration>
This is currently not supported, but should be easy enough to do. Have a go if you like.