目录;
---bin
---src
---META-INF
---services.xml
---buil.xml
package com.****.ws.service;
public class MyService {
public String getName() {
return "zhuyang";
}
public int getPrice(int price) {
return price + 1;
}
public void printMsg(){
System.out.println("lalal");
}
}
services.xml
<service name="myService">
<parameter name="ServiceClass">
com.***.ws.service.MyService
</parameter>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
</messageReceivers>
<operation name="getName">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</operation>
<operation name="getPrice">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</operation>
<operation name="printMsg">
<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
</operation>
</service>
build.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
2011-2-20 下午05:32:26
project
description
zhuyang
====================================================================== -->
<project name="project" default="default">
<description>
deploy aar file
</description>
<property name="project.base.dir" value="." />
<property name="src" value="${project.base.dir}/src" />
<property name="build" value="${project.base.dir}/bin" />
<property name="services" value="${project.base.dir}/META-INF" />
<!--
编译后的META-INF目录,放在bin下面
-->
<property name="servicesComple" value="${build}/META-INF" />
<!-- =================================
target: default
================================= -->
<target name="default" depends="depends" description="description">
<mkdir dir="${servicesComple}" />
<copydir dest="${servicesComple}" src="${services}">
</copydir>
<jar destfile="D:\TOOL\apache-tomcat-7.0.6-windows-x86\apache-tomcat-7.0.6\webapps\axis2\WEB-INF\services\myservie.aar" basedir="${build}" />
</target>
<!-- - - - - - - - - - - - - - - - - -
target: depends
- - - - - - - - - - - - - - - - - -->
<target name="depends">
</target>
</project>
分享到:
相关推荐
hyperMILL tutorial - programowanie 5-osiowe _ 5Axis machining
Tutorial2 - Chart Display Properties Tutorial3 - Chart Paging Tutorial4 - Axis Control Tutorial5 - Legend design Tutorial6 - Working with Series Tutorial7 - Working with Functions Tutorial8 - ...
STM32例程Tutorial 27 - Motion 3-Axis Accelerometer LIS3DSH.7z
separation axis
separation axis
com.springsource.org.apache.axis-sources-1.4.0.jar com.springsource.org.apache.commons.dbcp-sources-1.2.2.osgi.jar com.springsource.org.apache.commons.httpclient-sources-3.1.0.jar ...
separation axis
separation axis
Four different styles of games comprising a puzzler, a space shooter, a multi-axis shoot ‘em up, and a jump-and-run platformer Games that gradually increase in complexity to cover a wide variety of ...
Transforming Axis-Aligned Bounding Boxes (785) 548 Constructing Shapes Summary 551 Defining Surfaces from Sampled Data 552 Defining Surfaces from Contour Data 558 Computing Surface Normals for 3D ...
Scikit-learn-tutorial Scikit-learn v0.19 单词记录 penalize 罚项 decision boundary 决策边界 spam 垃圾邮件 Guidelines 准则,指导方针 demonstrate 证明演示显示 algorithm 算法 stuff 材料,原料 prevalent ...
4.7.2 Single Axis Keyboard Input.................................78 4.8 Automatic Self-Destruction Script.....................................79 4.8.1 Script Breakdown....................................
Note that this guide is not a C++ tutorial: we assume that the reader is familiar with the language. Header Files In general, every .cc file should have an associated .h file. There are some common ...
9.5 Axis containers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 9.6 Tick containers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Chapter 2 Rendering and Animation Techniques for 3D Polygons ......39 Vertex Animation and 3D Morphing ................................39 Sample Program: morph3d....................................40 ...