public class MarshallingWebServiceInboundGateway extends AbstractWebServiceInboundGateway
headerMapper
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) |
fromSoapHeaders, getComponentType, invoke, setHeaderMapper, toSoapHeaders
doStart, doStop, receive, send, sendAndReceive, sendAndReceiveMessage, setErrorChannel, setReplyChannel, setReplyMapper, setReplyTimeout, setRequestChannel, setRequestMapper, setRequestTimeout, setShouldTrack
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
public 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 Unmarshaller
MarshallingWebServiceInboundGateway(Marshaller, Unmarshaller)
public MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller)
MarshallingWebServiceInboundGateway
with the given marshaller and unmarshaller.public void setMarshaller(org.springframework.oxm.Marshaller marshaller)
public void setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller)
protected void onInit() throws java.lang.Exception
IntegrationObjectSupport
onInit
in class MessagingGatewaySupport
java.lang.Exception
protected void doInvoke(org.springframework.ws.context.MessageContext messageContext) throws java.lang.Exception
doInvoke
in class AbstractWebServiceInboundGateway
java.lang.Exception