Initialize defaults in WebServiceTemplate constrs

Make sure that initDefaultStrategies is called from all
WebServiceTempalte constructors, including the ones that take
(Un)Marhsaller as arguments.

Issue: SWS-844
This commit is contained in:
Arjen Poutsma
2013-08-19 13:22:25 +02:00
parent 18717fa4d0
commit faaae2d052

View File

@@ -164,6 +164,7 @@ public class WebServiceTemplate extends WebServiceAccessor implements WebService
this.setMarshaller(marshaller);
this.setUnmarshaller((Unmarshaller) marshaller);
}
initDefaultStrategies();
}
/**
@@ -178,6 +179,7 @@ public class WebServiceTemplate extends WebServiceAccessor implements WebService
Assert.notNull(unmarshaller, "unmarshaller must not be null");
this.setMarshaller(marshaller);
this.setUnmarshaller(unmarshaller);
initDefaultStrategies();
}
/** Returns the default URI to be used on operations that do not have a URI parameter. */