Step 1: Open the generated application in Visual Studio.NET.
Step 2: Add a Web Reference into the project to the Web
Service in question.
http://localhost/AppWithWebService/MyWebServiceDirectory/MyWebServiceForTableAccess.asmx
Step 3: Add a reference to System.Web.Services.dll in the
application's CompileApplication.rsp file. This is optional if you are using
Visual Studio .NET to compile the application, but is required if you are using
CSC to compile application.
.\MyApp\CompileApplication.rsp
Step 4: Compile the application in Visual Studio .NET.
Step 5: Use this wizard to override the InsertRecord function.
Step 6: Add the following using statement at the top of your <Table Name>SqlTable.cs file
using <Application Name>.Business;
Replace <Application Name> with your application name.
The insert record operations in the application now call the web service's
function.
|