diff --git a/core/src/main/java/org/springframework/ws/soap/client/core/SoapActionCallback.java b/core/src/main/java/org/springframework/ws/soap/client/core/SoapActionCallback.java index 66a01077..dc054e1c 100644 --- a/core/src/main/java/org/springframework/ws/soap/client/core/SoapActionCallback.java +++ b/core/src/main/java/org/springframework/ws/soap/client/core/SoapActionCallback.java @@ -27,11 +27,12 @@ import org.springframework.ws.soap.SoapMessage; *
* A usage example with {@link org.springframework.ws.client.core.WebServiceTemplate}: *
- * WebServiceTemplate template = new WebServiceTemplate(messageFactory, messageSender);
- * Source result = template.sendAndReceive(
+ * WebServiceTemplate template = new WebServiceTemplate(messageFactory);
+ * Result result = new DOMResult();
+ * template.sendAndReceive(
* new StringSource("<content xmlns=\"http://tempuri.org\"/>"),
- * new SoapActionCallback("http://tempuri.org/SOAPAction")
- * );
+ * new SoapActionCallback("http://tempuri.org/SOAPAction"),
+ * result);
*
*
* @author Arjen Poutsma