Generating the .NET Client
These are the steps used to generate a .NET client that will consume Services Portal web service using Visual Studio .NET.
Access to the Services Portal integration interface is controlled at the company level. You must contact Omnitracs and have your account enabled for integration access before you will be able to subscribe to event feeds and invoke web service methods.
These are development notes. They are not intended to be a complete tutorial on consuming web services with a .NET client.
These steps demonstrate the construction of a simple C# application that invokes the getVehicleInformation method.
- Installing Microsoft (WSE) Web Service Enhancements
- Generate the Project and Add the Web Reference
- Modify reference.cs
- Invoking the Web Service Method
- Providing Credentials in the .NET Client
- Display the Vehicle Information
- Build the Project and Run the Application
- Modifying app.config
- Working with SSL
- Capturing XML Requests and Responses
- Nested Structures Issues
- Visual Studio 2010 Example