Axis2 Web 服务配置文件services.xml
来源:互联网 发布:java 流量统计 编辑:程序博客网 时间:2024/05/16 14:45
一个非常简单的services.xml如下:
<service name="name of the service" scope="name of the scope" class="fully qualified name the service lifecycle class" targetNamespace="target namespace for the service"> <Description> The description of the service </Description> <transports> <transport>HTTP</transport> </transports> <schema schemaNamespace="schema namespace"/> <messageReceivers> <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> </messageReceivers> <parameter name="ServiceClass" locked="xsd:false">org.apache.axis2.sample.echo.EchoImpl</parameter> <operation name="echoString" mep="operation MEP"> <actionMapping>Mapping to action</actionMapping> <module ref=" a module name "/> <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> </operation></service>
(1)Scope:可选属性,部署的服务的有效期,有application, soapsession, transportsession, request,默认是request.
(2)class:可选属性,服务生命周期类的实现类,当系统启动和停止时,可以使用ServiceLifeCycle类做一些任务。
(3)targetNamespace:可选属性,服务的目标命名空间,当生成WSDL时会使用这个值。如果不指定这个值,此值会根据服务的实现类名生成。
(4)Descriptioin:可选属性,指定通过Axis2 web-admin 模块显示的名称。
(5)transports:可选属性,服务使用的传输协议,如果不指定,默认使用系统可用的所有传输协议,子元素指定transport prefix(the name of the transport specified in axis2.xml)。
(6)parameters:会转化为相应AxisService服务的属性,有一个必备的参数是ServiceClass,它会指定一个类,这个类以MessageReceiver加载,用于把其他参数转化为服务属性。
(7)operations:默认服务实现类的所有public方法会暴露出来。
0 0
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web 服务配置文件services.xml
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web服务配置文件services.xml详解
- Axis2 Web服务配置文件services.xml详解
- axis2通过services.xml配置文件发布的两种方式
- web services 之 axis2
- web services + axis2
- web services + axis2( 二 )
- 状态机C语言
- linuex上搭建nginx步骤
- python学习——安装第三方模块
- Android中GridView(网络视图)使用
- 盒模型与浮动布局
- Axis2 Web 服务配置文件services.xml
- C#中的相等判断:==和equals
- 了解WebService
- PLC学习笔记1 接触器的使用和接线
- ef DBfirst,修改代码生成文件,实现数据实体的继承
- 设计模式——简单工厂模式(simple factory pattern)
- Order by 和 group by 的联合使用 并对某一字段中的不同结果进行重命名和自由排序
- 面试题21:包含min函数的栈
- php发送邮件email