1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.axis.message.addressing.tools.wsdl;
17
18 import org.apache.axis.wsdl.gen.Generator;
19 import org.apache.axis.wsdl.symbolTable.ServiceEntry;
20 import org.apache.axis.wsdl.symbolTable.SymbolTable;
21 import org.apache.axis.wsdl.toJava.Emitter;
22 import org.apache.axis.wsdl.toJava.JavaServiceWriter;
23
24 import javax.wsdl.Service;
25 import java.io.IOException;
26
27
28
29
30
31
32
33 public class JavaAddressingServiceWriter extends JavaServiceWriter {
34
35
36
37
38 protected Generator gridServiceImplWriter = null;
39
40
41
42
43 protected Generator gridServiceIfaceImplWriter = null;
44
45
46
47
48
49
50
51
52 public JavaAddressingServiceWriter(Emitter emitter, Service service,
53 SymbolTable symbolTable) {
54 super(emitter, service, symbolTable);
55
56 ServiceEntry sEntry = symbolTable.getServiceEntry(service.getQName());
57
58 if (sEntry.isReferenced()) {
59 gridServiceImplWriter = new JavaAddressingServiceImplWriter(emitter, sEntry,
60 symbolTable);
61 gridServiceIfaceImplWriter = new JavaAddressingServiceIfaceImplWriter(emitter,
62 sEntry, symbolTable);
63 }
64 }
65
66
67
68
69 public void generate() throws IOException {
70 super.generate();
71
72 if (gridServiceImplWriter != null) {
73 gridServiceImplWriter.generate();
74 }
75
76 if (gridServiceIfaceImplWriter != null) {
77 gridServiceIfaceImplWriter.generate();
78 }
79 }
80 }