Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment:
re: "ServiceMix includes a component for invoking web services using SAAJ and Axis via JBI, as an InOut message exchange." – is there any more info we can provide on what/why?

Introduction

ServiceMix supports Soap With with Attachments for Java (SAAJ) and Apache Axis.

Invoking Web Services Using SAAJ

We have ServiceMix includes a component for invoking web services using SAAJ and Axis via JBI, as an InOut message exchange. Here is an example of it in use. This particular example will invoke The following example of this invokes a web service to ask for a stock price.:

Wiki Markup
{snippet:id=saaj|lang=xml|url=http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-components/src/test/resources/org/apache/servicemix/components/saaj/example.xml}

 

 

You can To invoke this by passing in this function, pass the following request body:

Wiki Markup
{snippet:id=request|lang=xml|url=http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-components/src/test/resources/org/apache/servicemix/components/saaj/request.xml}

 

 

Then you should expect this Below is the expected response:

Wiki Markup
{snippet:id=example|lang=xml|url=http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-components/src/test/resources/org/apache/servicemix/components/saaj/response.xml}

 

 

Additional Resources

For a complete example, using SAAJ and incorporating the above code snippets, please see the HTTP Binding Example.
For details on JBI InOut message exchanges, please JSR 208.