Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
{snippet:id=http|lang=xml|url=http://cvs.servicemix.codehaus.org/servicemix/tooling/servicemix-web/src/webapp/WEB-INF/applicationContext.xml?rev=HEAD}

Example of using the HTTP binding in a WAR

The ServiceMix WAR comes with an example of using a HTTP GET or POST to invoke a JBI operation. To run the example get the latest checkout then perform the following

Code Block

cd tooling/servicemix-web
maven run

Then point your browser to http://localhost:8080/examples/Image Added

You should see the simple demo which performs a HTTP GET/POST into the JBI container and shows the result in your browser. This example renders better in FireFox which handles XML response types nicer than Safari.

An alternative is to use your existing Servlet engine and type this instead

Code Block

maven war

Then deploy the war into your servlet engine. You'll typically need to use a different URL then such as http://localhost:8080/servicemix-web/examples/Image Added