场景

官方API

https://docs.spring.io/spring-ws/site/apidocs/org/springframework/ws/wsdl/wsdl11/DefaultWsdl11Definition.html

实现

简单中文翻译版

类DefaultWsdl 11定义

java.lang.Objectorg.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition

所有已执行的接口:

初始化豆, Wsdl 11定义, WsdlDefinition


public class DefaultWsdl11Definition

extends Object

implements Wsdl11Definition, InitializingBean

方便实施Wsdl11Definition这将根据一个或多个内联XSD模式中的命名约定创建SOAP1.1或1.2绑定。代表出席InliningXsdSchemaTypesProviderDefaultMessagesProviderSuffixBasedPortTypesProviderSoapProvider实际上相当于使用ProviderBasedWsdl4jDefinition所有这些提供者。

示例配置:

 <bean id="airline" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition"><property name="schema"><bean class="org.springframework.xml.xsd.SimpleXsdSchema"><property name="xsd" value="/WEB-INF/airline.xsd"/></bean></property><property name="portTypeName" value="Airline"/><property name="locationUri" value="http://localhost:8080/airline/services"/></bean>

构造器摘要
DefaultWsdl11Definition() 
创建一个新实例。DefaultWsdl11Definition.
方法总结
 void afterPropertiesSet() 
           
 Source getSource() 
返回Source的定义。
 void setCreateSoap11Binding(boolean createSoap11Binding) 
指示是否应创建SOAP1.1绑定。
 void setCreateSoap12Binding(boolean createSoap12Binding) 
指示是否应创建SOAP1.2绑定。
 void setFaultSuffix(String faultSuffix) 
设置用于检测架构中的故障元素的后缀。
 void setLocationUri(String locationUri) 
设置用于SOAP地址位置属性值的值。
 void setPortTypeName(String portTypeName) 
设置用于此定义的端口类型名称。
 void setRequestSuffix(String requestSuffix) 
设置用于检测架构中的请求元素的后缀。
 void setResponseSuffix(String responseSuffix) 
设置用于检测架构中的响应元素的后缀。
 void setSchema(XsdSchema schema) 
将单个XSD架构设置为内联。
 void setSchemaCollection(XsdSchemaCollection schemaCollection) 
将XSD架构集合设置为内联。
 void setServiceName(String serviceName) 
设置服务名称。
 void setSoapActions(Properties soapActions) 
设置此绑定的SOAP操作。
 void setTargetNamespace(String targetNamespace) 
设置用于此定义的目标命名空间。
 void setTransportUri(String transportUri) 
设置绑定传输属性值的值。
方法继承自java.lang类。对象
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
构造器细节

DefaultWsdl 11定义

public DefaultWsdl11Definition()

创建一个新实例。DefaultWsdl11Definition.

方法细节

setTargetNamesspace

public void setTargetNamespace(String targetNamespace)

设置用于此定义的目标命名空间。

默认为定义架构的目标命名空间。


setSchema

public void setSchema(XsdSchema schema)

将单个XSD架构设置为内联。或者这个财产,或者schemaCollection必须设置好。


setSchemaCollection

public void setSchemaCollection(XsdSchemaCollection schemaCollection)

将XSD架构集合设置为内联。或者这个财产,或者schema必须设置好。


setPortTypeName

public void setPortTypeName(String portTypeName)

设置用于此定义的端口类型名称。需要。


setRequestSuffix

public void setRequestSuffix(String requestSuffix)

设置用于检测架构中的请求元素的后缀。


setResponseSuffix

public void setResponseSuffix(String responseSuffix)

设置用于检测架构中的响应元素的后缀。


setFaultSuffix

public void setFaultSuffix(String faultSuffix)

设置用于检测架构中的故障元素的后缀。


setCreateSoap11Binding

public void setCreateSoap11Binding(boolean createSoap11Binding)

指示是否应创建SOAP1.1绑定。

默认为true.


setCreateSoap12Binding

public void setCreateSoap12Binding(boolean createSoap12Binding)

指示是否应创建SOAP1.2绑定。

默认为false.


setSoapActions

public void setSoapActions(Properties soapActions)

设置此绑定的SOAP操作。钥匙是binding operation names;价值是SOAP Action URIs.

参数:

soapActions-肥皂


setTransportURI

public void setTransportUri(String transportUri)

设置绑定传输属性值的值。默认为HTTP。


setLocationURI

public void setLocationUri(String locationUri)

设置用于SOAP地址位置属性值的值。


setServiceName

public void setServiceName(String serviceName)

设置服务名称。

默认为端口类型名称,后缀为Service附在上面。


后性质集

public void afterPropertiesSet()throws Exception

具体如下:

afterPropertiesSet在接口中InitializingBean

投掷:

Exception


getSource

public Source getSource()

从接口复制的描述:WsdlDefinition

返回Source的定义。

具体如下:

getSource在接口中WsdlDefinition

返回:

这个Source这个WSDL定义的

英文原版

org.springframework.ws.wsdl.wsdl11 
Class DefaultWsdl11Definition

java.lang.Objectorg.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition

All Implemented Interfaces:

InitializingBean, Wsdl11Definition, WsdlDefinition


public class DefaultWsdl11Definition

extends Object

implements Wsdl11Definition, InitializingBean

Convenient implementation of Wsdl11Definition that creates a SOAP 1.1 or 1.2 binding based on naming conventions in one or more inlined XSD schemas. Delegates to InliningXsdSchemaTypesProviderDefaultMessagesProviderSuffixBasedPortTypesProviderSoapProvider underneath; effectively equivalent to using a ProviderBasedWsdl4jDefinition with all these providers.

Example configuration:

 <bean id="airline" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition"><property name="schema"><bean class="org.springframework.xml.xsd.SimpleXsdSchema"><property name="xsd" value="/WEB-INF/airline.xsd"/></bean></property><property name="portTypeName" value="Airline"/><property name="locationUri" value="http://localhost:8080/airline/services"/></bean>

Constructor Summary
DefaultWsdl11Definition() 
Creates a new instance of the DefaultWsdl11Definition.
Method Summary
 void afterPropertiesSet() 
           
 Source getSource() 
Returns the Source of the definition.
 void setCreateSoap11Binding(boolean createSoap11Binding) 
Indicates whether a SOAP 1.1 binding should be created.
 void setCreateSoap12Binding(boolean createSoap12Binding) 
Indicates whether a SOAP 1.2 binding should be created.
 void setFaultSuffix(String faultSuffix) 
Sets the suffix used to detect fault elements in the schema.
 void setLocationUri(String locationUri) 
Sets the value used for the SOAP Address location attribute value.
 void setPortTypeName(String portTypeName) 
Sets the port type name used for this definition.
 void setRequestSuffix(String requestSuffix) 
Sets the suffix used to detect request elements in the schema.
 void setResponseSuffix(String responseSuffix) 
Sets the suffix used to detect response elements in the schema.
 void setSchema(XsdSchema schema) 
Sets the single XSD schema to inline.
 void setSchemaCollection(XsdSchemaCollection schemaCollection) 
Sets the XSD schema collection to inline.
 void setServiceName(String serviceName) 
Sets the service name.
 void setSoapActions(Properties soapActions) 
Sets the SOAP Actions for this binding.
 void setTargetNamespace(String targetNamespace) 
Sets the target namespace used for this definition.
 void setTransportUri(String transportUri) 
Sets the value used for the binding transport attribute value.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

DefaultWsdl11Definition

public DefaultWsdl11Definition()

Creates a new instance of the DefaultWsdl11Definition.

Method Detail

setTargetNamespace

public void setTargetNamespace(String targetNamespace)

Sets the target namespace used for this definition.

Defaults to the target namespace of the defined schema.


setSchema

public void setSchema(XsdSchema schema)

Sets the single XSD schema to inline. Either this property, or schemaCollection must be set.


setSchemaCollection

public void setSchemaCollection(XsdSchemaCollection schemaCollection)

Sets the XSD schema collection to inline. Either this property, or schema must be set.


setPortTypeName

public void setPortTypeName(String portTypeName)

Sets the port type name used for this definition. Required.


setRequestSuffix

public void setRequestSuffix(String requestSuffix)

Sets the suffix used to detect request elements in the schema.


setResponseSuffix

public void setResponseSuffix(String responseSuffix)

Sets the suffix used to detect response elements in the schema.


setFaultSuffix

public void setFaultSuffix(String faultSuffix)

Sets the suffix used to detect fault elements in the schema.


setCreateSoap11Binding

public void setCreateSoap11Binding(boolean createSoap11Binding)

Indicates whether a SOAP 1.1 binding should be created.

Defaults to true.


setCreateSoap12Binding

public void setCreateSoap12Binding(boolean createSoap12Binding)

Indicates whether a SOAP 1.2 binding should be created.

Defaults to false.


setSoapActions

public void setSoapActions(Properties soapActions)

Sets the SOAP Actions for this binding. Keys are binding operation names; values are SOAP Action URIs.

Parameters:

soapActions - the soap


setTransportUri

public void setTransportUri(String transportUri)

Sets the value used for the binding transport attribute value. Defaults to HTTP.


setLocationUri

public void setLocationUri(String locationUri)

Sets the value used for the SOAP Address location attribute value.


setServiceName

public void setServiceName(String serviceName)

Sets the service name.

Defaults to the port type name, with the suffix Service appended to it.


afterPropertiesSet

public void afterPropertiesSet()throws Exception

Specified by:

afterPropertiesSet in interface InitializingBean

Throws:

Exception


getSource

public Source getSource()

Description copied from interface: WsdlDefinition

Returns the Source of the definition.

Specified by:

getSource in interface WsdlDefinition

Returns:

the Source of this WSDL definition

类DefaultWsdl 11定义中英文对比API文档相关推荐

  1. swagger api文档_带有Swagger的Spring Rest API –公开文档

    swagger api文档 创建API文档后,将其提供给涉众很重要. 在理想情况下,此发布的文档将足够灵活以解决任何最后的更改,并且易于分发(就成本以及完成此操作所需的时间而言). 为了使之成为可能, ...

  2. Java String类Api文档

    String类APi文档 常用方法概述 比较相关 返回值类型 方法名 描述 boolean contentEquals() 将此字符串与指定的 StringBuffer 比较. boolean end ...

  3. java客户端api文档_Java 11:新的HTTP客户端API

    java客户端api文档 在Java 11中,已将最初在Java 9中引入的孵化HTTP客户端API进行了标准化. 它使连接URL,管理请求参数,cookie和会话更加容易,甚至支持异步请求和webs ...

  4. Jmeter API文档-常用类使用方法介绍

    Jmeter本身就集成了一些比较好用的类,可以在脚本开发中辅助使用,具体使用方法可以参考jmeter的API文档.Jmeter工具的API文档存放在工具包的docs/api文件夹中.  1.vars操 ...

  5. FreeMarker中文帮助手册API文档,基础入门学习文档

    FreeMarker中文帮助手册API文档,基础入门学习文档 分类: 编程技术 发布: bywei 浏览: 7 日期: 2011年5月28日 分享到: QQ空间 新浪微博 腾讯微博 人人网 什么是Fr ...

  6. 还在发愁写API文档?推荐一款阿里腾讯都在用的API管理神器!

    欢迎关注方志朋的博客,回复"666"获面试宝典 前言 ❝ 程序员最讨厌的两件事:1. 写文档,2. 别人不写文档.大多数开发人员不愿意写 API 文档的原因:写文档短期收益远低于付 ...

  7. 利用Wireshark和OSS的API文档简单实现上传和下载

    背景及目的 由于各个开发者使用的开发语言可能在官方SDK找不到相应的语言版本,就必须自主开发SDK. 本文根据wireshark和API文档,来简单实现上传和下载的请求,给需要自主开发的开发者提供一个 ...

  8. 转: HighCharts 详细使用及API文档说明

    一.HighCharts开发说明: HighCharts开发实际上配置HighCharts每个部分,比如配置标题(title),副标题(subtitle)等,其中每个部分又有更细的参数配置,比如标题下 ...

  9. SpringBoot2.x整合Swagger2 实现API文档实时生成

    我们提供Restful接口的时候,API文档是尤为的重要,它承载着对接口的定义,描述等,本文主要介绍了SpringBoot集成Swagger2生成接口文档的方法示例,需要的朋友们下面随着小编来一起学习 ...

最新文章

  1. 2019,不可错过的NLP“高光时刻”
  2. nn.embding()使用注意点
  3. WAIC 2021 | 思谋科技刘枢:赋能制造业需要什么样的算法平台?
  4. [翻译]opengl扩展教程2
  5. fixture.detectChange如何通过Angular zone执行其异步逻辑的
  6. 推荐系统可利用的特征
  7. 在AndroidStudio中配置Gradle进行 “动态编译期间,根据远程服务器地址 ,生成多类安装包”
  8. 项目管理工具Redmine各功能测试
  9. 转帖:django下操作数据库的字符问题
  10. mysql有if选择更新_使用IF条件的MySQL更新
  11. java 文件 锁定,Java中的文件锁定
  12. edittext 内容长度
  13. 已知两个向量的坐标求夹角的大小_两个向量的夹角怎么算
  14. RHCSA 知识点汇总
  15. 前端JavaScript DOM BOM 自学复盘 D1(DOM-获取DOM元素、修改HTML标签/表单/css样式属性、定时器-间歇函数)
  16. html背景自动切换带滚动,利用CSS固定背景交替实现视差滚动效果
  17. 同苹果系统游戏服务器,全球同服并且苹果与安卓数据互通又非常好玩的手游大概就这一款了...
  18. 引流虚拟主机和服务器,免费虚拟主机能抢到吗
  19. 最大疯子树-树形dp+换根+二次扫描
  20. 支付宝年账单html5,2018支付宝年账单哪里查?支付宝2018年度账单怎么看

热门文章

  1. inheritance中文Java语言_3.3Java语言面向对象的封装(Encapsulation)、继承(Inheritance)、多态(polymorphic)...
  2. 「后端小伙伴来学前端了」Vue中Props 实现组件通信TodoList案例
  3. python2.7除法_Python中除法使用的注意事项
  4. excel2010设置列宽为像素_vba:如何设置excel图表的宽度和高度(以像素为单位)?...
  5. php interface exists,43、面向对象方法get_object_vars、is_subclass_of、interface_exists
  6. 禁用当前的账户win7_拯救你的win7系统,电脑优化到位,打游戏才会流畅
  7. linux tasklet函数,14.9.5 实例:Tasklet演示
  8. delphi dbgrid 焦点 行号_安庆东进北扩发展超乎想象,谁会成为城市新格局里的人居焦点?...
  9. java 压缩技术_Java压缩技术(三) ZIP解压缩——Java原生实现
  10. python 3.4 vc++编译配置_VS2013+OpenCV3.4.2编译