Versions Compared

Key

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

...

  1. Go to ESB management console and select Main→Web Services→Add→Proxy Service from the side panel.
  2. Click Based Proxy to create a new WSDL based proxy.
  3. Fill the form as follows:
    1. Insert a suitable Proxy Service Name (eg: Simple_Stock_Quote_Service_Proxy)
    2. Set http://localhost:9000/services/SimpleStockQuoteService?wsdl as the WSDL URI
    3. Set SimpleStockQuoteService as the WSDL service
    4. Set SimpleStockQuoteServiceHttpSoap11Endpoint as the WSDL Port
  4. Click Create.
  5. Click on the newly created proxy's name (Simple_Stock_Quote_Service_Proxy in this case) to go to its dashboard.
Adding a BAM Mediator to WSDL

...

proxy service

After creating a sample WSDL Proxy Serviceproxy service, the user can add one or more BAM mediators to the sequence of WSDL Proxy Service as follows.

  1. Go to the ESB's management console and select Main→Main > Axis2 Services→List from side panelServices > List menu.
  2. Click on Simple_Stock_Quote_Service_Proxy to go to its dashboard.
  3. Click on Edit link under category , Specific Configuration.Click on Next> button and then click Next.
  4. Select option Define Inline under category , Define In Sequence and then click on its the Create link associated with it.
  5. Click on Configuration Registry link, select [Sequence]-fault from the drop down list and click OK button. Image Removed
  6. Click on Add Child link on the Root, select Agent→BAM Agent > BAM from menus.
    Image RemovedImage Added
  7. Select BAM element from the sequence tree and go to the form appeared below.
  8. Select Server Profile from the available set of server profiles in the drop down list.
  9. Select .
  10. In the form that appears, select a Server Profile and a Stream Name from the available set of stream names with the selected BAM server profile in the drop down list.Select Stream Version from the available set of stream versions with the selected stream name in the drop down list.
    Image RemovedClick Update button. You can observe lists. Similarly, select a Stream Version. For example,
    Image Added
  11. Click Update. You can view the mediator XML generated for the BAM Mediator by

    clicking on 

    selecting the switch to source view

    link

    option.

    You can

    To go back to the design view

    by clicking on

    , click switch to design view

    link.
    The mediator XML is in the following format. (This is an example.)

    . Given below is an example how the mediator XML looks:

    Code Block
    languagehtml/xml
    <bam xmlns="http://ws.apache.org/ns/synapse">
      
    
       <serverProfile name="profile1">
         
    
          <streamConfig name="stream1" version="1.0.0" ></streamConfig>
      
    
       </serverProfile>
    
    </bam>

    Image Removed

    Add more mediators to the WSDL Proxy Service if required.

     

     

  12. Click Save button, then Next and then Finish.
  13. Click Next> button.
  14. Click Finish button.

Now the BAM mediator is added to the WSDL Proxy Service

...

named Simple_Stock_Quote_Service_Proxy.

Send

...

messages to the ESB

At the moment all above mentioned steps should be finished to test the BAM mediator. In this step the user can send custom messages through the previously created WSDL Proxy Service and test whether they are correctly stored in the Cassandra database. This is only an example but the same type of steps can be followed to use the BAM mediator in the production environment.

...