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
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
相关文章推荐
- CSS Media Query
- MessageUI(发送短信)
- ios之UIScrollerView滚动视图
- 更改navigationController的navigationBar的返回按钮的图片
- UITextField 的属性和用法
- Query Index In a table
- srping关于重新设置request参数问题
- Ant-build出错处理
- UILocalNotification本地通知的使用方法
- IOS中十六进制的颜色转换为UIColor
- 给定制的UITableViewCell里的控件点击设置代理
- UIAlertController 两个按钮的样式
- 如何通过Request获取用户真实IP
- UITableView 属性 方法
- NGUI事件系统、相关变量、控件等的直接用法
- 分支语句(if,switch case)、循环(for,while,do while)、continue、break、随机数
- UIScrollView入门
- 部署LAMP平台和搭建Discue论坛
- 步进电机原理简介
- LeetCode Range Sum Query - Mutable