Tip of the Day Web Service in Visual Basic .NET
When we created this Web Service, we had a single goal in mind: to do something with XML using the .NET XML classes. We wanted to load a file, read it, change it, and write it back out. Because we covered XPath in fair detail in Chapter 3, “Web Services and XML,” we wanted to use another data access technique, through the XmlDocument object.
We've placed the XML document that we used for this Web Service in Listing A.1. The <Tips/> element acts as a container for the individual <Tip/> elements, each of which contains a string representing the tip itself.
Listing A.1. Tip of the Day Tip Database File (XML)
<?xml version="1.0"?> <Tips> <Tip>Do not run with scissors</Tip> <Tip>Learn everything you ... |
Get Applied SOAP: Implementing .NET XML Web Services now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.