use of org.springframework.ws.soap.SoapMessage in project camel by apache.
the class BasicMessageFilter method processHeaderAndAttachments.
/**
* If applicable this method adds a SOAP headers and attachments.
*
* @param inOrOut
* @param response
*/
protected void processHeaderAndAttachments(Message inOrOut, WebServiceMessage response) {
if (response instanceof SoapMessage) {
SoapMessage soapMessage = (SoapMessage) response;
processSoapHeader(inOrOut, soapMessage);
doProcessSoapAttachments(inOrOut, soapMessage);
}
}
use of org.springframework.ws.soap.SoapMessage in project camel by apache.
the class AbstractWSATests method newChannelParams.
/**
* Only response is allow using a brand new channel
*
* @return
*/
protected final MessageAddressingProperties newChannelParams() {
assertNotNull(newReply);
assertNotNull(newReply.getMessageContext());
SoapMessage request = (SoapMessage) newReply.getMessageContext().getRequest();
assertNotNull(request);
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties(request);
assertNotNull(wsaProperties);
assertNotNull(wsaProperties.getTo());
return wsaProperties;
}
use of org.springframework.ws.soap.SoapMessage in project camel by apache.
the class AbstractWSATests method sameChannelParams.
/**
* Only response is allow using same channel
*
* @return
*/
protected final MessageAddressingProperties sameChannelParams() {
// we expect the same channel reply
assertNull(newReply.getMessageContext());
assertNotNull(response);
assertNotNull(response.getMessageContext());
SoapMessage soapResponse = (SoapMessage) response.getMessageContext().getResponse();
assertNotNull(soapResponse);
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties(soapResponse);
assertNotNull(wsaProperties);
return wsaProperties;
}
use of org.springframework.ws.soap.SoapMessage in project camel by apache.
the class CamelDirectSenderTest method customChannelParams.
/**
* Only response is allow using a brand custom channel
*
* @return
*/
private MessageAddressingProperties customChannelParams() {
assertNotNull(customChannel);
assertNotNull(customChannel.getMessageContext());
SoapMessage request = (SoapMessage) customChannel.getMessageContext().getRequest();
assertNotNull(request);
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties(request);
assertNotNull(wsaProperties);
assertNotNull(wsaProperties.getTo());
return wsaProperties;
}
use of org.springframework.ws.soap.SoapMessage in project webservices-axiom by apache.
the class TestCreateWebServiceMessage method runTest.
@Override
protected void runTest(SoapMessageFactory messageFactory) {
SoapMessage message = messageFactory.createWebServiceMessage();
SoapEnvelope env = message.getEnvelope();
assertNotNull(env);
assertEquals(spec.getEnvelopeQName(), env.getName());
SoapHeader header = env.getHeader();
assertNotNull(header);
assertEquals(spec.getHeaderQName(), header.getName());
SoapBody body = env.getBody();
assertNotNull(body);
assertEquals(spec.getHeaderQName(), header.getName());
}
Aggregations