Workshop
The workshop is designed to help you review what you've learned in this hour and to prepare you for the material that will be covered in future hours. The answers to the quiz are in Appendix A.
Quiz
Where is WSDL.exe found?
At the DOS prompt of any machine with the .NET framework installed.
How do you add a Web reference to a project in Visual Studio .NET?
By using the dialog displayed by Add Web Reference under the Project menu.
How do you create a new object, called oService, based on the Accounting class of a XML Web service DLL called AccountSoft
In Visual Basic:
Dim oService as new AccountSoft.Accounting
In C#:
AccountSoft.Accounting oService = new_ AccountSoft.Accounting
What does the /language setting of WSDL.exe do?
It controls the language in which the resulting proxy class is created.
What is the name of the DLL that is commonly added to XML Web service clients to obtain functionality specific to XML Web service clients?
System.Web.Services.dll.
Exercises
Create code for any new method that you added to the four-function calculator in the last hour. Also, if you have created any new XML Web services, try creating clients for them as well.
Here is the code for the squaring function that was added at the end of Hour 7.
Public Sub Button5_Click(ByVal sender As Object, _ ByVal e As System.EventArgs) TextBox3.Text = oCalc.Squared(CInt(TextBox1.Text)).ToString End Sub