类DefaultWsdl 11定义中英文对比API文档
場景
官方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綁定。代表出席InliningXsdSchemaTypesProvider,?DefaultMessagesProvider,?SuffixBasedPortTypesProvider,?SoapProvider實際上相當于使用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)? 設置綁定傳輸屬性值的值。 |
?
| 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?InliningXsdSchemaTypesProvider,?DefaultMessagesProvider,?SuffixBasedPortTypesProvider,?SoapProvider?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>?
| DefaultWsdl11Definition()? Creates a new instance of the?DefaultWsdl11Definition. |
?
| ?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. |
?
| clone,?equals,?finalize,?getClass,?hashCode,?notify,?notifyAll,?toString,?wait,?wait,?wait |
?
?
DefaultWsdl11Definition
public DefaultWsdl11Definition()Creates a new instance of the?DefaultWsdl11Definition.
?
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 ExceptionSpecified 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
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的类DefaultWsdl 11定义中英文对比API文档的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MybatisPlus提示 Could
- 下一篇: SpringBoot整合spring-w