Skip to content

Commit b30ea9e

Browse files
Generate JAX-WS client binding for VMware wsdl
1 parent fdb3b49 commit b30ea9e

14 files changed

Lines changed: 76277 additions & 19 deletions

File tree

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@
446446
<testOutputDirectory>${basedir}/${cs.target.dir}/test-classes</testOutputDirectory>
447447
<pluginManagement>
448448
<plugins>
449+
<plugin>
450+
<groupId>org.apache.cxf</groupId>
451+
<artifactId>cxf-codegen-plugin</artifactId>
452+
<version>2.7.6</version>
453+
</plugin>
449454
<plugin>
450455
<artifactId>maven-clean-plugin</artifactId>
451456
<configuration>

vmware-base/pom.xml

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
<groupId>org.apache.cloudstack</groupId>
3232
<artifactId>cloud-utils</artifactId>
3333
<version>${project.version}</version>
34+
<exclusions>
35+
<exclusion>
36+
<groupId>org.owasp.esapi</groupId>
37+
<artifactId>esapi</artifactId>
38+
</exclusion>
39+
</exclusions>
3440
</dependency>
3541
<dependency>
3642
<groupId>org.apache.cloudstack</groupId>
@@ -46,23 +52,37 @@
4652
<groupId>com.google.code.gson</groupId>
4753
<artifactId>gson</artifactId>
4854
</dependency>
49-
<dependency>
50-
<groupId>com.cloud.com.vmware</groupId>
51-
<artifactId>vmware-vim25</artifactId>
52-
<version>${cs.vmware.api.version}</version>
53-
<scope>compile</scope>
54-
</dependency>
55-
<dependency>
56-
<groupId>org.apache.axis</groupId>
57-
<artifactId>axis</artifactId>
58-
</dependency>
59-
<dependency>
60-
<groupId>org.apache.axis</groupId>
61-
<artifactId>axis-jaxrpc</artifactId>
62-
</dependency>
63-
<dependency>
64-
<groupId>wsdl4j</groupId>
65-
<artifactId>wsdl4j</artifactId>
66-
</dependency>
6755
</dependencies>
56+
<build>
57+
<plugins>
58+
<plugin>
59+
<groupId>org.apache.cxf</groupId>
60+
<artifactId>cxf-codegen-plugin</artifactId>
61+
<executions>
62+
<execution>
63+
<id>generate-sources</id>
64+
<phase>generate-sources</phase>
65+
<configuration>
66+
<sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
67+
<wsdlOptions>
68+
<wsdlOption>
69+
<wsdl>${basedir}/wsdl/vim25/vimService.wsdl</wsdl>
70+
<extraargs>
71+
<extraarg>-client</extraarg>
72+
<extraarg>-frontend</extraarg>
73+
<extraarg>jaxws21</extraarg>
74+
<extraarg>-p</extraarg>
75+
<extraarg>com.vmware.vim25</extraarg>
76+
</extraargs>
77+
</wsdlOption>
78+
</wsdlOptions>
79+
</configuration>
80+
<goals>
81+
<goal>wsdl2java</goal>
82+
</goals>
83+
</execution>
84+
</executions>
85+
</plugin>
86+
</plugins>
87+
</build>
6888
</project>

vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import java.util.regex.Pattern;
2525

2626
import org.apache.log4j.Logger;
27-
import org.apache.xerces.impl.xs.identity.Selector.Matcher;
2827

2928
import com.cloud.hypervisor.vmware.util.VmwareContext;
3029
import com.cloud.hypervisor.vmware.util.VmwareHelper;

0 commit comments

Comments
 (0)