1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.axis.message.addressing.tools.wsdl;
19
20 import org.apache.axis.wsdl.gen.Parser;
21 import org.apache.axis.wsdl.toJava.Emitter;
22
23 /***
24 * Extends Axis <i>WSDL2Java</i> tool. In addition to the code generated
25 * by standard Axis <i>WSDL2Java</i> tool, this tool generates client-side
26 * <Service>AddressingLocator and <Service>Addressing classes.
27 * The AddressingLocator can be used to get a Stub for the given PortType
28 * by passing a <i>EndpointReferenceType</i>.
29 *
30 * @author Jarek Gawor (gawor@mcs.anl.gov)
31 */
32 public class WSDL2Java extends org.apache.axis.wsdl.WSDL2Java {
33
34 protected Parser createParser() {
35 Emitter emitter = (Emitter)super.createParser();
36 emitter.setFactory(new JavaAddressingGeneratorFactory(emitter));
37 return emitter;
38 }
39
40 public static void main(String[] args) {
41 WSDL2Java gsdl2java = new WSDL2Java();
42 gsdl2java.run(args);
43 }
44
45 }