Title: Creating Domino7 Web Services
1Creating Domino7 Web Services
- Gary Devendorf
- Microsoft Technical Evangelist
2Agenda
- What exactly is the R7 Web Service
- Using Domino Designer and LotusScript to create a
Web Service - WSDL for your Web Service
- Calling a Web Service from Visual Studio.NET
3R7 Web Services
- Best new developer feature
- New design element for hosting Domino web
services - Works like a Web Agent
- No new way of calling web services
4R7 Web ServiceDemo (.Net client)
5Creating a R7 Web Service
- Use Domino Designer
- Create Web Service
- Like creating an Agent
- Set properties in properties box
- Create LotusScript or Java class
- Generate WSDL
- Run Server
- Write WS client
6New Design Element
7Domino Designer 7
8Web Service Property Box
9LotusScript Class
10WSDL Buttons
Note ImportWSDL will create a skeleton web
service
11WSDL Generated by Domino Designer
12Deploying R7 Web Services
- Deploy your Database containing your web service
to a server - Access the web service via URLs
13R7 Web Services URLs
- Address to invoke Web Service
- http//MyServer/MyDatabase.nsf/MyWebService?OpenWe
bService - Address of WSDL file
- http//MyServer/MyDatabase.nsf/MyWebService?WSDL
14Consuming a WS with .Net Products
Web Service Client VB.Net, C, VS.Net, Smart
Phone, MS Office, SharePoint, CMS, IM,
HTTP
SOAP
15Calling Your New Web Service from Visual
Studio.NET
- You will need the URL for the WSDL file
- http//MyServer/MyDatabase.nsf/MyWebService?WSDL
- Add a Web Reference
- WSDL wizard generates tons of code
- Create an Object based on the web reference
- Call the methods and properties
- Sooooo easy
16Web Service Reference Wizard
17Use the Reference in Your Code
18Calling a Web Service from .Net
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click Dim ws As New
localhost.WebSericeOneService Dim
mystring As String ws.OPERATION1(TextBox1.Text,
TextBox2.Text) TextBox3.Text mystring
End Sub
19Demo Client
20Why Use Domino Web Services?
- Expose existing Notes/Domino applications to
other programs (clients) - Reuse exiting Applications
- Easier to create client (Infopath)
- SOA
- Looks good on your resume
21VS.Net is Great at working with Web Services
- Wizards and examples make it easy
- 2 lines of code
- Creates WSDL automatically
22Security
23Questions
24Resources
- Updated Demos are found at
- http//www.msdomino.net
- More about .NET
- http//www.microsoft.com/net/basics
- Building Web services with Domino 6
- https//www6.software.ibm.com/reg/devworks/dw-lsdo
m6ws-i?S_TACT1234S_CMPabcd - IBM Red Paper Lotus Domino and .NET Coexistence
- http//publib-b.boulder.ibm.com/Redbooks.nsf/Redpa
perAbstracts/redp3868.html - Turn your Lotus applications into Web services
- https//www6.software.ibm.com/reg/devworks/dw-lsap
pws-i?S_TACT1234S_CMPabcd - Address to invoke Domino 7 Web Service
- http//MyServer/MyDatabase.nsf/MyWebService?OpenWe
bService - Address of Domino 7 WSDL file
- http//MyServer/MyDatabase.nsf/MyWebService?WSDL
- Lotus Domino and .NET Coexistence
http//publib-b.boulder.ibm.com/Redbooks.nsf/Redbo
okAbstracts/redp3868.html?Open - COM Together - with Domino http//www.redbooks.ibm
.com/redbooks.nsf/0/18cb3513e9d8b9a885256847005001
8b?OpenDocument - IBM Redbook XML Powered by Domino How to use XML
with Lotus Domino - http//www.redbooks.ibm.com/redbooks.nsf/0/7fccf93
55f830c15852569510043ef2a?OpenDocument - Garys Blog