use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class AbstractConsumerTests method onlyCustomOutputSpecified4fault.
@Test
public void onlyCustomOutputSpecified4fault() throws Exception {
ActionCallback requestCallback = channelIn("http://uriOutputOnly-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 onlyCustomFaultSpecified4fault.
@Test
public void onlyCustomFaultSpecified4fault() throws Exception {
ActionCallback requestCallback = channelIn("http://uriFaultOnly-fault.com/");
try {
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
} catch (SoapFaultClientException e) {
// ok - cause fault response
}
Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://customURIFaultAction"));
}
use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class AbstractConsumerTests method overrideHeaderAction4fault.
@Test
@Ignore(value = "Not implemented yet")
public void overrideHeaderAction4fault() throws Exception {
ActionCallback requestCallback = channelIn("http://override-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 customAction4output.
@Test
public void customAction4output() throws Exception {
ActionCallback requestCallback = channelIn("http://uri-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 customAction4fault.
@Test
public void customAction4fault() throws Exception {
ActionCallback requestCallback = channelIn("http://uri-fault.com");
try {
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
} catch (SoapFaultClientException e) {
// ok - cause fault response
}
Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://customURIFaultAction"));
}
Aggregations