UA Simple WCF Applications
January 21, 2008
Overview
Updated with the latest UA WSDL and Information Model.
This set of applications is a very basic UA client and server built with the .NET 3.5 framework and VS2008.
These samples rely on code generated by VS2008 tools using the published UA WSDL and do not use the UA SDK.
The client has implemented the following:
- Create/Activate Session (Including
application verification but no user authentication)
- Browse
- Read (scalars, arrays and
complex data)
- Create Subscription
- Create Monitored Items
The server has implemented the following:
- Default address space (including
all UA defined types and the Server object)
- Discovery Endpoint
- Create/Activate Session (Including
application verification but no user authentication)
- Read (scalars, arrays and complex
data)
- Browse (no BrowseNext)
- TranslateBrowsePaths
- CreateSubscription
- Create Monitored Items
The Common library includes the autogenerated code plus a few of helper classes utility functions. Note that the autogenerated code includes code which declares the various constants defined by the specification.
Installation
The samples require that the My Server Certificate.pfx and My Client Certificate.pfx files be installed in the CurrentUser\Personal certificate store. This can be done by double clicking on the files in explorer running the Certificate import wizard. The password is 'password' and the default options should work unless the corporate network overrides the default settings for Windows.
The samples can communicate with the samples built with the UA SDK, however, the samples need to be configured to trust the UA SDK sample applications.
This can be done by:
1) Run mmc.exe
2) Click File | Add-Remove Snap-in
3) Click Add...
4) Select Certificates
5) Click Add
6) Select 'My User Account' and click
Ok
7) Repeat 3 thru 5
8) Select 'Computer Account' and
click Ok
9) Next... | Local Computer | Finish
10) Click OK
11) Open foldet 'Certificates
(LocalComputer)/Personal/Certificates'
12) Copy UA Sample Client
13) Open folder 'Certificates -
Current User/TrustedPeople'
14) Paste UA Sample Client.