|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
WSDL2Java.java | - | 0% | 0% | 0% |
|
1 |
/*
|
|
2 |
* Copyright 1999-2004 The Apache Software Foundation.
|
|
3 |
*
|
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5 |
* you may not use this file except in compliance with the License.
|
|
6 |
* You may obtain a copy of the License at
|
|
7 |
*
|
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9 |
*
|
|
10 |
* Unless required by applicable law or agreed to in writing, software
|
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13 |
* See the License for the specific language governing permissions and
|
|
14 |
* limitations under the License.
|
|
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 | 0 |
protected Parser createParser() {
|
35 | 0 |
Emitter emitter = (Emitter)super.createParser();
|
36 | 0 |
emitter.setFactory(new JavaAddressingGeneratorFactory(emitter));
|
37 | 0 |
return emitter;
|
38 |
} |
|
39 |
|
|
40 | 0 |
public static void main(String[] args) { |
41 | 0 |
WSDL2Java gsdl2java = new WSDL2Java();
|
42 | 0 |
gsdl2java.run(args); |
43 |
} |
|
44 |
|
|
45 |
} |
|
46 |
|
|