From faaae2d05243d83bd661a7990c72c479b868dfe9 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Mon, 19 Aug 2013 13:22:25 +0200 Subject: [PATCH] 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 --- .../org/springframework/ws/client/core/WebServiceTemplate.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/org/springframework/ws/client/core/WebServiceTemplate.java b/core/src/main/java/org/springframework/ws/client/core/WebServiceTemplate.java index a95ff4dd..bbb0a5af 100644 --- a/core/src/main/java/org/springframework/ws/client/core/WebServiceTemplate.java +++ b/core/src/main/java/org/springframework/ws/client/core/WebServiceTemplate.java @@ -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. */