11.13. An Inquiry Example
11.13.1. Choosing Services That Implement a Specific Interface
Here's a sample application that searches for services implementing a specific interface and lets the user choose which service to invoke. This application uses the UDDI APIs directly by forming and sending SOAP messages.
The application is Web-based using ASP.NET. You can access this application on your server using the URL http://VBWSServer/VBWSBook/Chapter11/WeatherChooser.aspx. The first page, weatherchooser.aspx, sends a find_business message with a tModelBag that contains the tModelKey of the Weather service interface. To form the message, the application uses an XmlTextWriter and a StringWriter as shown in Listing 11.21. Then it uses an instance of ...