So I see
Code:
public void doWithMessage(WebServiceMessage request) throws IOException, TransformerException {
MarshallingUtils.marshal(getMarshaller(), requestPayload, request);
if (requestCallback != null) {
requestCallback.doWithMessage(request);
}
}
@line 258 in WebServiceTemplate. So really I have to do is something to the affect of:
Code:
private List<Marshaller> marshallers;
private List<Unmarshaller> unmarshallers;
...
public void doWithMessage(WebServiceMessage request) throws IOException, TransformerException {
for (Marshaller marshaller : marshallers) {
MarshallingUtils.marshal(marshaller, requestPayload, request);
if (requestCallback != null) {
requestCallback.doWithMessage(request);
}
}
And the same for the unmarshallers. Is this right?