public class MarshallingWebServiceInboundGateway extends AbstractWebServiceInboundGateway
headerMappermessagingTemplatelifecycleCondition, lifecycleLockEXPRESSION_PARSER, logger| Constructor and Description |
|---|
MarshallingWebServiceInboundGateway()
Creates a new
MarshallingWebServiceInboundGateway. |
MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller)
Creates a new
MarshallingWebServiceInboundGateway with the given marshaller. |
MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller,
org.springframework.oxm.Unmarshaller unmarshaller)
Creates a new
MarshallingWebServiceInboundGateway with the given marshaller and unmarshaller. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInvoke(org.springframework.ws.context.MessageContext messageContext) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setMarshaller(org.springframework.oxm.Marshaller marshaller) |
void |
setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller) |
afterShutdown, beforeShutdown, fromSoapHeaders, getComponentType, invoke, setHeaderMapper, toSoapHeadersbuildErrorMessage, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getManagedName, getManagedType, getMessageCount, getMessageCountLong, getReplyChannel, getRequestChannel, isCountsEnabled, isLoggingEnabled, receive, receiveMessage, reset, send, sendAndReceive, sendAndReceiveMessage, setCountsEnabled, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setLoggingEnabled, setManagedName, setManagedType, setReplyChannel, setReplyChannelName, setReplyMapper, setReplyTimeout, setRequestChannel, setRequestChannelName, setRequestMapper, setRequestTimeout, setShouldTrackdoStop, getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic MarshallingWebServiceInboundGateway()
MarshallingWebServiceInboundGateway.
The Marshaller and Unmarshaller must be injected using properties.public MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller)
MarshallingWebServiceInboundGateway with the given marshaller.
The Marshaller must also implement Unmarshaller, since it is used for both marshalling and
unmarshalling.
Note that all Marshaller implementations in Spring-OXM also implement the Unmarshaller
interface, so you can safely use this constructor for any of those implementations.
marshaller - object used as marshaller and unmarshallerjava.lang.IllegalArgumentException - when marshaller does not implement UnmarshallerMarshallingWebServiceInboundGateway(Marshaller, Unmarshaller)public MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller,
org.springframework.oxm.Unmarshaller unmarshaller)
MarshallingWebServiceInboundGateway with the given marshaller and unmarshaller.marshaller - The marshaller.unmarshaller - The unmarshaller.public void setMarshaller(org.springframework.oxm.Marshaller marshaller)
public void setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller)
protected void onInit()
throws java.lang.Exception
IntegrationObjectSupportonInit in class MessagingGatewaySupportjava.lang.Exception - Any exception.protected void doInvoke(org.springframework.ws.context.MessageContext messageContext)
throws java.lang.Exception
doInvoke in class AbstractWebServiceInboundGatewayjava.lang.Exception