Skip to content

Commit faaae2d

Browse files
author
Arjen Poutsma
committed
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
1 parent 18717fa commit faaae2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/java/org/springframework/ws/client/core/WebServiceTemplate.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ public WebServiceTemplate(Marshaller marshaller) {
164164
this.setMarshaller(marshaller);
165165
this.setUnmarshaller((Unmarshaller) marshaller);
166166
}
167+
initDefaultStrategies();
167168
}
168169

169170
/**
@@ -178,6 +179,7 @@ public WebServiceTemplate(Marshaller marshaller, Unmarshaller unmarshaller) {
178179
Assert.notNull(unmarshaller, "unmarshaller must not be null");
179180
this.setMarshaller(marshaller);
180181
this.setUnmarshaller(unmarshaller);
182+
initDefaultStrategies();
181183
}
182184

183185
/** Returns the default URI to be used on operations that do not have a URI parameter. */

0 commit comments

Comments
 (0)