From 98909a6dc58b6bb04726991f634ebc31a43594fa Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Fri, 25 Jun 2010 13:30:55 +0000 Subject: [PATCH] INT-1218 updated http adapter doc now that expectedResponseType is null by default --- src/docbkx/http.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/docbkx/http.xml b/src/docbkx/http.xml index 61919d2697..511fffe24e 100644 --- a/src/docbkx/http.xml +++ b/src/docbkx/http.xml @@ -111,7 +111,9 @@ By default the HTTP request will be generated using an instance of Si To configure the outbound gateway you can use the namespace support as well. The following code snippet shows the different configuration options for an outbound Http gateway. Most importantly, notice that the 'http-method' and 'expected-response-type' are provided. Those are two of the most commonly configured values. The - default http-method is POST, and the default response type is a byte array (byte[]). + default http-method is POST, and the default response type is null. With a null response type, the payload of the reply Message would only + contain the status code (e.g. 200) as long as it's a successful status (non-successful status codes will throw Exceptions). If you are expecting a different + type, such as a String, then provide that fully-qualified class name as shown below.