private static class WebServiceCallConfiguration implements Configuration {
@Override
public void configure(Transformation tx, ContentProviderContext context) {
WebServicePipelineBrowser browser = new WebServicePipelineBrowser(context.getPipeline());
WebServiceCall wsCall = browser.getWebServiceCall();
if (wsCall == null) {
return;
}
PipelineActivity activity = context.getActivity();
if (activity == browser.getRequestActivity()) {
configureRequest(tx, wsCall);
} else if (activity == browser.getResponseActivity()) {
configureResponse(tx, wsCall);
// TODO: Check if the first Transformation has been set, and use its output
// structure as input structure (if possible - DB structures, for example, would
// not work.) Make sure we are consistent with the validation rules.
}