...
- use of declarative programming
- how to perform Http HTTP binding in ServiceMix
The source code for the HTTP Binding example is located in the ServiceMix installation directory under the examples\http-binding
directory in the servicemix.xml
file. It is recommended that you refer to the source code while reading this document.
This example shows how to use the HTTP bindings to handle a simple http HTTP post. One component acts as the http server that HTTP server thahttp://docs.codehaus.org/display/SM/Http+Binding+Ja
Viewt listens on http://localhost:8912 while another invokes a remote service implemented as a URLEndpoint. A simple HTTP client is provided so that a simple post can be set to the server.
...
- From a command shell, go to the HTTP Binding example directory:
whereCode Block cd [servicemix_install_dir]\examples\http-binding
servicemix_install_dir
is the directory in which ServiceMix was installed. - Then type:
Code Block [servicemix_install_dir]\bin\servicemix servicemix.xml
- To start sending and receiving of messages from the Http HTTP server, send an initial message. To do this, compile and run a simple Http HTTP client. The client is built and run from source code using Ant. Execute Ant from the HTTP Binding directory:
servicemix_install_dir\examples\http-binding
. To run the Http HTTP client type:Code Block ant
Ant will compile and run the simple Http HTTP client, HttpClient, which performs a simple post on the Http HTTP Server into the ServiceMix container before returning the results to the console.
...