The provided UA Simulation server is intended for testing purposes in cases where client developers don't have UA servers readily available.
The sample applications and the wizard generated base code have definitions for this server and can be tested without modifications when the Simulation server is running.
The uaPLUSsim server is built with the Advosol uaPLUS server toolkit and is simple to install.
The server is provided with a configuration file that covers basic features and allows the server to self-create the needed certificate.
UA Configuration
UA applications (servers and clients) need a UA configuration file and an application certificate issued for the machine the application is running on.
To create, view or modify the server's UA configuration settings, drag the application configuration XML file or application executable file to the configuration utility UaServerConfigHelper.exe. The utility is in the simulation server directory.
The configuration needs to be done in an Administrator user account.
Configuration steps:
- Create a default configuration file for the application if it doesn't yet exist.
- Edit the configuration file to define appropriate settings
Define a log file with a trace mask for error and communication events (513). If there are issues then the log file gives the best error indications. For most detailed logging change the trace mask to ALL (1023). - Select an existing certificate or create a new self-signed certificate as the application certificate.
If the application is to run in a non-administrator user account then the user account needs to be added to the Permissions list. - Import the certificates of the client applications that are allowed to access the server.
This is not necessary if:
- the client application is on the same machine and uses the same certificate store location
- the server is accessed thru an endpoint that is configured for security NONE.
Instead of copying and importing the certificate file with the configuration utility before the server is started the client certificate can be moved from the Rejected Certificate store after a failed access. The server stores un-trusted (rejected) certificates.
Run the server as a process
Execute uaPLUSsim.exe to run the server as a process. A status window is displayed.
The server is stopped by closing the window.
UA servers must be running before they can be discovered and accessed. UA servers are not started on client connect as DCOM does for Classic OPC servers.
Run the server as Windows Service
The uaPLUSsim server can run as a Windows service. To create the service drag the uaPLUSsim.exe file to ServiceManger.exe and create the service with either the default or changed settings.
Running the server as a service is convenient if the server is frequently used. As a service the server is automatically started and is always available.