use of org.springframework.ws.soap.addressing.version.Addressing10 in project camel by apache.
the class ConsumerWSAEndpointMappingRouteTest method testWSAddressingTo.
@Test
public void testWSAddressingTo() throws Exception {
StreamSource source = new StreamSource(new StringReader(xmlBody));
webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://www.stockquotes.edu/does-not-matter"), new Addressing10(), new URI("http://myUniqueToUrl")), TestUtil.NOOP_SOURCE_EXTRACTOR);
resultEndpointTo.expectedMinimumMessageCount(1);
resultEndpointTo.assertIsSatisfied();
}
use of org.springframework.ws.soap.addressing.version.Addressing10 in project camel by apache.
the class ConsumerWSAEndpointMappingRouteTest method testWSAddressingToAndAction.
@Test
public void testWSAddressingToAndAction() throws Exception {
StreamSource source = new StreamSource(new StringReader(xmlBody));
webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://toAndAction"), new Addressing10(), new URI("http://url3.to")), TestUtil.NOOP_SOURCE_EXTRACTOR);
resultEndpointToAndAction.expectedMinimumMessageCount(1);
resultEndpointToAndAction.assertIsSatisfied();
}
use of org.springframework.ws.soap.addressing.version.Addressing10 in project camel by apache.
the class ConsumerEndpointMappingResponseHandlingRouteTest method testTo.
@Test
public void testTo() throws Exception {
StringWriter sw = new StringWriter();
StreamResult result = new StreamResult(sw);
webServiceTemplate.sendSourceAndReceiveToResult(getDefaultRequestSource(), new ActionCallback(new URI("http://action-does-not-matter-here"), new Addressing10(), new URI("http://url.to")), result);
assertNotNull(result);
TestUtil.assertEqualsIgnoreNewLinesSymbol(expectedResponse, sw.toString());
}
Aggregations