Added xmlRpc dataformat docs to Gitbook
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/95835a8f Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/95835a8f Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/95835a8f Branch: refs/heads/master Commit: 95835a8f0ec04dd89cec1ed3bbae6f994ce639e7 Parents: 16b4d78 Author: Andrea Cosentino <anco...@gmail.com> Authored: Wed Aug 31 10:15:18 2016 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Wed Aug 31 10:15:18 2016 +0200 ---------------------------------------------------------------------- .../src/main/docs/xmlrpc-dataformat.adoc | 57 ++++++++++++++++++++ 1 file changed, 57 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/95835a8f/components/camel-xmlrpc/src/main/docs/xmlrpc-dataformat.adoc ---------------------------------------------------------------------- diff --git a/components/camel-xmlrpc/src/main/docs/xmlrpc-dataformat.adoc b/components/camel-xmlrpc/src/main/docs/xmlrpc-dataformat.adoc new file mode 100644 index 0000000..a7436c3 --- /dev/null +++ b/components/camel-xmlrpc/src/main/docs/xmlrpc-dataformat.adoc @@ -0,0 +1,57 @@ +[[XmlRpc-XmlRpcDataformat]] +XmlRpc Dataformat +~~~~~~~~~~~~~~~~~ + +As the XmlRpc message could be request or response, when you use the +XmlRpcDataFormat, you need to specify the dataformat is for request or +not. + +[source,xml] +------------------------------------------------------------------------------------------------------------------------------------------------- +<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> + + <!-- we define the xml rpc data formats to be used --> + <dataFormats> + <xmlrpc id="xmlrpcRequest" request="true"/> + <xmlrpc id="xmlrpcResponse" request="false"/> + </dataFormats> + + <route> + <from uri="direct:request"/> + <marshal ref="xmlrpcRequest"/> + <unmarshal> + <xmlrpc request="true"/> + </unmarshal> + <to uri="mock:request" /> + </route> + + <route> + <from uri="direct:response"/> + <marshal> + <xmlrpc request="false"/> + </marshal> + <unmarshal ref="xmlrpcResponse"/> + <to uri="mock:response" /> + </route> +</camelContext> +------------------------------------------------------------------------------------------------------------------------------------------------- + +[[XmlRpc-Dataformat-Options]] +XmlRpc Dataformat Options +^^^^^^^^^^^^^^^^^^^^^^^^^ + +// dataformat options: START +The XML RPC dataformat supports 1 options which are listed below. + + + +{% raw %} +[width="100%",cols="2s,1m,1m,6",options="header"] +|======================================================================= +| Name | Default | Java Type | Description +| request | false | Boolean | Whether to marshal/unmarshal request or response Is by default false +|======================================================================= +{% endraw %} +// dataformat options: END + +