Versions Compared

Key

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

...

  1. Log in to the management console of your server and click List under Services in the navigator. The CSVSampleServiceEventingSample will be listed here.
  2. Click Try this service to open the TryIt tool.
  3. Select the relevant operation and click Send to execute the command as shown below.
    • We will first add a new product into the inventory by executing the "addProduct" operation:
       
    • After adding the product, we will update the availability of it by changing the product quantity in stock. Execute the "updateProductQuantity" operation:
      Here we are setting the "quantityInStock" to 5. Because of the event trigger, when the stock is less than 10, an event is fired. Soon you will receive an event notification to your mail inbox. Figure below shows the contents of the email attachment.
       
    • Here we are querying the inventory system for a specific motorcycle model by executing the "getProductByCode" operation.
      By making a request with the motorcycle product line, we are triggering an event associated with it. An email will be sent regarding this query. The contents of the email is as follows: