webMethods Microsoft Package 9.0 | webMethods Package for Microsoft .NET Documentation | webMethods Package for Microsoft .NET Client API Programmer’s Documentation | Generating Microsoft .NET Clients | The Structure of Client Code
 
The Structure of Client Code
The .NET sample code is generated using the same structure as is used for generation of other language samples. This structure breaks essential elements out into separate routines. For purposes of simplification, we condense the essential elements of those samples into a more concise form. The essential elements of a .NET webMethods client are:
1. Import library references by means of the using statement.
2. Create a server context object.
3. Connect the server context to a running Integration Server.
4. Populate the service inputs.
5. Invoke one or more services.
6. Retrieve the service outputs.
7. Disconnect from Integration Server.
This same set of steps applies to both examples described in this chapter.