use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class AbstractConsumerTests method onlyCustomOutputSpecified4output.
@Test
public void onlyCustomOutputSpecified4output() throws Exception {
ActionCallback requestCallback = channelIn("http://uriOutputOnly-ok.com/");
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://customURIOutputAction"));
}
use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class AbstractConsumerTests method defaultAction4fault.
@Test
public void defaultAction4fault() throws Exception {
ActionCallback requestCallback = channelIn("http://default-fault.com/");
try {
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
} catch (SoapFaultClientException e) {
// ok - cause fault response
}
Assertions.assertThat(channelOut().getAction()).isEqualTo(getDefaultResponseAction());
}
use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class AbstractConsumerTests method defaultAction4ouput.
@Test
public void defaultAction4ouput() throws Exception {
ActionCallback requestCallback = channelIn("http://default-ok.com/");
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
Assertions.assertThat(channelOut().getAction()).isEqualTo(getDefaultResponseAction());
}
use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class AbstractConsumerTests method headerAction4fault.
@Test
@Ignore(value = "Not implemented yet")
public void headerAction4fault() throws Exception {
ActionCallback requestCallback = channelIn("http://headerOnly-fault.com");
try {
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
} catch (SoapFaultClientException e) {
// ok - cause fault response
}
Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://faultHeader.com"));
}
use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class AbstractConsumerTests method overrideHeaderAction4output.
@Test
@Ignore(value = "Not implemented yet")
public void overrideHeaderAction4output() throws Exception {
ActionCallback requestCallback = channelIn("http://override-ok.com");
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://outputHeader.com"));
}
Aggregations