Add the following plugin and dependencies
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
<!-- <urls>
<url>http://sample.webservice.com?wsdl
</url>
</urls> -->
<wsdlFiles>
<wsdlFile>HelloService.wsdl</wsdlFile>
</wsdlFiles>
<outputDirectory>/src/main/java</outputDirectory>
<!-- <packageSpace>com.company.wsdl</packageSpace> -->
<testCases>true</testCases>
<serverSide>true</serverSide>
<subPackageByFileName>true</subPackageByFileName>
</configuration>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Dependency :
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>1.4.0</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
<version>1.2-RC2</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-wsdl4j</artifactId>
<version>1.2-RC2</version>
<!--<properties>
<war.bundle>true</war.bundle>
</properties>-->
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-saaj</artifactId>
<version>1.2-RC2</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency> <groupId>xerces</groupId> <artifactId>xerces</artifactId>
<version>2.4.0</version>
<!-- <properties> <war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.4.0</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>2.0.2</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.3</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>commons-discovery</groupId>
<artifactId>commons-discovery</artifactId>
<version>0.2</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
Generate Webservice proxy classes or client stub classes by MAVEN
Related Posts:
Coherenc samples and clustering with help of oracle coherence tutorialsAll below explanation and samples are done by reading the document provided by the oracle coherence. The simplest and most flexible way to create caches in Coherence is to use the cache configuration descriptor to define att… Read More
Send and Receive files from remote systemSend and receive files from java socket programing Sender : 1. Create a Scoket connection ServerSocket servsock = new ServerSocket(13267); 2. Checks for the socket acceptence from socket client Socket sock = servsock.acc… Read More
WebServiceClient test codeFollowing is the sample test code to test the webservice import javax.xml.rpc.Call; import javax.xml.rpc.Service; import javax.xml.namespace.QName; public class TestClient { public static void main(String [] args) { … Read More
web service client JAXWS by mavenGenerate web service client stub class by using the JAXWS maven plugin. "jaxws-maven-plugin" will generate the web service stub classes by using that we can implement client or test the web service. generated stub classes … Read More
Generate Webservice proxy classes or client stub classes by MAVENAdd the following plugin and dependencies <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>axistools-maven-plugin</artifactId> … Read More
0 comments:
Post a Comment