日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

jaxws.xsd

發布時間:2024/6/21 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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.xsdhttp://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

轉載于:https://www.cnblogs.com/zno2/p/4688757.html

總結

以上是生活随笔為你收集整理的jaxws.xsd的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。