Web Service Consumer in Notes 8 (Sunday, Mar 11)

I haven't had any time to play with the Notes 8 beta client yet, but I was reading through the Reviewer's Guide and saw this part on web service consumers in Notes 8:

Lotus Notes and Domino 8 add Web services consumer support, allowing you to call Web services hosted elsewhere. A Web services consumer does not use a Web service design element, because these are used only for publishing Web services. Instead, a Web services consumer uses a special kind of script library (either LotusScript or Java). To call the Web service, an agent or other code must "use" that script library.

In the examples they have, it looks like you just:

  • Import the WSDL of the web service you want to call into a Java or LotusScript Script Library
  • The "stub" code for calling the web service will be generated for you as a class
  • You can then call the class methods from anywhere you can include the script library -- agents, actions, etc.

So your call to a web service that gets a stock quote might look like this:

Use "StockQuote WebService Library"

Sub Click (Source As Button)
    Dim q As New StockQuoteClass()
    Messagebox "Current IBM stock price is: " & q.GetQuote("IBM")
End Sub

Looks nice and easy. I can't wait to try it out.


[ permalink ] [ e-mail me ] [ read/add comments ]

RSS feed for comments on this post

Leave a Comment

You must be logged in to post a comment.