Professional Documents
Culture Documents
7/Visual
Studio
Web
Services
Integration
: Hands on
Labs
March, 2007
Gary Devendorf
Microsoft
Contents
Exercise 1 - Creating your first Domino 7 web service.................................................................................3
Exercise 2 – Create a web service client for your web service.....................................................................8
1. Launch Domino Designer. User Name is “Jane Developer” and Password is “lotusnotes”
3. Expand the Shared Code database entry and click the “New Web Service” button
6. Click on the security tab (the key) and select Allow Public Access users to use this web
service.
Class hello
Function hello_name(FirstName As String) As String
hello_name= "Hello " & FirstName & " this is from a
Domino 7 web service"
End Function
End Class
9. Open a browser and locate the WSDL file for your new web service. The format for a
Domino 7 WSDL URL is: <Server>/<database.nsf>/<web service name>?WSDL, so
your URL will look like: http://www.msdomino.net/workshop.nsf/<Your Name>?wsdl
In my case, the URL looks like this: http://www.msdomino.net/workshop.nsf/gary?wsdl
10. Leave this browser window open. We will need the URL later.
3. In the New Project Dialog, select Visual Basic as the Project type
4. Pick Window Application as the Template
5. Enter My web service client in the Name field
6. Click “OK”
13. Before we add code, we need to add a Web Reference for our Domino 7 web service.
Right click on My web service client solution name to bring up a menu.
14. Select Add Web Reference.
19. Notice that a web reference is now added to the Solution Explorer. These files were
created from the WSDL content. Feel free to look at the files by double clicking on
them. Adding a Web Reference is not unlike installing a component. Our program can
now use the Web Reference class and its Methods or Properties as you will see.
22. Enter your name in Textbox1 and click the Call Web Service button.
24. Clear Textbox2 and click the button again. Notice any change in speed.
For an advanced bonus exercise, create a client application for this WSDL file:
www.msdomino.net/orders.nsf/order_update?wsdl