jaxws.xsd
示例:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> <bean id="serviceBean" class="cn.zno.HelloWorldImpl"></bean>
<bean id="inInterceptors" class="org.apache.cxf.interceptor.LoggingInInterceptor"></bean>
<bean id="outInterceptors" class="org.apache.cxf.interceptor.LoggingOutInterceptor"></bean> <jaxws:server id="helloWorld" address="/HelloWorld"
serviceClass="cn.zno.HelloWorld">
<jaxws:serviceBean>
<ref bean="serviceBean" />
</jaxws:serviceBean>
<jaxws:inInterceptors>
<ref bean="inInterceptors" />
</jaxws:inInterceptors>
<jaxws:outInterceptors>
<ref bean="outInterceptors" />
</jaxws:outInterceptors>
</jaxws:server> </beans>
http://cxf.apache.org/schemas/jaxws.xsd
<xsd:all>
<xsd:element name="binding" type="xsd:anyType" minOccurs="0">...</xsd:element>
<xsd:element name="dataBinding" type="xsd:anyType" minOccurs="0">...</xsd:element>
<xsd:element name="executor" type="xsd:anyType" minOccurs="0">...</xsd:element>
<xsd:element name="features" type="xsd:anyType" minOccurs="0">...</xsd:element>
<xsd:element name="handlers" type="xsd:anyType" minOccurs="0">...</xsd:element>
<xsd:element name="inInterceptors" type="xsd:anyType" minOccurs="0">...</xsd:element>
<xsd:element name="inFaultInterceptors" type="xsd:anyType" minOccurs="0">...</xsd:element>
<xsd:element name="invoker" type="xsd:anyType" minOccurs="0">...</xsd:element>
<xsd:element name="outInterceptors" type="xsd:anyType" minOccurs="0">...</xsd:element>
<xsd:element name="outFaultInterceptors" type="xsd:anyType" minOccurs="0">...</xsd:element>
<xsd:element name="properties" type="beans:mapType" minOccurs="0">...</xsd:element>
<xsd:element name="schemaLocations" type="schemasType" minOccurs="0"/>
<xsd:element name="serviceBean" type="xsd:anyType" minOccurs="0">...</xsd:element>
<xsd:element name="serviceFactory" type="xsd:anyType" minOccurs="0"/>
</xsd:all>
<xsd:attributeGroup ref="cxf-beans:beanAttributes"/>
<xsd:attribute name="address" type="xsd:string">...</xsd:attribute>
<xsd:attribute name="bindingId" type="xsd:string">...</xsd:attribute>
<xsd:attribute name="bus" type="xsd:string">...</xsd:attribute>
<xsd:attribute name="serviceClass" type="xsd:string">...</xsd:attribute>
<xsd:attribute name="serviceBean" type="xsd:string">...</xsd:attribute>
<xsd:attribute name="start" type="xsd:boolean" default="true">...</xsd:attribute>
<xsd:attribute name="transportId" type="xsd:string">...</xsd:attribute>
<xsd:attribute name="wsdlLocation" type="xsd:string">...</xsd:attribute>
<xsd:attribute name="endpointName" type="xsd:QName">...</xsd:attribute>
<xsd:attribute name="serviceName" type="xsd:QName">...</xsd:attribute>
<jaxws:server [属性这这里]>[元素在这里]</jaxws:server>
1. address
Specifies the HTTP address of the endpoint. This value will override the value specified in the services contract.
2.bingdingId
Specifies the ID of the data binding the service will use. For SOAP bindings the IDs are defined in the JAX-WS specification. For other data bindings, the ID is the namespace of the WSDL extensions used to configure the binding.
3.bus
Specifies the ID of the Spring bean configuring the bus managing the endpoint.
4.serviceClass
Specifies the name of the class implementing the service. This attribute is useful when you specify the implementor with the ref bean which is wrapped by using Spring AOP.
5.serviceBean
Specifies the class implementing the service. You can specify the implementation class using either the class name or an ID reference to a Spring bean configuring the implementation class. This class needs to be on the classpath.
需先定义spring bean ,假如id为somebean然后,serviceBean="#somebean" 即可。
推荐使用 element serviceBean
6.start
Specifies if the service should be automatically published. 默认true
7.transportId
Specifies the transportId that endpoint will use, it will override the transport which is defined in the wsdl.
8.wsdlLocation
Specifies the location of the endpoint's WSDL contract. The WSDL contract's location is relative to the folder from which the service is deployed.
9.endpointName
Specifies the value of the service's WSDL port element's name attribute.
10.serviceName
Specifies the value of the service's WSDL service element's name attribute.
Ⅰ.binding
Configures the message binding used by the endpoint. Message bindings are configured using implementations of the org.apache.cxf.binding.BindingFactory interface. The SOAP binding is configured using the soap:soapBinding bean.
Ⅱ.dataBinding
Configures the data binding used by the endpoint. The class implementing the JAXB data binding is org.apache.cxf.jaxb.JAXBDataBinding.
Ⅲ.executor
Configures a Java executor to handle the service.
Ⅳ.features
Specifies a list of beans that configure advanced features like WS-RM.
Ⅴ.handlers
Specifies a list of JAX-WS handlers to add to the endpoint's processing chain.
Ⅵ.inInterceptors
Specifies a list of interceptors to process incoming requests.
Ⅶ.inFaultInterceptors
Specifies a list of interceptors to process incoming fault messages.
Ⅷ.invoker
Specifies an implementation of the org.apache.cxf.service.Invoker interface to be used by the service. The Invoker implementation controls how a service is invoked. For example, it controls if each request is handled by a new instance of the service implementation or if state is preserved across invocations.
Ⅸ.outInterceptors
Specifies a list of interceptors to process outgoing responses.
Ⅹ.outFaultInterceptors
Specifies a list of interceptors to process outgoing fault messages.
Ⅺ.properties
Specifies a map of properties that are passed to the endpoint.
Ⅻ.schemaLocations
XⅢ.serviceBean
Configures the bean implementing the service. If this child is used you should not use the serviceBean attribute.
XⅣ.serviceFactory
jaxws.xsd的更多相关文章
- CXF - JAX-WS入门
相关dependency,我使用的版本是2.7.11: <dependency> <groupId>org.apache.cxf</groupId> <art ...
- WebService--CXF以及CXF与Spring的整合(jaxws:server形式配置)
前言:好记性不如烂笔头,写博客的好处是,以前接触的东西即便忘记了,也可以从这里查找. Apache CXF 是一个开源的 Services 框架,CXF 帮助您利用 Frontend 编程 API 来 ...
- WebService--CXF与Spring的整合(jaxws:endpoint形式配置)以及客户端调用(spring配置文件形式,不需要生成客户端代码)
一.CXF与Spring整合(jaxws:endpoint形式配置) 工具要点:idea.maven 1.新建一个maven项目 <?xml version="1.0" en ...
- 流程开发Activiti 与SpringMVC整合实例
流程(Activiti) 流程是完成一系列有序动作的概述.每一个节点动作的结果将对后面的具体操作步骤产生影响.信息化系统中流程的功能完全等同于纸上办公的层级审批,尤其在oa系统中各类电子流提现较为明显 ...
- webService学习之路(二):springMVC集成CXF快速发布webService
继上一篇webService入门之后,http://www.cnblogs.com/xiaochangwei/p/4969448.html ,现在我将我周六在家研究的结果公布出来 本次集成是基于之前已 ...
- 添加webservice调用日志
之前想用spring的AOP给webservice添加切面的,但是使用around切面后,居然调用端得不到webservice的返回结果,而且报文的详细情况也不得而知,很是尴尬,所以偷了个懒.但是该做 ...
- maven+ssm+cxf3配置例子
以下只是简单记录 ssm结合cxf3的配置 提供方配置::: pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0&quo ...
- WebService -- Java 实现之 CXF ( 使用:Spring+CXF+Tomcat发布webService)
1. 新建一个Maven项目,选择webapp模板,命名为WS_Spring_CXF_Tomcat 2. 在POM.xml中添加Spring和CXF的依赖 <!-- 添加 Spring depe ...
- 【Java EE 学习 81】【CXF框架】【CXF整合Spring】
一.CXF简介 CXF是Apache公司下的项目,CXF=Celtix+Xfire:它支持soap1.1.soap1.2,而且能够和spring进行快速无缝整合. 另外jax-ws是Sun公司发布的一 ...
随机推荐
- Java8函数之旅(四) --四大函数接口
前言 Java8中函数接口有很多,大概有几十个吧,具体究竟是多少我也数不清,所以一开始看的时候感觉一脸懵逼,不过其实根本没那么复杂,毕竟不应该也没必要把一个东西设计的很复杂. 几个单词 在学习 ...
- iKcamp|基于Koa2搭建Node.js实战(含视频)☞ 规范与部署
沪江CCtalk视频地址:https://www.cctalk.com/v/15114923889450 规范与部署 懒人推动社会进步. 本篇中,我们会讲述三个知识点 定制书写规范 开发环境运行 如何 ...
- iKcamp|基于Koa2搭建Node.js实战(含视频)☞ 处理静态资源
视频地址:https://www.cctalk.com/v/15114923882788 处理静态资源 无非花开花落,静静. 指定静态资源目录 这里我们使用第三方中间件: koa-static 安装并 ...
- ubuntu 安装 selenium selenium操作 chrome
重装虚拟机,好多包需要重装,sele这个记得当时就找了好久的完整重装方法,这次又找了好久,,,省的下次再这样,记录下来..... ubuntu16.04 4安装seleniumsudo pip ins ...
- 批量导入数据(Mysql)报MySQL server has gone away 问题的解决方法
问题分析 首先度娘:mysql出现ERROR : (2006, 'MySQL server has gone away') 的问题意思就是指client和MySQL server之间的链接断开了. 造 ...
- Tensorflow从文件读取数据
http://blog.csdn.net/zengxyuyu/article/details/53289906
- Windows phone 自定义控件(无外观控件)——ColorPicker
编码前 在上一篇博客中,写的是一个UserControl的子类,它具有固定的外观(虽然也可以通过样式来进行修改,但受到的限制很大).如果你想要使用这个控件的逻辑,但是希望在使用的时候可以更改控件的外观 ...
- Animation.wrapMode循环模式
WrapMode.Default:从动画剪辑中读取循环模式(默认是Once). WrapMode.Once:当时间播放到末尾的时候停止动画的播放. WrapMode.Loop:当时间播放到末尾的时候重 ...
- 使用百度网盘配置私有Git服务
GitHub上免费的版本只能开源代码库,有时候需要配置些私有的服务,不方便公开.现在免费的网盘的容量越来越大,可以用来做存储的服务,如果只使用网盘存储合并代码很不方便,所以使用网盘+git 配置私有仓 ...
- iOS 代码调试
僵尸对象导致crash(Thread 1:EXC_BAD_ACCESS(code=EXC_I386_GPFLT)),需要给位release模式,debug模式不打印内存地址 https://blog. ...