10.07.2015 Views

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 6-6 Announcement delivered using AnnouncementSender <strong>Web</strong> serviceNow we have deployed the AnnouncementSender <strong>Web</strong> service, it makes senseto change our original workflow implementation to take advantage of it. We nolonger need the AnnouncementSender Java agent with all its Sametime-specificcode. We can replace it with a much more generic agent to call theAnnouncementSender <strong>Web</strong> service instead. Example 6-8 shows a Java agentthat uses the Apache SOAP package (http://ws.apache.org/soap/index.html)to call the AnnouncementSender <strong>Web</strong> service.Example 6-8 Announcement<strong>Web</strong>Service Java agentimport lotus.domino.*;import java.util.*;import java.net.*;import org.apache.soap.util.xml.*;import org.apache.soap.*;import org.apache.soap.rpc.*;150 <strong>Lotus</strong> <strong>Instant</strong> <strong>Messaging</strong>/<strong>Web</strong> <strong>Conferencing</strong> (Sametime): Building Sametime-Enabled Applications

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!