use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class ConsumerWSAEndpointMappingRouteTest method testWSAddressingResolveActionMoreSpecif.
@Test
public void testWSAddressingResolveActionMoreSpecif() throws Exception {
StreamSource source = new StreamSource(new StringReader(xmlBody));
webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://action2"), new Addressing10(), new URI("http://url2.to")), TestUtil.NOOP_SOURCE_EXTRACTOR);
resultEndpointToMoreSpecific.expectedMinimumMessageCount(0);
resultEndpointToMoreSpecific.assertIsSatisfied();
resultEndpointActionMoreSpecific.expectedMinimumMessageCount(1);
resultEndpointActionMoreSpecific.assertIsSatisfied();
}
use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class ConsumerWSAEndpointMappingRouteTest method testWSAddressingActionResponseActions.
@Test
public void testWSAddressingActionResponseActions() throws Exception {
StreamSource source = new StreamSource(new StringReader(xmlBody));
webServiceTemplate.sendSourceAndReceive(source, new ActionCallback("http://www.stockquotes.edu/WSAddresingActionReply"), TestUtil.NOOP_SOURCE_EXTRACTOR);
resultOutputAndFault.expectedMinimumMessageCount(1);
resultOutputAndFault.assertIsSatisfied();
}
use of org.springframework.ws.soap.addressing.client.ActionCallback 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.client.ActionCallback 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.client.ActionCallback 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