use of org.springframework.ws.soap.addressing.version.Addressing10 in project camel by apache.
the class ConsumerWSAEndpointMappingRouteTest method testWSAddressingActionAndTo.
@Test
public void testWSAddressingActionAndTo() throws Exception {
StreamSource source = new StreamSource(new StringReader(xmlBody));
webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://actionAndTo"), new Addressing10(), new URI("http://url4.to")), TestUtil.NOOP_SOURCE_EXTRACTOR);
resultEndpointActionAndTo.expectedMinimumMessageCount(1);
resultEndpointActionAndTo.assertIsSatisfied();
}
use of org.springframework.ws.soap.addressing.version.Addressing10 in project camel by apache.
the class ConsumerWSAEndpointMappingRouteTest method testWSAddressingToResponseActions.
@Test
public void testWSAddressingToResponseActions() throws Exception {
StreamSource source = new StreamSource(new StringReader(xmlBody));
webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://doesn-not-matter.com"), new Addressing10(), new URI("http://urlOutputAndFault2.to")), TestUtil.NOOP_SOURCE_EXTRACTOR);
resultOutputAndFault2.expectedMinimumMessageCount(1);
resultOutputAndFault2.assertIsSatisfied();
}
use of org.springframework.ws.soap.addressing.version.Addressing10 in project camel by apache.
the class AbstractWSATests method toAndReplyTo.
/**
* Creates WS-Addressing To and ReplyTo param for request
*
* @param action
* @param replyTo
* @return
* @throws URISyntaxException
*/
protected final ActionCallback toAndReplyTo(String to, String replyTo) throws URISyntaxException {
requestInputAction = "http://doesn-not-matter.com";
ActionCallback requestCallback = new ActionCallback(new URI(requestInputAction), new Addressing10(), new URI(to));
if (replyTo != null) {
requestCallback.setReplyTo(new EndpointReference(new URI(replyTo)));
}
return requestCallback;
}
use of org.springframework.ws.soap.addressing.version.Addressing10 in project camel by apache.
the class ConsumerWSAEndpointMappingRouteTest method testWSAddressingResolveToMoreSpecif.
@Test
public void testWSAddressingResolveToMoreSpecif() throws Exception {
StreamSource source = new StreamSource(new StringReader(xmlBody));
webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://action1"), new Addressing10(), new URI("http://url1.to")), TestUtil.NOOP_SOURCE_EXTRACTOR);
resultEndpointToMoreSpecific.expectedMinimumMessageCount(1);
resultEndpointToMoreSpecific.assertIsSatisfied();
resultEndpointActionMoreSpecific.expectedMinimumMessageCount(0);
resultEndpointActionMoreSpecific.assertIsSatisfied();
}
use of org.springframework.ws.soap.addressing.version.Addressing10 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();
}
Aggregations