您的位置:首页 > 产品设计 > UI/UE

Axis2 quick start guide-client code

2016-01-12 14:22 399 查看
#developing in win system

1)download zip file from axis2 website

2)uncompress axis2.1.6.4-bin.zip,axis-1.6.4.war.zip,and must be download tomcat 7 or even later

3)put the unzip file axis2.war into tomcat directorys webapps.,and start tomcat server

call the link :http://localhost:8080/axis2/

4)genercate client code

cd axis2/bin,type the command

wsdl2java.bat -uri http://localhost:8080/axis2/services/Version?wsdl -o Test

5.)config client code

create a maven project

How to config the axis dependences

copy axis2 example project "axis2-1.6.4\samples\transport\https-sample" pom dependences

and axis2-1.6.4\samples\jaxws-samples\ pom file dependences

<dependencies>

<dependency>

<groupId>org.mongodb</groupId>

<artifactId>mongo-java-driver</artifactId>

<version>3.2.0</version>

</dependency>

<dependency>

<groupId>javax.servlet</groupId>

<artifactId>servlet-api</artifactId>

<version>2.3</version>

<scope>provided</scope>

</dependency>

<dependency>

<groupId>org.apache.axis2</groupId>

<artifactId>axis2-kernel</artifactId>

<version>1.6.4</version>

</dependency>

<dependency>

<groupId>org.apache.axis2</groupId>

<artifactId>axis2-jaxws</artifactId>

<version>1.6.4</version>

</dependency>

<dependency>

<groupId>org.apache.axis2</groupId>

<artifactId>axis2-codegen</artifactId>

<version>1.6.4</version>

</dependency>

<dependency>

<groupId>org.apache.axis2</groupId>

<artifactId>axis2-adb</artifactId>

<version>1.6.4</version>

</dependency>

<dependency>

<groupId>org.apache.axis2</groupId>

<artifactId>addressing</artifactId>

<version>1.6.4</version>

<type>mar</type>

</dependency>

<dependency>

<groupId>org.apache.axis2</groupId>

<artifactId>axis2-transport-http</artifactId>

<version>1.6.4</version>

</dependency>

<dependency>

<groupId>org.apache.axis2</groupId>

<artifactId>axis2-transport-local</artifactId>

<version>1.6.4</version>

</dependency>

6) invoke menthod
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: