
Developing Web Applications • Chapter 10 509
9. Because the GetOrders function uses ADO.NET to connect to the
database, we have to import those namespaces into our class.Add this
import statement to the class:
Imports System.Data.SqlClient
10. In order to test it, build the application and type the URL of this Web
service into the browser. Now you will see two methods instead of one
method shown in Figure 10.12. Enter the Customer ID HANAR or
any valid Customer ID.You will see that ASP.NET returns the orders in
XML format.
We have created a Web service with two Web methods in it. Later on in this
chapter we create a Web consumer and a Windows consumer ...