// Spring-WS defaults
WebServiceTemplate webServiceTemplate = resolveAndRemoveReferenceParameter(parameters,
"webServiceTemplate", WebServiceTemplate.class, new WebServiceTemplate());
WebServiceMessageSender messageSender = resolveAndRemoveReferenceParameter(parameters,
"messageSender", WebServiceMessageSender.class, null);
WebServiceMessageFactory messageFactory = resolveAndRemoveReferenceParameter(parameters,
"messageFactory", WebServiceMessageFactory.class, null);
if (webServiceTemplate.getDefaultUri() == null) {
webServiceTemplate.setDefaultUri(webServiceEndpointUri.toString());
}