You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

Introduction

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

Invoking Web Services Using SAAJ

ServiceMix includes a component for invoking web services using SAAJ and Axis via JBI, as an InOut message exchange. The following example of this invokes a web service to ask for a stock price:

Error formatting macro: snippet: java.lang.NullPointerException

 

 

 

To invoke this function, pass the following request body:

Error formatting macro: snippet: java.lang.NullPointerException

 

 

 

Below is the expected response:

Error formatting macro: snippet: java.lang.NullPointerException

 

 

 

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.

  • No labels