Package org.citrusframework.jms.message
Class SoapJmsMessageConverter
java.lang.Object
org.citrusframework.jms.message.JmsMessageConverter
org.citrusframework.jms.message.SoapJmsMessageConverter
- All Implemented Interfaces:
InitializingPhase,MessageConverter<jakarta.jms.Message,,jakarta.jms.Message, JmsEndpointConfiguration> ReferenceResolverAware
public class SoapJmsMessageConverter
extends JmsMessageConverter
implements InitializingPhase, ReferenceResolverAware
Special message converter automatically adds SOAP envelope with proper SOAP header and body elements.
For incoming messages automatically removes SOAP envelope so message only contains SOAP body as message payload.
Converter also takes care on special SOAP message headers such as SOAP action.
- Since:
- 2.0
- Author:
- Christoph Deppisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertInbound(jakarta.jms.Message jmsMessage, JmsEndpointConfiguration endpointConfiguration, TestContext context) jakarta.jms.MessagecreateJmsMessage(Message message, jakarta.jms.Session session, JmsEndpointConfiguration endpointConfiguration, TestContext context) Creates JMS message instance from internal message representation.Gets the value of the jmsSoapActionHeader property.org.springframework.ws.soap.SoapMessageFactoryGets the soapMessageFactory.voidvoidsetJmsSoapActionHeader(String jmsSoapActionHeader) Sets the jmsSoapActionHeader property.voidsetReferenceResolver(ReferenceResolver referenceResolver) voidsetSoapMessageFactory(org.springframework.ws.soap.SoapMessageFactory soapMessageFactory) Sets the soapMessageFactory.Methods inherited from class org.citrusframework.jms.message.JmsMessageConverter
convertOutbound, convertOutbound
-
Constructor Details
-
SoapJmsMessageConverter
public SoapJmsMessageConverter()
-
-
Method Details
-
convertInbound
public Message convertInbound(jakarta.jms.Message jmsMessage, JmsEndpointConfiguration endpointConfiguration, TestContext context) - Specified by:
convertInboundin interfaceMessageConverter<jakarta.jms.Message,jakarta.jms.Message, JmsEndpointConfiguration> - Overrides:
convertInboundin classJmsMessageConverter
-
createJmsMessage
public jakarta.jms.Message createJmsMessage(Message message, jakarta.jms.Session session, JmsEndpointConfiguration endpointConfiguration, TestContext context) Description copied from class:JmsMessageConverterCreates JMS message instance from internal message representation. According to message payload type the JMS session creates related JMS message type such as TextMessage, MapMessage, ObjectMessage or BytesMessage.- Overrides:
createJmsMessagein classJmsMessageConverter- Returns:
-
setJmsSoapActionHeader
Sets the jmsSoapActionHeader property.- Parameters:
jmsSoapActionHeader-
-
getJmsSoapActionHeader
Gets the value of the jmsSoapActionHeader property.- Returns:
- the jmsSoapActionHeader
-
initialize
public void initialize()- Specified by:
initializein interfaceInitializingPhase
-
setReferenceResolver
- Specified by:
setReferenceResolverin interfaceReferenceResolverAware
-
getSoapMessageFactory
public org.springframework.ws.soap.SoapMessageFactory getSoapMessageFactory()Gets the soapMessageFactory.- Returns:
-
setSoapMessageFactory
public void setSoapMessageFactory(org.springframework.ws.soap.SoapMessageFactory soapMessageFactory) Sets the soapMessageFactory.- Parameters:
soapMessageFactory-
-