THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- 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 server, send an initial message. To do this, compile and run a simple 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 client type:Code Block ant
Ant will compile and run the simple HTTP client, HttpClient, which performs a simple post on the HTTP Server into the ServiceMix container before returning the results to the console.
...
Messages flow through the components as follows:
- HttpClient, a java standalone stand-alone program connects to http://localhost:8912
through the URLConnection class. It then HttpClient sends the file "request.xml" to this port.
- httpReceiver, an http HTTP server, being a listenser listener on http://localhost:8912
receives the message.
- It then httpReceiver sends the message to stockQuote as specified in its destinationService property, via NMR.
- stockQuote sends in into another service, soapEndpoint for processing.
- soapEndpoint sends the response to stockQuote.
- stockQuote send sends the response to httpReceiver via NMR.
- httpReceiver sends the response to http://localhost:8912
.
- HttpClient reads the response.
- The response is printed on the console.
...