Step By Step

3.21 Instantiating and Invoking a Client That Calls Remote Object Methods Synchronously and Asynchronously 1. Add a new Visual C .NET Windows application named step.ByStep.3_21 to the solution. 2. Add references to the .NET assembly System. Runtime. Relucting. 3. Select Start, Programs, Microsoft Visual Studio .NET, Visual Studio .NET Tools, Visual Studio .NET Command Prompt to launch a .NET command prompt. 4. Navigate to the stepByStep3_i3 project and run the following command to automatically...

Using XML with SQL Server

The .NET team is not the only group at Microsoft that's been working with XML. Over the past several releases, Microsoft SQL Server has become increasingly integrated with XML. In the current release, you can generate XML with SQL statements, using Microsoft T-SQL extensions to the SQL standard query language. You can also update SQL Server tables by sending properly formed XML messages, called DiffGrams, to a SQL Server database. In this section, you'll learn the basics of interacting with SQL...

Apply Your Knowledge

The .NET Framework developers invested a lot of effort in finding ways to make code more efficient. One performance enhancement in evaluating XPath expressions is the capability to precompile an expression for reuse. This exercise shows you how to use the compile method of the xpathNavigator class to create a precompiled XPath expression, represented as an xpathE pression object. 1. Create a new Visual C .NET project to use for the exercises in this chapter. 2. Add a new XML file to the...

Using the Soapsuds Tool to Automatically Generate an Interface Assembly

In the previous section, you learned how you can distribute the interface assemblies, rather than the implementation assembly, to the client, and still enable clients to instantiate the remote objects. However, when you have large numbers of clients, distribution of interface files to each of them is another big issue. However, the .NET Framework SDK provides you the Soapsuds tool soapsuds . ene to overcome this issue. Given the URL for a remotable object, the Soapsuds tool can automatically...