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 76177d7b..10e8e5fe 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
@@ -64,24 +64,35 @@ import org.springframework.ws.transport.support.DefaultStrategiesHelper;
* FaultMessageResolver} can be defined with with {@link #setFaultMessageResolver(FaultMessageResolver)
* faultMessageResolver} property. If this property is set to null, no fault resolving is performed.
*
- * This template uses the following algorithm for sending and receiving. - Call to {@link
- * #createConnection(String) createConnection()}.
- Call to {@link WebServiceMessageFactory#createWebServiceMessage()
- * createWebServiceMessage()} on the registered message factory to create a request message.
- Invoke {@link
- * WebServiceMessageCallback#doWithMessage(WebServiceMessage) doWithMessage()} on the request callback, if any. This
- * step stores content in the request message, based on
Source, marshalling, etc. - Call {@link
- * WebServiceConnection#send(WebServiceMessage) send()} on the connection.
- Call {@link
- * #hasError(WebServiceConnection,WebServiceMessage) hasError()} to check if the connection has an error. For an HTTP
- * transport, a status code other than
2xx indicates an error. However, since a status code of 500 can also
- * indicate a SOAP fault, the template verifies whether the error is not a fault. - If the connection has an
- * error, call the {@link #handleError handleError()} method, which by default throws a {@link
- * WebServiceTransportException}.
- If the connection has no error, continue with the next step.
- Invoke
- * {@link WebServiceConnection#receive(WebServiceMessageFactory) receive} on the connection to read the response
- * message, if any.
- If no response was received, return
null or false
- * - Call {@link #hasFault(WebServiceConnection,WebServiceMessage) hasFault()} to determine whether the response has
- * a fault. If it has, call the {@link #handleFault handleFault()} method.
- Otherwise, invoke {@link
- * WebServiceMessageExtractor#extractData(WebServiceMessage) extractData()} on the response extractor, or {@link
- * WebServiceMessageCallback#doWithMessage(WebServiceMessage) doWithMessage} on the response callback.
- * - Call to {@link WebServiceConnection#close() close} on the connection.
+ * This template uses the following algorithm for sending and receiving.
+ *
+ * - Call to {@link #createConnection(String) createConnection()}.
+ * - Call to {@link WebServiceMessageFactory#createWebServiceMessage() createWebServiceMessage()} on the registered
+ * message factory to create a request message.
+ * - Invoke {@link WebServiceMessageCallback#doWithMessage(WebServiceMessage) doWithMessage()} on the request
+ * callback, if any. This step stores content in the request message, based on
Source, marshalling,
+ * etc.
+ * - Call {@link WebServiceConnection#send(WebServiceMessage) send()} on the connection.
+ * - Call {@link #hasError(WebServiceConnection, WebServiceMessage) hasError()} to check if the connection has an
+ * error. For an HTTP transport, a status code other than
2xx indicates an error. However, since a
+ * status code of 500 can also indicate a SOAP fault, the template verifies whether the error is not a fault.
+ *
+ * - If the connection has an error, call the {@link #handleError handleError()} method, which by default throws a
+ * {@link WebServiceTransportException}.
+ * - If the connection has no error, continue with the next step.
+ *
+ * - Invoke {@link WebServiceConnection#receive(WebServiceMessageFactory) receive} on the connection to read the
+ * response message, if any.
+ *
+ * - If no response was received, return
null or false
+ * - Call {@link #hasFault(WebServiceConnection, WebServiceMessage) hasFault()} to determine whether the response
+ * has a fault. If it has, call the {@link #handleFault handleFault()} method.
+ * - Otherwise, invoke {@link WebServiceMessageExtractor#extractData(WebServiceMessage) extractData()} on the
+ * response extractor, or {@link WebServiceMessageCallback#doWithMessage(WebServiceMessage) doWithMessage} on
+ * the response callback.
+ *
+ * - Call to {@link WebServiceConnection#close() close} on the connection.
+ *
*
* @author Arjen Poutsma
*/
@@ -280,15 +291,15 @@ public class WebServiceTemplate extends WebServiceAccessor implements WebService
}
public boolean sendSourceAndReceiveToResult(Source requestPayload,
- WebServiceMessageCallback requestCallback,
- final Result responseResult) {
+ WebServiceMessageCallback requestCallback,
+ final Result responseResult) {
return sendSourceAndReceiveToResult(getDefaultUri(), requestPayload, requestCallback, responseResult);
}
public boolean sendSourceAndReceiveToResult(String uri,
- Source requestPayload,
- WebServiceMessageCallback requestCallback,
- final Result responseResult) {
+ Source requestPayload,
+ WebServiceMessageCallback requestCallback,
+ final Result responseResult) {
try {
final Transformer transformer = createTransformer();
Boolean retVal = (Boolean) doSendAndReceive(uri, transformer, requestPayload, requestCallback,
@@ -314,22 +325,20 @@ public class WebServiceTemplate extends WebServiceAccessor implements WebService
return sendSourceAndReceive(requestPayload, null, responseExtractor);
}
- public Object sendSourceAndReceive(String uri,
- final Source requestPayload,
- final SourceExtractor responseExtractor) {
+ public Object sendSourceAndReceive(String uri, final Source requestPayload, final SourceExtractor responseExtractor) {
return sendSourceAndReceive(uri, requestPayload, null, responseExtractor);
}
public Object sendSourceAndReceive(final Source requestPayload,
- final WebServiceMessageCallback requestCallback,
- final SourceExtractor responseExtractor) {
+ final WebServiceMessageCallback requestCallback,
+ final SourceExtractor responseExtractor) {
return sendSourceAndReceive(getDefaultUri(), requestPayload, requestCallback, responseExtractor);
}
public Object sendSourceAndReceive(String uri,
- final Source requestPayload,
- final WebServiceMessageCallback requestCallback,
- final SourceExtractor responseExtractor) {
+ final Source requestPayload,
+ final WebServiceMessageCallback requestCallback,
+ final SourceExtractor responseExtractor) {
try {
return doSendAndReceive(uri, createTransformer(), requestPayload, requestCallback, responseExtractor);