From 642281dc89f953c3666dc4405e4d3a3f3da9b239 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Tue, 13 Nov 2007 19:43:22 +0000 Subject: [PATCH] SWS-139: mail support --- src/docbkx/client.xml | 98 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 95 insertions(+), 3 deletions(-) diff --git a/src/docbkx/client.xml b/src/docbkx/client.xml index de993540..517c7289 100644 --- a/src/docbkx/client.xml +++ b/src/docbkx/client.xml @@ -61,6 +61,37 @@ http://example.com/services, or supply the uri parameter for one of the methods. + + The following example shows how the default configuration can be used for HTTP transports: + + + + + + + + + +]]> + + + The folowing example shows how override the default configuration, and to use Commons Http to + authenticate using HTTP authentication: + + + + + + + + + + + + + +]]> +
JMS transport @@ -74,7 +105,7 @@ To use the JmsMessageSender, you need to set the - defaultUri or uri to a JMS URI, which - at a + defaultUri or uri parameter to a JMS URI, which - at a minimum - consists of the jms: prefix and a destination name. Some examples of JMS URIs are: jms:SomeQueue, jms:SomeTopic?priority=3&deliveryMode=NON_PERSISTENT, and @@ -82,6 +113,67 @@ For more information on this URI syntax, refer to the class level Javadocs of the JmsMessageSender. + + The following example shows how to use the JMS transport in combination with an ActiceMQ + connection factory: + + + + + + + + + + + + + + + + + +]]> + +
+
+ Email transport + + Spring Web Services also provides an email transport, which can be used to send web service + messages via SMTP, and retrieve them via either POP3 or IMAP. The client-side email + functionality is contained in the MailMessageSender class. + This class creates an email message from the request + WebServiceMessage, and sends it via SMTP. It then waits for a + response message to arrive in the incoming POP3 or IMAP server. + + + To use the MailMessageSender, set the defaultUri or + uri parameter to a mailto URI. Here are some URI + examples: mailto:john@example.com, and + mailto:server@localhost?subject=SOAP%20Test. Make sure that the message sender is + properly configured with a transportUri, which indicates the server to + send requests (typically a SMTP server), and a storeUri, which indicates + the server to poll for responses (typically a POP3 or IMAP server). + + + The following example shows how to use the email transport: + + + + + + + + + + + + + + + +]]> +
@@ -90,7 +182,7 @@ In addition to a message sender, the WebServiceTemplate requires a Web service message factory. There are two message factories for SOAP: SaajSoapMessageFactory and AxiomSoapMessageFactory. - If no message factory is specified (via the 'messageFactory' property), + If no message factory is specified (via the messageFactory property), Spring-WS will use the SaajSoapMessageFactory by default.
@@ -237,7 +329,7 @@ public void marshalWithSoapActionHeader(final Source s) { public Object extractData(WebServiceMessage message) throws IOException ]]>// do your own transforms with message.getPayloadResult()// or message.getPayloadSource()// or message.getPayloadSource()