Class SpringWebserviceConfiguration
java.lang.Object
org.apache.camel.component.spring.ws.SpringWebserviceConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringorg.springframework.ws.WebServiceMessageFactoryorg.springframework.ws.soap.addressing.messageid.MessageIdStrategyorg.springframework.ws.transport.WebServiceMessageSenderorg.apache.camel.support.jsse.SSLContextParametersintorg.springframework.ws.client.core.WebServiceTemplateorg.springframework.xml.xpath.XPathExpressionbooleanbooleanvoidsetAllowResponseAttachmentOverride(boolean allowResponseAttachmentOverride) Option to override soap response attachments in in/out exchange with attachments from the actual service layer.voidsetAllowResponseHeaderOverride(boolean allowResponseHeaderOverride) Option to override soap response header in in/out exchange with header info from the actual service layer.voidsetEndpointDispatcher(CamelEndpointDispatcher endpointDispatcher) SpringMessageEndpointfor dispatching messages received by Spring-WS to a Camel endpoint, to integrate with existing (legacy) endpoint mappings like PayloadRootQNameEndpointMapping, SoapActionEndpointMapping, etc.voidsetEndpointMapping(CamelSpringWSEndpointMapping endpointMapping) Reference to an instance of org.apache.camel.component.spring.ws.bean.CamelEndpointMapping in the Registry/ApplicationContext.voidsetEndpointMappingLookupKey(String endpointMappingLookupKey) Endpoint mapping key if endpoint mapping is usedvoidsetEndpointMappingType(EndpointMappingType endpointMappingType) Endpoint mapping type if endpoint mapping is used.voidsetExpression(String expression) The XPath expression to use when option type=xpathresult.voidsetFaultAction(String fault) Signifies the value for the faultAction response WS-AddressingFault Actionheader that is provided by the method.voidsetFaultAction(URI fault) Signifies the value for the faultAction response WS-AddressingFault Actionheader that is provided by the method.voidsetFaultTo(String faultTo) Signifies the value for the faultAction response WS-AddressingFaultToheader that is provided by the method.voidsetFaultTo(URI faultTo) Signifies the value for the faultAction response WS-AddressingFaultToheader that is provided by the method.voidsetMessageFactory(org.springframework.ws.WebServiceMessageFactory messageFactory) Option to provide a custom WebServiceMessageFactory.voidsetMessageFilter(MessageFilter messageFilter) Option to provide a custom MessageFilter.voidsetMessageIdStrategy(org.springframework.ws.soap.addressing.messageid.MessageIdStrategy messageIdStrategy) Option to provide a custom MessageIdStrategy to control generation of WS-Addressing unique message ids.voidsetMessageSender(org.springframework.ws.transport.WebServiceMessageSender messageSender) Option to provide a custom WebServiceMessageSender.voidsetOutputAction(String output) voidsetOutputAction(URI outputAction) Signifies the value for the response WS-AddressingActionheader that is provided by the method.voidsetReplyTo(String replyToAction) Signifies the value for the replyTo response WS-AddressingReplyToheader that is provided by the method.voidsetReplyTo(URI replyToAction) Signifies the value for the replyTo response WS-AddressingReplyToheader that is provided by the method.voidsetSoapAction(String soapAction) SOAP action to include inside a SOAP request when accessing remote web servicesvoidsetSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) To configure security using SSLContextParametersvoidsetTimeout(int timeout) Sets the socket read timeout (in milliseconds) while invoking a webservice using the producer, see URLConnection.setReadTimeout() and CommonsHttpMessageSender.setReadTimeout().voidsetWebServiceEndpointUri(String webServiceEndpointUri) The default Web Service endpoint uri to use for the producer.voidsetWebServiceTemplate(org.springframework.ws.client.core.WebServiceTemplate webServiceTemplate) Option to provide a custom WebServiceTemplate.voidsetWsAddressingAction(String wsAddressingAction) voidsetWsAddressingAction(URI wsAddressingAction) WS-Addressing 1.0 action header to include when accessing web services.voidsetxPathExpression(org.springframework.xml.xpath.XPathExpression xPathExpression)
-
Constructor Details
-
SpringWebserviceConfiguration
public SpringWebserviceConfiguration()
-
-
Method Details
-
getWebServiceTemplate
public org.springframework.ws.client.core.WebServiceTemplate getWebServiceTemplate() -
setWebServiceTemplate
public void setWebServiceTemplate(org.springframework.ws.client.core.WebServiceTemplate webServiceTemplate) Option to provide a custom WebServiceTemplate. This allows for full control over client-side web services handling; like adding a custom interceptor or specifying a fault resolver, message sender or message factory. -
getMessageFactory
public org.springframework.ws.WebServiceMessageFactory getMessageFactory() -
setMessageFactory
public void setMessageFactory(org.springframework.ws.WebServiceMessageFactory messageFactory) Option to provide a custom WebServiceMessageFactory. -
getWebServiceEndpointUri
-
setWebServiceEndpointUri
The default Web Service endpoint uri to use for the producer. -
getSoapAction
-
setSoapAction
SOAP action to include inside a SOAP request when accessing remote web services -
getEndpointUri
-
getWsAddressingAction
-
setWsAddressingAction
WS-Addressing 1.0 action header to include when accessing web services. The To header is set to the address of the web service as specified in the endpoint URI (default Spring-WS behavior). -
setWsAddressingAction
- Throws:
URISyntaxException
-
getTimeout
public int getTimeout() -
setTimeout
public void setTimeout(int timeout) Sets the socket read timeout (in milliseconds) while invoking a webservice using the producer, see URLConnection.setReadTimeout() and CommonsHttpMessageSender.setReadTimeout(). This option works when using the built-in message sender implementations: CommonsHttpMessageSender and HttpUrlConnectionMessageSender. One of these implementations will be used by default for HTTP based services unless you customize the Spring WS configuration options supplied to the component. If you are using a non-standard sender, it is assumed that you will handle your own timeout configuration. The built-in message sender HttpComponentsMessageSender is considered instead of CommonsHttpMessageSender which has been deprecated, see HttpComponentsMessageSender.setReadTimeout(). -
getEndpointMapping
-
setEndpointMapping
Reference to an instance of org.apache.camel.component.spring.ws.bean.CamelEndpointMapping in the Registry/ApplicationContext. Only one bean is required in the registry to serve all Camel/Spring-WS endpoints. This bean is auto-discovered by the MessageDispatcher and used to map requests to Camel endpoints based on characteristics specified on the endpoint (like root QName, SOAP action, etc) -
getEndpointMappingKey
-
getEndpointMappingType
-
setEndpointMappingType
Endpoint mapping type if endpoint mapping is used.- rootqname - Offers the option to map web service requests based on the qualified name of the root element contained in the message.
- soapaction - Used to map web service requests based on the SOAP action specified in the header of the message.
- uri - In order to map web service requests that target a specific URI.
- xpathresult - Used to map web service requests based on the evaluation of an XPath expression against the incoming message. The result of the evaluation should match the XPath result specified in the endpoint URI.
- beanname - Allows you to reference an org.apache.camel.component.spring.ws.bean.CamelEndpointDispatcher object in order to integrate with existing (legacy) endpoint mappings like PayloadRootQNameEndpointMapping, SoapActionEndpointMapping, etc
-
getEndpointMappingLookupKey
-
setEndpointMappingLookupKey
Endpoint mapping key if endpoint mapping is used -
getExpression
-
setExpression
The XPath expression to use when option type=xpathresult. Then this option is required to be configured. -
getxPathExpression
public org.springframework.xml.xpath.XPathExpression getxPathExpression() -
setxPathExpression
public void setxPathExpression(org.springframework.xml.xpath.XPathExpression xPathExpression) -
getSslContextParameters
public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters() -
setSslContextParameters
public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) To configure security using SSLContextParameters -
getEndpointDispatcher
-
setEndpointDispatcher
SpringMessageEndpointfor dispatching messages received by Spring-WS to a Camel endpoint, to integrate with existing (legacy) endpoint mappings like PayloadRootQNameEndpointMapping, SoapActionEndpointMapping, etc. -
encode
-
decode
-
setMessageFilter
Option to provide a custom MessageFilter. For example when you want to process your headers or attachments by your own. -
getMessageFilter
-
getOutputAction
-
setOutputAction
Signifies the value for the response WS-AddressingActionheader that is provided by the method. See org.springframework.ws.soap.addressing.server.annotation.Action annotation for more details. -
setOutputAction
- Throws:
URISyntaxException
-
getFaultAction
-
setFaultAction
Signifies the value for the faultAction response WS-AddressingFault Actionheader that is provided by the method. See org.springframework.ws.soap.addressing.server.annotation.Action annotation for more details.- Throws:
URISyntaxException
-
setFaultAction
Signifies the value for the faultAction response WS-AddressingFault Actionheader that is provided by the method. See org.springframework.ws.soap.addressing.server.annotation.Action annotation for more details. -
getFaultTo
-
setFaultTo
Signifies the value for the faultAction response WS-AddressingFaultToheader that is provided by the method. See org.springframework.ws.soap.addressing.server.annotation.Action annotation for more details.- Throws:
URISyntaxException
-
setFaultTo
Signifies the value for the faultAction response WS-AddressingFaultToheader that is provided by the method. See org.springframework.ws.soap.addressing.server.annotation.Action annotation for more details. -
getReplyTo
-
setReplyTo
Signifies the value for the replyTo response WS-AddressingReplyToheader that is provided by the method. See org.springframework.ws.soap.addressing.server.annotation.Action annotation for more details.- Throws:
URISyntaxException
-
setReplyTo
Signifies the value for the replyTo response WS-AddressingReplyToheader that is provided by the method. See org.springframework.ws.soap.addressing.server.annotation.Action annotation for more details. -
getMessageSender
public org.springframework.ws.transport.WebServiceMessageSender getMessageSender() -
setMessageSender
public void setMessageSender(org.springframework.ws.transport.WebServiceMessageSender messageSender) Option to provide a custom WebServiceMessageSender. For example to perform authentication or use alternative transports -
getMessageIdStrategy
public org.springframework.ws.soap.addressing.messageid.MessageIdStrategy getMessageIdStrategy() -
setMessageIdStrategy
public void setMessageIdStrategy(org.springframework.ws.soap.addressing.messageid.MessageIdStrategy messageIdStrategy) Option to provide a custom MessageIdStrategy to control generation of WS-Addressing unique message ids. -
isAllowResponseHeaderOverride
public boolean isAllowResponseHeaderOverride() -
setAllowResponseHeaderOverride
public void setAllowResponseHeaderOverride(boolean allowResponseHeaderOverride) Option to override soap response header in in/out exchange with header info from the actual service layer. If the invoked service appends or rewrites the soap header this option when set to true, allows the modified soap header to be overwritten in in/out message headers -
isAllowResponseAttachmentOverride
public boolean isAllowResponseAttachmentOverride() -
setAllowResponseAttachmentOverride
public void setAllowResponseAttachmentOverride(boolean allowResponseAttachmentOverride) Option to override soap response attachments in in/out exchange with attachments from the actual service layer. If the invoked service appends or rewrites the soap attachments this option when set to true, allows the modified soap attachments to be overwritten in in/out message attachments
-