...
- From a command shell, go to the HTTP Binding example directory:
whereCode Block cd [SM:servicemix_install_dir]\examples\http-binding
servicemix_install_dir
is the directory in which ServiceMix was installed originally. - Then type:
Code Block [SM:servicemix_install_dir]\bin\servicemix servicemix.xml
- To start sending and receiving messages from the HTTP server, send an initial message. To do this, compile and then run a simple HTTP client. The HTTP client used in this example, 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.
...
Wiki Markup |
---|
Output from running {{\[SM:servicemix_install_dir\]\bin\servicemix servicemix.xml}}: |
...
Code Block |
---|
Buildfile: build.xml init: compile: run: [SM:echo] Running example client [SM:java] <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="htt p://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSch ema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http:/ /schemas.xmlsoap.org/soap/encoding/" soap:encodingStyle="http://schemas.xmlsoap. org/soap/encoding/"><soap:Body><n:getQuoteResponse xmlns:n="urn:xmethods-delayed -quotes"><Result xsi:type="xsd:float">88.8</Result></n:getQuoteResponse></soap:B ody></soap:Envelope>asdf BUILD SUCCESSFUL Total time: 6 seconds |
...