< Previous | Next >

Adding the getQuote activity to the while loop

Invoke the web service to obtain stock information.

To add the getQuote activity to WhileLoop, follow these steps:
  1. In the process editor, click Snippet icon on the palette and then Invoke icon, which is the Invoke icon.
  2. Click the WhileLoop activity. The Invoke activity was added.
  3. Rename Invoke to getQuote by typing over the highlighted text.
  4. With the Invoke activity in place, we now need to select the operation and its variable parameters we wish to call in order to invoke the web service. To specify the call and its arguments, follow these steps:
    1. In the Properties view, click Details.
    2. Click Browse. The Select a Partner window opens.
    3. Click net.xmethods.services.stockquote.StockQuotePortTypePartner.
    4. In the Partner Name (? = any character, * = any String) field, type net.xmethods.services.stockquote.StockQuotePortType and click OK.
    5. From the Operation list, select getQuote.
    6. Check the Use Data Type Variables checkbox.
    7. Click the first Ellipsis button. The Select Variable for symbol window opens.
    8. From the list, select getQuoteInput and click OK.
    9. Click the second Ellipsis button. The Select Variable for Result window opens.
    10. From the list, select getQuoteOutput and click OK. You should now be left with the following definition:
      getQuote activity details
Now with the invocation of the web service complete, next we need to define how we add the resulting stock quote's value to the stock portfolio.

Feedback
(C) Copyright IBM Corporation 2005, 2007. All Rights Reserved.
< Previous | Next >