Add SPSLogger
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
</site>
|
||||
<site name="MeterProcessState" id="2">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\SZLATEV\source\repos\laa_production\Common\Service\MeterProcessState" />
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\drabesch_ro\Repo\lab\la_operations\laa_production\Common\Service\MeterProcessState" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:56011:localhost" />
|
||||
|
||||
+22
-22
@@ -556,8 +556,8 @@ Global
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|x64.Build.0 = Debug|x64
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.GenesisDisplayTool_V01|Any CPU.ActiveCfg = PerformTest|Any CPU
|
||||
@@ -620,8 +620,8 @@ Global
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|x64.Build.0 = Debug|x64
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.GenesisDisplayTool_V01|Any CPU.ActiveCfg = PerformTest|Any CPU
|
||||
@@ -812,8 +812,8 @@ Global
|
||||
{95A50087-99EE-4349-9A17-C547290DB42F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{95A50087-99EE-4349-9A17-C547290DB42F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{95A50087-99EE-4349-9A17-C547290DB42F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{95A50087-99EE-4349-9A17-C547290DB42F}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{95A50087-99EE-4349-9A17-C547290DB42F}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{95A50087-99EE-4349-9A17-C547290DB42F}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{95A50087-99EE-4349-9A17-C547290DB42F}.Debug|x64.Build.0 = Debug|x64
|
||||
{95A50087-99EE-4349-9A17-C547290DB42F}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{95A50087-99EE-4349-9A17-C547290DB42F}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{95A50087-99EE-4349-9A17-C547290DB42F}.GenesisDisplayTool_V01|Any CPU.ActiveCfg = PerformTest|Any CPU
|
||||
@@ -1449,8 +1449,8 @@ Global
|
||||
{63E0AC5E-B7C8-4363-A2FE-BE489E648FF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{63E0AC5E-B7C8-4363-A2FE-BE489E648FF0}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{63E0AC5E-B7C8-4363-A2FE-BE489E648FF0}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{63E0AC5E-B7C8-4363-A2FE-BE489E648FF0}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{63E0AC5E-B7C8-4363-A2FE-BE489E648FF0}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{63E0AC5E-B7C8-4363-A2FE-BE489E648FF0}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{63E0AC5E-B7C8-4363-A2FE-BE489E648FF0}.Debug|x64.Build.0 = Debug|x64
|
||||
{63E0AC5E-B7C8-4363-A2FE-BE489E648FF0}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{63E0AC5E-B7C8-4363-A2FE-BE489E648FF0}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{63E0AC5E-B7C8-4363-A2FE-BE489E648FF0}.GenesisDisplayTool_V01|Any CPU.ActiveCfg = PerformTest|Any CPU
|
||||
@@ -1959,8 +1959,8 @@ Global
|
||||
{26AFCF1E-1287-48B8-A506-32B1E8A0DD0E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{26AFCF1E-1287-48B8-A506-32B1E8A0DD0E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{26AFCF1E-1287-48B8-A506-32B1E8A0DD0E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{26AFCF1E-1287-48B8-A506-32B1E8A0DD0E}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{26AFCF1E-1287-48B8-A506-32B1E8A0DD0E}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{26AFCF1E-1287-48B8-A506-32B1E8A0DD0E}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{26AFCF1E-1287-48B8-A506-32B1E8A0DD0E}.Debug|x64.Build.0 = Debug|x64
|
||||
{26AFCF1E-1287-48B8-A506-32B1E8A0DD0E}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{26AFCF1E-1287-48B8-A506-32B1E8A0DD0E}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{26AFCF1E-1287-48B8-A506-32B1E8A0DD0E}.GenesisDisplayTool_V01|Any CPU.ActiveCfg = Release|Any CPU
|
||||
@@ -2215,8 +2215,8 @@ Global
|
||||
{315E94B8-B82F-4B25-B5BD-297DF3BC1D54}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{315E94B8-B82F-4B25-B5BD-297DF3BC1D54}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{315E94B8-B82F-4B25-B5BD-297DF3BC1D54}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{315E94B8-B82F-4B25-B5BD-297DF3BC1D54}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{315E94B8-B82F-4B25-B5BD-297DF3BC1D54}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{315E94B8-B82F-4B25-B5BD-297DF3BC1D54}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{315E94B8-B82F-4B25-B5BD-297DF3BC1D54}.Debug|x64.Build.0 = Debug|x64
|
||||
{315E94B8-B82F-4B25-B5BD-297DF3BC1D54}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{315E94B8-B82F-4B25-B5BD-297DF3BC1D54}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{315E94B8-B82F-4B25-B5BD-297DF3BC1D54}.GenesisDisplayTool_V01|Any CPU.ActiveCfg = Release|Any CPU
|
||||
@@ -2535,8 +2535,8 @@ Global
|
||||
{20F137FD-C25E-42B7-A68F-58C746475897}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{20F137FD-C25E-42B7-A68F-58C746475897}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{20F137FD-C25E-42B7-A68F-58C746475897}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{20F137FD-C25E-42B7-A68F-58C746475897}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{20F137FD-C25E-42B7-A68F-58C746475897}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{20F137FD-C25E-42B7-A68F-58C746475897}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{20F137FD-C25E-42B7-A68F-58C746475897}.Debug|x64.Build.0 = Debug|x64
|
||||
{20F137FD-C25E-42B7-A68F-58C746475897}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{20F137FD-C25E-42B7-A68F-58C746475897}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{20F137FD-C25E-42B7-A68F-58C746475897}.GenesisDisplayTool_V01|Any CPU.ActiveCfg = Release|Any CPU
|
||||
@@ -2599,8 +2599,8 @@ Global
|
||||
{8A619CD5-6C8D-420C-A132-7946C6F13E6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8A619CD5-6C8D-420C-A132-7946C6F13E6E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{8A619CD5-6C8D-420C-A132-7946C6F13E6E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{8A619CD5-6C8D-420C-A132-7946C6F13E6E}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{8A619CD5-6C8D-420C-A132-7946C6F13E6E}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{8A619CD5-6C8D-420C-A132-7946C6F13E6E}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{8A619CD5-6C8D-420C-A132-7946C6F13E6E}.Debug|x64.Build.0 = Debug|x64
|
||||
{8A619CD5-6C8D-420C-A132-7946C6F13E6E}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{8A619CD5-6C8D-420C-A132-7946C6F13E6E}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{8A619CD5-6C8D-420C-A132-7946C6F13E6E}.GenesisDisplayTool_V01|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
@@ -2663,8 +2663,8 @@ Global
|
||||
{94CA71F3-C5D7-4EC6-BA47-FA8EEA3C9406}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{94CA71F3-C5D7-4EC6-BA47-FA8EEA3C9406}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{94CA71F3-C5D7-4EC6-BA47-FA8EEA3C9406}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{94CA71F3-C5D7-4EC6-BA47-FA8EEA3C9406}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{94CA71F3-C5D7-4EC6-BA47-FA8EEA3C9406}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{94CA71F3-C5D7-4EC6-BA47-FA8EEA3C9406}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{94CA71F3-C5D7-4EC6-BA47-FA8EEA3C9406}.Debug|x64.Build.0 = Debug|x64
|
||||
{94CA71F3-C5D7-4EC6-BA47-FA8EEA3C9406}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{94CA71F3-C5D7-4EC6-BA47-FA8EEA3C9406}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{94CA71F3-C5D7-4EC6-BA47-FA8EEA3C9406}.GenesisDisplayTool_V01|Any CPU.ActiveCfg = Release|Any CPU
|
||||
@@ -2983,8 +2983,8 @@ Global
|
||||
{70BF5094-0F03-41FC-B0BD-BEFCF51686C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{70BF5094-0F03-41FC-B0BD-BEFCF51686C9}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{70BF5094-0F03-41FC-B0BD-BEFCF51686C9}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{70BF5094-0F03-41FC-B0BD-BEFCF51686C9}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{70BF5094-0F03-41FC-B0BD-BEFCF51686C9}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{70BF5094-0F03-41FC-B0BD-BEFCF51686C9}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{70BF5094-0F03-41FC-B0BD-BEFCF51686C9}.Debug|x64.Build.0 = Debug|x64
|
||||
{70BF5094-0F03-41FC-B0BD-BEFCF51686C9}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{70BF5094-0F03-41FC-B0BD-BEFCF51686C9}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{70BF5094-0F03-41FC-B0BD-BEFCF51686C9}.GenesisDisplayTool_V01|Any CPU.ActiveCfg = Release|Any CPU
|
||||
@@ -3111,8 +3111,8 @@ Global
|
||||
{62E5BA37-36AB-4F0A-BC12-554E7A1F1A39}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{62E5BA37-36AB-4F0A-BC12-554E7A1F1A39}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{62E5BA37-36AB-4F0A-BC12-554E7A1F1A39}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{62E5BA37-36AB-4F0A-BC12-554E7A1F1A39}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{62E5BA37-36AB-4F0A-BC12-554E7A1F1A39}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{62E5BA37-36AB-4F0A-BC12-554E7A1F1A39}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{62E5BA37-36AB-4F0A-BC12-554E7A1F1A39}.Debug|x64.Build.0 = Debug|x64
|
||||
{62E5BA37-36AB-4F0A-BC12-554E7A1F1A39}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{62E5BA37-36AB-4F0A-BC12-554E7A1F1A39}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{62E5BA37-36AB-4F0A-BC12-554E7A1F1A39}.GenesisDisplayTool_V01|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
||||
@@ -84,6 +84,11 @@ namespace Xylem.Common.Hardware.Plc.Siemens.Client.TestbenchAdapter
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<ReferenceDescription> BrowseNode(ReferenceDescriptionCollection search)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
/// <summary>Finds Endpoints based on a server's url</summary>
|
||||
/// <param name="discoveryUrl">The server's url</param>
|
||||
/// <returns>EndpointDescriptionCollection containing found Endpoints</returns>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
8fbe991b217e7692af4817ad205b768685aa5a72
|
||||
c43c40a030005a8f189e6179faf40a6d42bfef5c
|
||||
|
||||
@@ -272,7 +272,7 @@ namespace Xylem.Common.Logic.ProductionOrderCore.OrderData
|
||||
var responseJson = LocalWebRequest.GetRequest(url, 10000, header);
|
||||
responseJson = responseJson.Trim('"');
|
||||
|
||||
return responseJson;
|
||||
return responseJson;//orderNumber}&radioaddress={radioAdress
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
+10
-10
@@ -64,18 +64,18 @@ namespace ProductionUiCordonel.ProductionProcesses.Actions
|
||||
{
|
||||
|
||||
|
||||
//var url = ServiceUrls.GenesisGetPasswordContainerServiceUrl();
|
||||
var url = ServiceUrls.GenesisGetPasswordContainerServiceUrl();
|
||||
|
||||
//var requestResponse = LocalWebRequest.GetRequestWithError(url + Meter.PcbId, out var errorCode, 30000, isRetry: true);
|
||||
//if (errorCode == System.Net.HttpStatusCode.OK.GetHashCode())
|
||||
//{
|
||||
// var passwordContainer = JsonConvert.DeserializeObject<Xylem.Common.Hardware.WaterMeter.Genesis.GenesisPwd.MeterPwdDb>(requestResponse);
|
||||
// if (Meter.Login(System.Text.Encoding.UTF8.GetString(passwordContainer.ListOfPasswords[7])))
|
||||
// {
|
||||
// Xylem.Common.Hardware.WaterMeter.Genesis.GenesisPwd.MeterPwdHandlerDb.SetPwdFromSkeletonToLvl8inDd(Meter.PcbId, passwordContainer);
|
||||
// }
|
||||
var requestResponse = LocalWebRequest.GetRequestWithError(url + Meter.PcbId, out var errorCode, 30000, isRetry: true);
|
||||
if (errorCode == System.Net.HttpStatusCode.OK.GetHashCode())
|
||||
{
|
||||
var passwordContainer = JsonConvert.DeserializeObject<Xylem.Common.Hardware.WaterMeter.Genesis.GenesisPwd.MeterPwdDb>(requestResponse);
|
||||
if (Meter.Login(System.Text.Encoding.UTF8.GetString(passwordContainer.ListOfPasswords[7])))
|
||||
{
|
||||
Xylem.Common.Hardware.WaterMeter.Genesis.GenesisPwd.MeterPwdHandlerDb.SetPwdFromSkeletonToLvl8inDd(Meter.PcbId, passwordContainer);
|
||||
}
|
||||
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -854,6 +854,37 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
|
||||
return Request.CreateResponse(HttpStatusCode.ExpectationFailed, ex.ToString() + "<br >" + ex.InnerException.ToString());
|
||||
}
|
||||
}
|
||||
[Route("RepairMapKeySet")]
|
||||
public String RepairMapKeySet(String KeySetID = "2aece5d3-8acd-471c-a3d5-13e2866be441", string radio = "10402007187", string deviceID = "8SEN2024791544", string Order = "3232771")
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
//keysets
|
||||
var Url = $"{ServiceUrls.KeyServerCustom()}keysetkeys/";
|
||||
|
||||
|
||||
Url = "https://nodes.sms-esaap.com/keygenproxy/api/v2/keys";
|
||||
var header = new Dictionary<String, String>();
|
||||
header.Add("Cache-Control", "no-cache");
|
||||
header.Add("X-Node-Token", "d5b8c0b2-81f6-4421-80d0-44eb2093e616");
|
||||
|
||||
|
||||
|
||||
string postData = $"[{{\"KeyIndex\":\"{KeySetID}\", \"OrderNumber\":\"{Order}\", \"Device\":\"{deviceID}\", \"radioaddress\":\"{radio}\"}}]";
|
||||
|
||||
|
||||
|
||||
return LocalWebRequest.PostRequestAsyncAndGetContent(url: Url, header: header, json: postData, timeoutMs: 20000);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
return ex.Message;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private String MapKeySet(String Token, String KeySetID, Int64 MeterOrderNumber, string MeterPassowrdIdent)
|
||||
{
|
||||
|
||||
@@ -347,8 +347,8 @@ namespace Xylem.Common.Logic.SoftwareAccessHelper
|
||||
{
|
||||
request.AddJsonBody(json);
|
||||
}
|
||||
|
||||
var r = client.ExecuteAsPost(request, Method.POST.ToString());
|
||||
request.AddBody(json);
|
||||
var r = client.ExecuteAsPost(request, Method.PUT.ToString());
|
||||
return r;
|
||||
}
|
||||
catch (Exception error)
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
|
||||
@@ -153,6 +153,10 @@
|
||||
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="magflux_api, Version=1.0.2.49, Culture=neutral, processorArchitecture=AMD64">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Hardware\WaterMeter\MagFlux\MagFluxApi\magflux_api.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
|
||||
+21
-11
@@ -35,6 +35,7 @@
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.cblSlots = new System.Windows.Forms.CheckedListBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.btnGetResults = new System.Windows.Forms.Button();
|
||||
this.btnStoreCal = new System.Windows.Forms.Button();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.btnUpdate = new System.Windows.Forms.Button();
|
||||
@@ -42,8 +43,8 @@
|
||||
this.btnMeasurementPreparation = new System.Windows.Forms.Button();
|
||||
this.btnMeasurementStart = new System.Windows.Forms.Button();
|
||||
this.btnCheckAll = new System.Windows.Forms.Button();
|
||||
this.btnGetResults = new System.Windows.Forms.Button();
|
||||
this.ctlBatch = new XylemCommonUiLegacyGenCtl.ctlBatch();
|
||||
this.preAdjWr1 = new XylemCommonUiLegacyGenCtl.PreAdjWr();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
@@ -130,6 +131,15 @@
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Control";
|
||||
//
|
||||
// btnGetResults
|
||||
//
|
||||
this.btnGetResults.Location = new System.Drawing.Point(463, 13);
|
||||
this.btnGetResults.Name = "btnGetResults";
|
||||
this.btnGetResults.Size = new System.Drawing.Size(83, 80);
|
||||
this.btnGetResults.TabIndex = 12;
|
||||
this.btnGetResults.Text = "Store Calibration";
|
||||
this.btnGetResults.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnStoreCal
|
||||
//
|
||||
this.btnStoreCal.Location = new System.Drawing.Point(564, 13);
|
||||
@@ -197,30 +207,29 @@
|
||||
this.btnCheckAll.UseVisualStyleBackColor = true;
|
||||
this.btnCheckAll.Click += new System.EventHandler(this.btnCheckAll_Click);
|
||||
//
|
||||
// btnGetResults
|
||||
//
|
||||
this.btnGetResults.Location = new System.Drawing.Point(463, 13);
|
||||
this.btnGetResults.Name = "btnGetResults";
|
||||
this.btnGetResults.Size = new System.Drawing.Size(83, 80);
|
||||
this.btnGetResults.TabIndex = 12;
|
||||
this.btnGetResults.Text = "Store Calibration";
|
||||
this.btnGetResults.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// ctlBatch
|
||||
//
|
||||
this.ctlBatch.AutoSize = true;
|
||||
this.ctlBatch.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.ctlBatch.Location = new System.Drawing.Point(112, 145);
|
||||
this.ctlBatch.Location = new System.Drawing.Point(12, 146);
|
||||
this.ctlBatch.MinimumSize = new System.Drawing.Size(660, 440);
|
||||
this.ctlBatch.Name = "ctlBatch";
|
||||
this.ctlBatch.Size = new System.Drawing.Size(697, 463);
|
||||
this.ctlBatch.TabIndex = 15;
|
||||
//
|
||||
// preAdjWr1
|
||||
//
|
||||
this.preAdjWr1.Location = new System.Drawing.Point(727, 179);
|
||||
this.preAdjWr1.Name = "preAdjWr1";
|
||||
this.preAdjWr1.Size = new System.Drawing.Size(976, 658);
|
||||
this.preAdjWr1.TabIndex = 16;
|
||||
//
|
||||
// FrmLegacyTestApp
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1378, 697);
|
||||
this.Controls.Add(this.preAdjWr1);
|
||||
this.Controls.Add(this.ctlBatch);
|
||||
this.Controls.Add(this.btnCheckAll);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
@@ -255,5 +264,6 @@
|
||||
private System.Windows.Forms.Button btnCheckAll;
|
||||
private System.Windows.Forms.Button btnGetResults;
|
||||
private XylemCommonUiLegacyGenCtl.ctlBatch ctlBatch;
|
||||
private XylemCommonUiLegacyGenCtl.PreAdjWr preAdjWr1;
|
||||
}
|
||||
}
|
||||
@@ -27,6 +27,9 @@ namespace GenesisToolBox
|
||||
{
|
||||
return NLogHelper.CreateOrGetLogger("GenesisToolBox");
|
||||
});
|
||||
|
||||
|
||||
|
||||
private MeterBatch mb = new MeterBatch();
|
||||
private DataTable dt = new DataTable();
|
||||
private DateTime? startTime = null;
|
||||
@@ -423,10 +426,10 @@ namespace GenesisToolBox
|
||||
{
|
||||
container.meterTestSettings[i] = new MeterTestSettings();
|
||||
container.meterTestSettings[i].Slot = slotNr;
|
||||
container.meterTestSettings[i].FlowAdjustment = false;
|
||||
container.meterTestSettings[i].FlowAdjustment = true;
|
||||
container.meterTestSettings[i].FlowAdjustmentTarget = 0;
|
||||
container.meterTestSettings[i].FlowTesting = true;
|
||||
container.meterTestSettings[i].PreAdjustment = false;
|
||||
container.meterTestSettings[i].PreAdjustment = true;
|
||||
container.meterTestSettings[i].SerialNr = $"450000{slotNr}";
|
||||
container.meterTestSettings[i].meterType = MeterTypes.MagFlux;
|
||||
|
||||
|
||||
@@ -261,6 +261,7 @@ namespace XylemCommonUiLegacyGenCtl
|
||||
{
|
||||
try
|
||||
{
|
||||
_logger.Info("Start Action");
|
||||
if (Mode == MeterTypes.Cordonel)
|
||||
{
|
||||
|
||||
@@ -277,11 +278,15 @@ namespace XylemCommonUiLegacyGenCtl
|
||||
}
|
||||
else if (Mode == MeterTypes.MagFlux)
|
||||
{
|
||||
_logger.Info("MagFlux Zeroflow is preparing");
|
||||
|
||||
wrappedControl.SetBusy(true);
|
||||
wrappedControl.StatusLabel("MagFlux Zeroflow is preparing");
|
||||
var meterBatch = new MeterBatch();
|
||||
|
||||
var t = new Task(() => {
|
||||
|
||||
|
||||
foreach (var item in TestsetuptContainer?.meterTestSettings)
|
||||
{
|
||||
if (item != null && item.PreAdjustment && item.meterType == MeterTypes.MagFlux)
|
||||
|
||||
@@ -297,7 +297,11 @@ namespace XylemCommonUiLegacyGenCtl
|
||||
}
|
||||
if (testSetup.meterTestSettings == null)
|
||||
{
|
||||
return false;
|
||||
|
||||
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
return testSetup.meterTestSettings.Any(x => x.FlowTesting);
|
||||
}
|
||||
|
||||
@@ -1586,6 +1586,10 @@ namespace XylemCommonUiLegacyGenCtl
|
||||
{
|
||||
t = MeasurementDirection.TakeBoth;
|
||||
}
|
||||
if (testset.meterType == MeterTypes.MagFlux)
|
||||
{
|
||||
t = MeasurementDirection.TakeBoth;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
|
||||
|
||||
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<entityFramework>
|
||||
|
||||
<providers>
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Data.Sqlite" publicKeyToken="adb9793829ddae60" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-8.0.10.0" newVersion="8.0.10.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{6E586E6D-643E-4301-BE4F-005DB366A430}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>DataModel</RootNamespace>
|
||||
<AssemblyName>DataModel</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.ComponentModel.Composition" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.IO.Compression.FileSystem" />
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Transactions" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ExposedSpsVariable.cs" />
|
||||
<Compile Include="LoggerContext.cs" />
|
||||
<Compile Include="Format.cs" />
|
||||
<Compile Include="LogTrigger.cs" />
|
||||
<Compile Include="Profile.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ValueProperty.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="Properties\DataSources\ExposedSpsVariable.datasource" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Data.Sqlite">
|
||||
<Version>8.0.10</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite">
|
||||
<Version>1.1.6</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="SQLite">
|
||||
<Version>3.13.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3">
|
||||
<Version>2.1.10</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3">
|
||||
<Version>2.1.10</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace DataModel
|
||||
{
|
||||
public class ExposedSpsVariable
|
||||
{
|
||||
[Key]
|
||||
public int ID { get; set; }
|
||||
public string SpsVarName { get; set; }
|
||||
|
||||
public bool Visible { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataModel
|
||||
{
|
||||
public class Format
|
||||
{
|
||||
[Key]
|
||||
public int ID { get; set; }
|
||||
public String Name { get; set; }
|
||||
|
||||
public virtual Profile OnProfile { get; set; }
|
||||
|
||||
public virtual ICollection<ValueProperty> ValueProperties { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataModel
|
||||
{
|
||||
public class LogTrigger
|
||||
{
|
||||
[Key]
|
||||
public int ID { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
|
||||
namespace DataModel
|
||||
{
|
||||
public class LoggerContext : DbContext
|
||||
{
|
||||
|
||||
public LoggerContext(String connString)
|
||||
: base()
|
||||
{
|
||||
|
||||
}
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
optionsBuilder.UseSqlite("Data Source=logging.db");
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
|
||||
modelBuilder.Entity<Profile>()
|
||||
.HasMany(e => e.ValueProperties);
|
||||
}
|
||||
|
||||
|
||||
public DbSet<Profile> Profiles { get; set; }
|
||||
public DbSet<LogTrigger> Logtiggers { get; set; }
|
||||
public DbSet<ValueProperty> ValueProperties { get; set; }
|
||||
public DbSet<Format> Formats { get; set; }
|
||||
|
||||
public DbSet<ExposedSpsVariable> ExposedSpsVariables { get; set; }
|
||||
|
||||
|
||||
|
||||
public void Init(bool restore = false)
|
||||
{
|
||||
|
||||
//Database.EnsureCreated();
|
||||
Formats.Load();
|
||||
if (!Formats.Any() || restore)
|
||||
{
|
||||
if (restore)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
var formatCSV = new Format() { Name = "CSV" };
|
||||
var formatJson = new Format() { Name = "JSON" };
|
||||
Formats.Add(formatCSV);
|
||||
Formats.Add(formatJson);
|
||||
var OneSekTimer = new LogTrigger() { Name = "Timer 1 Sek" };
|
||||
var OnChangeTigger = new LogTrigger() { Name = "OnChange" };
|
||||
Logtiggers.Add(OneSekTimer);
|
||||
Logtiggers.Add(new LogTrigger() { Name = "Timer 10 Sek" });
|
||||
Logtiggers.Add(new LogTrigger() { Name = "Timer 1 min" });
|
||||
Logtiggers.Add(OnChangeTigger);
|
||||
|
||||
|
||||
}
|
||||
SaveChanges();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace DataModel
|
||||
{
|
||||
public class Profile
|
||||
{
|
||||
|
||||
[Key]
|
||||
public int ID { get; set; }
|
||||
|
||||
public String Name { get; set; }
|
||||
public String User { get; set; }
|
||||
public String Description { get; set; }
|
||||
|
||||
public bool isActive { get; set; }
|
||||
public String OutputPath { get; set; }
|
||||
|
||||
|
||||
public virtual Format LogFormat { get; set; }
|
||||
|
||||
public virtual ICollection<ValueProperty> ValueProperties { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("DataModel")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("DataModel")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("6e586e6d-643e-4301-be4f-005db366a430")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="ExposedSpsVariable" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>DataModel.ExposedSpsVariable, DataModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace DataModel
|
||||
{
|
||||
public class ValueProperty
|
||||
{
|
||||
[Key]
|
||||
public int ID { get; set; }
|
||||
public String SPSName { get; set; }
|
||||
public String DisplayName { get; set; }
|
||||
public Profile profile { get; set; }
|
||||
public virtual LogTrigger Trigger { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Express 2013 for Windows Desktop
|
||||
VisualStudioVersion = 12.0.31101.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UA_Client_1500", "UA_Client_1500\UA_Client_1500.csproj", "{4A2B8D64-E86A-4B5C-8880-A0B5E83AA669}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UA Core Library", "UA_Client_1500\Stack\Core\UA Core Library.csproj", "{7543AFCB-F5AF-44AF-83C9-23164474C1E9}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UA Client Library", "UA_Client_1500\Client\UA Client Library.csproj", "{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{4A2B8D64-E86A-4B5C-8880-A0B5E83AA669}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4A2B8D64-E86A-4B5C-8880-A0B5E83AA669}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4A2B8D64-E86A-4B5C-8880-A0B5E83AA669}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4A2B8D64-E86A-4B5C-8880-A0B5E83AA669}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
|
||||
<configSections>
|
||||
|
||||
|
||||
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
|
||||
|
||||
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="Logger" connectionString="data source=.\Logger.sqlite" providerName="System.Data.SQLite" />
|
||||
</connectionStrings>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
<entityFramework>
|
||||
</entityFramework>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Data.Sqlite" publicKeyToken="adb9793829ddae60" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-8.0.10.0" newVersion="8.0.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
@@ -0,0 +1,9 @@
|
||||
<Application x:Class="SPSLogger.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:SPSLogger"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace SPSLogger
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<Window
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:SPSLogger"
|
||||
xmlns:DataModel="clr-namespace:DataModel;assembly=DataModel"
|
||||
x:Class="SPSLogger.ExposedSpsVariable"
|
||||
mc:Ignorable="d"
|
||||
Title="ValueDetails" Height="450" Width="800" Loaded="Window_Loaded">
|
||||
<Window.Resources>
|
||||
<CollectionViewSource x:Key="exposedSpsVariableViewSource" d:DesignSource="{d:DesignInstance {x:Type DataModel:ExposedSpsVariable}, CreateList=True}"/>
|
||||
</Window.Resources>
|
||||
|
||||
|
||||
|
||||
<Grid DataContext="{StaticResource exposedSpsVariableViewSource}" >
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="63*"/>
|
||||
<RowDefinition Height="356*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<DataGrid x:Name="exposedSpsVariableDataGrid" AutoGenerateColumns="False" MouseDoubleClick="Row_MouseDoubleClick" IsReadOnly="True" EnableRowVirtualization="True" ItemsSource="{Binding}" Margin="10" Grid.Row="1" RowDetailsVisibilityMode="VisibleWhenSelected">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn x:Name="iDColumn" Binding="{Binding ID}" Header="ID" Width="SizeToHeader"/>
|
||||
<DataGridTextColumn x:Name="spsVarNameColumn" Binding="{Binding SpsVarName}" Header="Sps Var Name" Width="SizeToHeader"/>
|
||||
<DataGridCheckBoxColumn x:Name="visibleColumn" Binding="{Binding Visible}" Header="Visible" Width="SizeToHeader"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Button Content="Get Variables from SPS" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="198" Height="43" Click="Button_Click"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
@@ -0,0 +1,167 @@
|
||||
using DataModel;
|
||||
using Opc.Ua;
|
||||
using Opc.Ua.Client;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using Xylem.Common.Hardware.Plc.Siemens.Client.TestbenchAdapter;
|
||||
|
||||
namespace SPSLogger
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ProfileDetails.xaml
|
||||
/// </summary>
|
||||
public partial class ExposedSpsVariable : Window
|
||||
{
|
||||
private UAClientHelperAPI myClientHelperAPI = new UAClientHelperAPI();
|
||||
|
||||
public readonly LoggerContext mc;
|
||||
private string myUrl;
|
||||
private Session mySession;
|
||||
|
||||
public ExposedSpsVariable(LoggerContext cnt, string url)
|
||||
{
|
||||
InitializeComponent();
|
||||
mc = cnt;
|
||||
myUrl = url;
|
||||
}
|
||||
|
||||
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
System.Windows.Data.CollectionViewSource exposedSpsVariableViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("exposedSpsVariableViewSource")));
|
||||
// Load data by setting the CollectionViewSource.Source property:
|
||||
mc.ExposedSpsVariables.Load();
|
||||
exposedSpsVariableViewSource.Source = mc.ExposedSpsVariables.Local;
|
||||
}
|
||||
|
||||
private List<VariableNode> allNodes = new List<VariableNode>();
|
||||
private void Log(string msg)
|
||||
{
|
||||
|
||||
}
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
EndpointDescriptionCollection endpoints = myClientHelperAPI.GetEndpoints(myUrl);
|
||||
foreach (var endpoint in endpoints)
|
||||
{
|
||||
if (mySession == null || mySession.Disposed)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
//myClientHelperAPI.CertificateValidationNotification += new CertificateValidationEventHandler(Notification_ServerCertificate);
|
||||
Log("CertificateValidationNotification");
|
||||
myClientHelperAPI.Connect(endpoint, false, "", "");
|
||||
mySession = myClientHelperAPI.Session;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var l = new List<ReferenceDescription>();
|
||||
try
|
||||
{
|
||||
|
||||
List<string> rootNodes = new List<string>();
|
||||
rootNodes.Add("ns=3;s=\"Daten VB Schreiben\"");
|
||||
rootNodes.Add("ns=3;s=\"DATEN PC\"");
|
||||
|
||||
foreach (string sNodes in rootNodes)
|
||||
{
|
||||
var n = myClientHelperAPI.BrowseNode(new ReferenceDescription() { NodeId = sNodes });
|
||||
foreach (var refDesc in n)
|
||||
{
|
||||
deepr(refDesc, 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, "Error");
|
||||
}
|
||||
|
||||
|
||||
foreach (var item in allNodes)
|
||||
{
|
||||
if (!mc.ExposedSpsVariables.Any(s => s.SpsVarName == item.NodeId.ToString()))
|
||||
{
|
||||
mc.ExposedSpsVariables.Add(new DataModel.ExposedSpsVariable() { SpsVarName = item.NodeId.ToString(), Visible = false });
|
||||
}
|
||||
|
||||
}
|
||||
mc.SaveChanges();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void deepr(ReferenceDescription search, int lvl)
|
||||
{
|
||||
Node node = myClientHelperAPI.ReadNode(search.NodeId.ToString());
|
||||
|
||||
Log("deepr:" + search.DisplayName + " on lvl " + lvl.ToString());
|
||||
if (node.NodeClass == NodeClass.Variable)
|
||||
{
|
||||
allNodes.Add((VariableNode)node.DataLock);
|
||||
Log("has node:" + node.DisplayName + " on lvl " + lvl.ToString());
|
||||
}
|
||||
|
||||
if (lvl > 10)
|
||||
{
|
||||
MessageBox.Show("Level to deep");
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var item in myClientHelperAPI.BrowseNode(search))
|
||||
{
|
||||
deepr(item, lvl + 1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void Row_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
// Ensure row was clicked and not empty space
|
||||
var row = ItemsControl.ContainerFromElement((DataGrid)sender,
|
||||
e.OriginalSource as DependencyObject) as DataGridRow;
|
||||
|
||||
if (row == null) return;
|
||||
|
||||
if (row.DataContext is DataModel.ExposedSpsVariable p)
|
||||
{
|
||||
p.Visible = !p.Visible;
|
||||
mc.SaveChanges();
|
||||
|
||||
//mc.ExposedSpsVariables.Load();
|
||||
//System.Windows.Data.CollectionViewSource exposedSpsVariableViewSource =
|
||||
((System.Windows.Data.CollectionViewSource)(this.FindResource("exposedSpsVariableViewSource"))).View.Refresh();
|
||||
//exposedSpsVariableViewSource.Source = mc.ExposedSpsVariables.Local;
|
||||
//exposedSpsVariableViewSource.
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,305 @@
|
||||
using NLog;
|
||||
using Opc.Ua;
|
||||
using Opc.Ua.Client;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Xylem.Common.Hardware.Plc.Siemens.Client.TestbenchAdapter;
|
||||
|
||||
namespace SPSLogger
|
||||
{
|
||||
public class MainLogger
|
||||
{
|
||||
private Session mySession;
|
||||
private Subscription mySubscription;
|
||||
|
||||
private UAClientHelperAPI myClientHelperAPI = new UAClientHelperAPI();
|
||||
|
||||
private EndpointDescription mySelectedEndpoint;
|
||||
|
||||
public string Url { get; set; }
|
||||
public int ID { get; set; }
|
||||
public String Name { get; set; }
|
||||
public String OutputPath { get; set; }
|
||||
public Format OutputFormat { get; set; }
|
||||
public enum Format
|
||||
{
|
||||
Txt,
|
||||
Json,
|
||||
Csv
|
||||
}
|
||||
|
||||
public List<LogItem> LogItems { get; set; }
|
||||
|
||||
public class LogItem
|
||||
{
|
||||
public String Varname { get; set; }
|
||||
public LogTrigger Trigger { get; set; }
|
||||
public Variant Value { get; set; }
|
||||
public int? TigerTime { get; set; }
|
||||
}
|
||||
public enum LogTrigger
|
||||
{
|
||||
OnChange,
|
||||
Timer,
|
||||
}
|
||||
public LoggerState State { get; set; }
|
||||
public DateTime LastLogTimeUTC { get; private set; }
|
||||
|
||||
public enum LoggerState
|
||||
{
|
||||
Idle,
|
||||
PrepareConnection,
|
||||
PrepareSubscriptions,
|
||||
PrepareCheckoutput,
|
||||
Running,
|
||||
Aborted,
|
||||
Error,
|
||||
}
|
||||
public MainLogger(string url ,int id, string name, Format outputFormat, List<LogItem> logItems)
|
||||
{
|
||||
Url = url;
|
||||
ID = id;
|
||||
Name = name;
|
||||
OutputFormat = outputFormat;
|
||||
LogItems = logItems;
|
||||
State = LoggerState.Idle;
|
||||
}
|
||||
private Task runHandlerOutput;
|
||||
public void Start(CancellationToken c)
|
||||
{
|
||||
runHandlerOutput = new Task(async () => { await LoggerLoopAsync(c); }, c);
|
||||
runHandlerOutput.Start();
|
||||
|
||||
}
|
||||
|
||||
private async Task LoggerLoopAsync(CancellationToken c)
|
||||
{
|
||||
|
||||
while (State != LoggerState.Aborted && State != LoggerState.Error && !c.IsCancellationRequested)
|
||||
{
|
||||
switch (State)
|
||||
{
|
||||
case LoggerState.Idle:
|
||||
State = LoggerState.PrepareConnection;
|
||||
break;
|
||||
case LoggerState.PrepareConnection:
|
||||
if (Connection())
|
||||
{
|
||||
State = LoggerState.PrepareSubscriptions;
|
||||
}
|
||||
else
|
||||
{
|
||||
State = LoggerState.Error;
|
||||
}
|
||||
|
||||
break;
|
||||
case LoggerState.PrepareSubscriptions:
|
||||
if (Subscriptions())
|
||||
{
|
||||
State = LoggerState.PrepareCheckoutput;
|
||||
}
|
||||
else
|
||||
{
|
||||
State = LoggerState.Error;
|
||||
}
|
||||
break;
|
||||
case LoggerState.PrepareCheckoutput:
|
||||
if (Checkoutput())
|
||||
{
|
||||
State = LoggerState.Running;
|
||||
}
|
||||
else
|
||||
{
|
||||
State = LoggerState.Error;
|
||||
}
|
||||
break;
|
||||
case LoggerState.Running:
|
||||
Log();
|
||||
break;
|
||||
case LoggerState.Aborted:
|
||||
break;
|
||||
case LoggerState.Error:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
await Task.Delay(500);
|
||||
}
|
||||
|
||||
}
|
||||
private MonitoredItem myMonitoredItem;
|
||||
public void AddSubscription(string RegisterName)
|
||||
{
|
||||
|
||||
string itemName = "subS" + RegisterName;
|
||||
if (this.mySubscription == null)
|
||||
{
|
||||
this.mySubscription = this.myClientHelperAPI.Subscribe(1000);
|
||||
}
|
||||
|
||||
myMonitoredItem = this.myClientHelperAPI.AddMonitoredItem(this.mySubscription, RegisterName, itemName, 1);
|
||||
this.myClientHelperAPI.ItemChangedNotification += Notification_MonitoredItem;
|
||||
|
||||
}
|
||||
|
||||
private void Notification_MonitoredItem(MonitoredItem monitoredItem, MonitoredItemNotificationEventArgs e)
|
||||
{
|
||||
//subS
|
||||
if ((e.NotificationValue is MonitoredItemNotification notificationValue))
|
||||
{
|
||||
if (monitoredItem.DisplayName.StartsWith("subS"))
|
||||
{
|
||||
foreach (var item in LogItems.Where(w => w.Varname == monitoredItem.DisplayName.Remove(0, "subS".Length)))
|
||||
{
|
||||
if (item.Value != notificationValue.Value.WrappedValue)
|
||||
{
|
||||
item.Value = notificationValue.Value.WrappedValue;
|
||||
if (item.Trigger == LogTrigger.OnChange)
|
||||
{
|
||||
LogAction();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void ErrorCall(Exception e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
private void Log()
|
||||
{
|
||||
var logINtervall = LogItems.Where(l => l.TigerTime.HasValue).Min(m => m.TigerTime.Value);
|
||||
if (LastLogTimeUTC.AddSeconds(logINtervall) > DateTime.UtcNow)
|
||||
{
|
||||
LogAction();
|
||||
LastLogTimeUTC = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void LogAction()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append(DateTime.Now).Append(";");
|
||||
foreach (var item in LogItems)
|
||||
{
|
||||
sb.Append(item.Value).Append(";");
|
||||
}
|
||||
Logger.Log(LogLevel.Info, sb.ToString());
|
||||
}
|
||||
|
||||
private bool Checkoutput()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var config = new NLog.Config.LoggingConfiguration();
|
||||
|
||||
// Targets where to log to: File and Console
|
||||
var logfile = new NLog.Targets.FileTarget(Name) { FileName = OutputPath};
|
||||
var logconsole = new NLog.Targets.ConsoleTarget("logconsole");
|
||||
|
||||
// Rules for mapping loggers to targets
|
||||
config.AddRule(LogLevel.Info, LogLevel.Fatal, logconsole);
|
||||
config.AddRule(LogLevel.Debug, LogLevel.Fatal, logfile);
|
||||
|
||||
// Apply config
|
||||
NLog.LogManager.Configuration = config;
|
||||
Logger = NLog.LogManager.GetLogger(Name);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
private NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger();
|
||||
private bool Subscriptions()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
private bool Connection()
|
||||
{
|
||||
EndpointDescriptionCollection endpoints = myClientHelperAPI.GetEndpoints(Url);
|
||||
foreach (var endpoint in endpoints)
|
||||
{
|
||||
if (mySession == null || mySession.Disposed)
|
||||
{
|
||||
try
|
||||
{
|
||||
myClientHelperAPI.KeepAliveNotification += new KeepAliveEventHandler(Notification_KeepAlive);
|
||||
|
||||
myClientHelperAPI.Connect(endpoint, false, "", "");
|
||||
mySession = myClientHelperAPI.Session;
|
||||
return myClientHelperAPI.Session.Connected;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrorCall(ex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
private void Notification_KeepAlive(Session sender, KeepAliveEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
// check for events from discarded sessions.
|
||||
if (!Object.ReferenceEquals(sender, mySession))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// check for disconnected session.
|
||||
if (ServiceResult.IsBad(e.Status))
|
||||
{
|
||||
// try reconnecting using the existing session state
|
||||
mySession.Reconnect();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrorCall(ex);
|
||||
}
|
||||
}
|
||||
|
||||
public void Disconnect()
|
||||
{
|
||||
if (mySession != null && !mySession.Disposed)
|
||||
{
|
||||
try
|
||||
{
|
||||
mySubscription.Delete(true);
|
||||
}
|
||||
catch
|
||||
{
|
||||
//ignore
|
||||
;
|
||||
}
|
||||
|
||||
myClientHelperAPI.Disconnect();
|
||||
mySession = myClientHelperAPI.Session;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<Window
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:SPSLogger"
|
||||
xmlns:DataModel="clr-namespace:DataModel;assembly=DataModel" x:Class="SPSLogger.MainWindow"
|
||||
mc:Ignorable="d"
|
||||
Title="Sps Logger" Height="354" Width="636.5" Loaded="Window_Loaded">
|
||||
<Window.Resources>
|
||||
<CollectionViewSource x:Key="profileViewSource" d:DesignSource="{d:DesignInstance {x:Type DataModel:Profile}, CreateList=True}"/>
|
||||
</Window.Resources>
|
||||
<Grid >
|
||||
<Menu>
|
||||
|
||||
<MenuItem Header="Database">
|
||||
<MenuItem Header="Settings" Click="OpenSettings"/>
|
||||
<MenuItem Header="RestoreDB" Click="RestoreDB"/>
|
||||
</MenuItem>
|
||||
<MenuItem Header="SessionLog" Click="OpenSessionLog">
|
||||
</MenuItem>
|
||||
<MenuItem Header="SpsVariables" Click="OpenSpsVar">
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
<Button Content="Add Profile" HorizontalAlignment="Left" Height="25" Margin="478,36,0,0" VerticalAlignment="Top" Width="112" Click="AddProfile_Click"/>
|
||||
|
||||
<DataGrid Margin="0,83,38,34" DataContext="{StaticResource profileViewSource}" ItemsSource="{Binding}" MouseDoubleClick="Row_MouseDoubleClick" IsReadOnly="true" HorizontalAlignment="Right" Width="548" />
|
||||
<Button Content="Start" HorizontalAlignment="Left" Height="25" Margin="194,36,0,0" VerticalAlignment="Top" Width="125" Click="Button_Click"/>
|
||||
<TextBox x:Name="txtOpcServer" HorizontalAlignment="Left" Height="25" Margin="42,36,0,0" TextWrapping="Wrap" Text="opc.tcp://192.168.0.1" VerticalAlignment="Top" Width="124"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
@@ -0,0 +1,133 @@
|
||||
using DataModel;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace SPSLogger
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public readonly LoggerContext mc = new LoggerContext("data source=Logger.sqlite");
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
mc.Init();
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
mc.Profiles.Load();
|
||||
mc.ValueProperties.Load();
|
||||
mc.Logtiggers.Load();
|
||||
foreach (var item in mc.Profiles.Where(f => f.isActive))
|
||||
{
|
||||
if (!currentlogger.Any(f => f.Name == item.Name))
|
||||
{
|
||||
var l = new List<MainLogger.LogItem>();
|
||||
foreach (var logItem in item.ValueProperties)
|
||||
{
|
||||
int? TggerTime = null;
|
||||
SPSLogger.MainLogger.LogTrigger lt = MainLogger.LogTrigger.OnChange;
|
||||
switch (logItem.Trigger.Name)
|
||||
{
|
||||
case "Timer 1 Sek":
|
||||
lt = MainLogger.LogTrigger.Timer;
|
||||
TggerTime = 1;
|
||||
break;
|
||||
|
||||
case "Timer 10 Sek":
|
||||
lt = MainLogger.LogTrigger.Timer;
|
||||
TggerTime = 10;
|
||||
break;
|
||||
|
||||
case "Timer 1 min":
|
||||
lt = MainLogger.LogTrigger.Timer;
|
||||
TggerTime = 60;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
l.Add(new MainLogger.LogItem() { Varname = logItem.SPSName, Trigger = lt, TigerTime = TggerTime });
|
||||
}
|
||||
currentlogger.Add(new MainLogger(txtOpcServer.Text, item.ID, item.Name, MainLogger.Format.Csv, l));
|
||||
currentlogger.Last().Start(new System.Threading.CancellationToken());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public List<MainLogger> currentlogger = new List<MainLogger>();
|
||||
private void AddProfile_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var f = new ProfileDetails(new Profile() { ValueProperties = new List<ValueProperty>() }, mc);
|
||||
f.Show();
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
System.Windows.Data.CollectionViewSource profileViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("profileViewSource")));
|
||||
// Load data by setting the CollectionViewSource.Source property:
|
||||
mc.Profiles.Load();
|
||||
profileViewSource.Source = mc.Profiles.Local;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void Row_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
// Ensure row was clicked and not empty space
|
||||
var row = ItemsControl.ContainerFromElement((DataGrid)sender,
|
||||
e.OriginalSource as DependencyObject) as DataGridRow;
|
||||
|
||||
if (row == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (row.DataContext is Profile p)
|
||||
{
|
||||
var f = new ProfileDetails(p, mc);
|
||||
f.Show();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void OpenSettings(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
private void RestoreDB(object sender, RoutedEventArgs e)
|
||||
{
|
||||
mc.Init(true);
|
||||
}
|
||||
|
||||
private void OpenSessionLog(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void OpenSpsVar(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var expos = new ExposedSpsVariable(mc, txtOpcServer.Text);
|
||||
expos.Show();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
<Window
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:SPSLogger"
|
||||
xmlns:DataModel="clr-namespace:DataModel;assembly=DataModel"
|
||||
x:Class="SPSLogger.ProfileDetails"
|
||||
mc:Ignorable="d"
|
||||
Title="ProfileDetails" Height="450" Width="800" Loaded="Window_Loaded">
|
||||
|
||||
<Window.Resources>
|
||||
<CollectionViewSource x:Key="valuePropertyViewSource" d:DesignSource="{d:DesignInstance {x:Type DataModel:ValueProperty}, CreateList=True}"/>
|
||||
<CollectionViewSource x:Key="formatViewSource" d:DesignSource="{d:DesignInstance {x:Type DataModel:Format}, CreateList=True}"/>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid >
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="38*"/>
|
||||
<RowDefinition Height="52*"/>
|
||||
<RowDefinition Height="39*"/>
|
||||
<RowDefinition Height="33*"/>
|
||||
<RowDefinition Height="39*"/>
|
||||
<RowDefinition Height="44*"/>
|
||||
<RowDefinition Height="42*"/>
|
||||
<RowDefinition Height="36*"/>
|
||||
<RowDefinition Height="96*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="61*"/>
|
||||
<ColumnDefinition Width="137*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Row="0" Grid.Column="0" Content="ID" Grid.RowSpan="2"/>
|
||||
<Label Grid.Row="0" Grid.Column="1" x:Name="iDColumn" Content="{Binding ID}" Grid.RowSpan="2" />
|
||||
|
||||
|
||||
<Label Grid.Row="1" Grid.Column="0" Content="Name"/>
|
||||
<TextBox Grid.Row="1" Grid.Column="1" x:Name="iDName" Text="{Binding Name}" />
|
||||
|
||||
<Label Grid.Row="2" Grid.Column="0" Content="Description"/>
|
||||
<TextBox Grid.Row="2" Grid.Column="1" x:Name="iDDescription" Text="{Binding Description}" />
|
||||
|
||||
<Label Grid.Row="3" Grid.Column="0" Content="isActive" />
|
||||
<CheckBox Grid.Row="3" Grid.Column="1" x:Name="isActiveColumn" IsChecked="{Binding isActive}" />
|
||||
|
||||
|
||||
<Label Grid.Row="4" Grid.Column="0" Content="Format"/>
|
||||
<ComboBox Grid.Row="4" Grid.Column="1" x:Name="iDfromat" DataContext="{StaticResource formatViewSource}" DisplayMemberPath="Name" ItemsSource="{Binding}" SelectedValuePath="ID" />
|
||||
|
||||
|
||||
|
||||
<Label Grid.Row="5" Grid.Column="0" Content="OutputPath" />
|
||||
<TextBox Grid.Row="5" Grid.Column="1" x:Name="isOutputPath" Text="{Binding OutputPath}" />
|
||||
|
||||
<Label Grid.Row="6" Grid.Column="0" Content="User" />
|
||||
<TextBox Grid.Row="6" Grid.Column="1" x:Name="userColumn" Text="{Binding User}" />
|
||||
|
||||
|
||||
<DataGrid x:Name="valuePropertyDataGrid" AutoGenerateColumns="False" IsReadOnly="True" MouseDoubleClick="ValuePropertyDataGrid_MouseDoubleClick" EnableRowVirtualization="True" DataContext="{StaticResource valuePropertyViewSource}" ItemsSource="{Binding}" Margin="71,8,75,10" Grid.Row="8" RowDetailsVisibilityMode="VisibleWhenSelected" Grid.ColumnSpan="2">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn x:Name="displayNameColumn" Binding="{Binding DisplayName}" Header="Display Name" />
|
||||
<DataGridTextColumn x:Name="iDColumn1" Binding="{Binding ID}" Header="ID" />
|
||||
<DataGridTextColumn x:Name="sPSNameColumn" Binding="{Binding SPSName}" Header="SPSName" />
|
||||
<DataGridTextColumn x:Name="sPSTrigger" Binding="{Binding Trigger.Name}" Header="Trigger" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Button Content="Add" Grid.Column="1" HorizontalAlignment="Left" Margin="478,0,0,0" Grid.Row="8" VerticalAlignment="Top" Width="38" Height="57" Click="Button_Click"/>
|
||||
<Button Content="Save" Grid.Column="1" HorizontalAlignment="Left" Margin="10,0,0,0" Grid.Row="7" VerticalAlignment="Top" Width="146" Height="36" Click="Save_Click"/>
|
||||
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
@@ -0,0 +1,91 @@
|
||||
using DataModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace SPSLogger
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ProfileDetails.xaml
|
||||
/// </summary>
|
||||
public partial class ProfileDetails : Window
|
||||
{
|
||||
public readonly LoggerContext mc;
|
||||
public Profile Profile;
|
||||
public ProfileDetails(Profile p , LoggerContext cont)
|
||||
{
|
||||
InitializeComponent();
|
||||
Profile = p;
|
||||
mc = cont;
|
||||
this.DataContext = Profile;
|
||||
}
|
||||
|
||||
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
mc.ValueProperties.Load();
|
||||
System.Windows.Data.CollectionViewSource valuePropertyViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("valuePropertyViewSource")));
|
||||
// Load data by setting the CollectionViewSource.Source property:
|
||||
var l = mc.Profiles.FirstOrDefault(p => p.ID == Profile.ID)?.ValueProperties;
|
||||
|
||||
valuePropertyViewSource.Source = l;
|
||||
System.Windows.Data.CollectionViewSource formatViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("formatViewSource")));
|
||||
|
||||
mc.Formats.Load();
|
||||
formatViewSource.Source = mc.Formats.Local;
|
||||
if (Profile.LogFormat != null)
|
||||
{
|
||||
iDfromat.SelectedValue = Profile.LogFormat.ID;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void ValuePropertyDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
var row = ItemsControl.ContainerFromElement((DataGrid)sender,
|
||||
e.OriginalSource as DependencyObject) as DataGridRow;
|
||||
|
||||
if (row == null) return;
|
||||
|
||||
if (row.DataContext is ValueProperty p)
|
||||
{
|
||||
|
||||
var f = new ValueDetails(p, mc );
|
||||
f.Show();
|
||||
}
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var f = new ValueDetails(new ValueProperty() { profile = Profile }, mc);
|
||||
f.Show();
|
||||
}
|
||||
|
||||
private void Save_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (Profile.ID == 0)
|
||||
{
|
||||
mc.Profiles.Add(Profile);
|
||||
|
||||
}
|
||||
|
||||
mc.SaveChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("SPSLogger")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SPSLogger")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
//In order to begin building localizable applications, set
|
||||
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
|
||||
//inside a <PropertyGroup>. For example, if you are using US english
|
||||
//in your source files, set the <UICulture> to en-US. Then uncomment
|
||||
//the NeutralResourceLanguage attribute below. Update the "en-US" in
|
||||
//the line below to match the UICulture setting in the project file.
|
||||
|
||||
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
|
||||
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||
//(used if a resource is not found in the page,
|
||||
// or application resource dictionaries)
|
||||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||
//(used if a resource is not found in the page,
|
||||
// app, or any theme specific resource dictionaries)
|
||||
)]
|
||||
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="ExposedSpsVariable" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>DataModel.ExposedSpsVariable, DataModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="Format" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>DataModel.Format, DataModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="LogTrigger" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>DataModel.LogTrigger, DataModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="Profile" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>DataModel.Profile, DataModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="ValueProperty" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>DataModel.ValueProperty, DataModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SPSLogger.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SPSLogger.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SPSLogger.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
@@ -0,0 +1,174 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{B2845D93-9F95-4974-9754-DAFBE55A6A84}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>SPSLogger</RootNamespace>
|
||||
<AssemblyName>SPSLogger</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.ComponentModel.Composition" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.IO.Compression.FileSystem" />
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Xaml">
|
||||
<RequiredTargetFramework>4.0</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Page Include="MainWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainLogger.cs" />
|
||||
<Compile Include="MainWindow.xaml.cs">
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Page Include="ExposedSpsVariable.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="ValueDetail.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="ProfileDetails.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ExposedSpsVariable.xaml.cs">
|
||||
<DependentUpon>ExposedSpsVariable.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ValueDetail.xaml.cs">
|
||||
<DependentUpon>ValueDetail.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ProfileDetails.xaml.cs">
|
||||
<DependentUpon>ProfileDetails.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<None Include="Properties\DataSources\DataModel.ExposedSpsVariable.datasource" />
|
||||
<None Include="Properties\DataSources\DataModel.Format.datasource" />
|
||||
<None Include="Properties\DataSources\DataModel.LogTrigger.datasource" />
|
||||
<None Include="Properties\DataSources\DataModel.Profile.datasource" />
|
||||
<None Include="Properties\DataSources\DataModel.ValueProperty.datasource" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Common\Hardware\PLC\Siemens\Client\TestbenchAdapter\TestbenchAdapter.csproj">
|
||||
<Project>{494AB06C-10C4-43F8-BC8A-92088EB35867}</Project>
|
||||
<Name>TestbenchAdapter</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Common\Hardware\PLC\Siemens\Client\UALibray\UALibrary.csproj">
|
||||
<Project>{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}</Project>
|
||||
<Name>UALibrary</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Common\Hardware\PLC\Siemens\Stack\Core\PlcCore.csproj">
|
||||
<Project>{7543AFCB-F5AF-44AF-83C9-23164474C1E9}</Project>
|
||||
<Name>PlcCore</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Model\DataModel\DataModel.csproj">
|
||||
<Project>{6e586e6d-643e-4301-be4f-005db366a430}</Project>
|
||||
<Name>DataModel</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="EntityFramework">
|
||||
<Version>6.5.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Data.Sqlite">
|
||||
<Version>8.0.10</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore">
|
||||
<Version>1.1.6</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NLog">
|
||||
<Version>5.3.4</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="SQLite">
|
||||
<Version>3.13.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3">
|
||||
<Version>2.1.10</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3">
|
||||
<Version>2.1.10</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="System.Diagnostics.DiagnosticSource">
|
||||
<Version>4.3.1</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,125 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.33423.255
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SPSLogger", "SPSLogger.csproj", "{B2845D93-9F95-4974-9754-DAFBE55A6A84}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Model", "Model", "{2964A31B-CFAD-430B-A003-2B0C7B81F633}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataModel", "..\Model\DataModel\DataModel.csproj", "{6E586E6D-643E-4301-BE4F-005DB366A430}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Hardware", "Hardware", "{C1840DA1-DE83-467E-9830-DB3B97B23745}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestbenchAdapter", "..\..\Common\Hardware\PLC\Siemens\Client\TestbenchAdapter\TestbenchAdapter.csproj", "{494AB06C-10C4-43F8-BC8A-92088EB35867}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UALibrary", "..\..\Common\Hardware\PLC\Siemens\Client\UALibray\UALibrary.csproj", "{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlcCore", "..\..\Common\Hardware\PLC\Siemens\Stack\Core\PlcCore.csproj", "{7543AFCB-F5AF-44AF-83C9-23164474C1E9}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
_MANUAL_CONTROL|Any CPU = _MANUAL_CONTROL|Any CPU
|
||||
_MANUAL_CONTROL|x64 = _MANUAL_CONTROL|x64
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x64 = Debug|x64
|
||||
PerformTest|Any CPU = PerformTest|Any CPU
|
||||
PerformTest|x64 = PerformTest|x64
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}._MANUAL_CONTROL|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}._MANUAL_CONTROL|Any CPU.Build.0 = Release|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}._MANUAL_CONTROL|x64.ActiveCfg = Release|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}._MANUAL_CONTROL|x64.Build.0 = Release|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.PerformTest|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.PerformTest|Any CPU.Build.0 = Release|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.PerformTest|x64.ActiveCfg = Release|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.PerformTest|x64.Build.0 = Release|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{B2845D93-9F95-4974-9754-DAFBE55A6A84}.Release|x64.Build.0 = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}._MANUAL_CONTROL|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}._MANUAL_CONTROL|Any CPU.Build.0 = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}._MANUAL_CONTROL|x64.ActiveCfg = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}._MANUAL_CONTROL|x64.Build.0 = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.PerformTest|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.PerformTest|Any CPU.Build.0 = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.PerformTest|x64.ActiveCfg = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.PerformTest|x64.Build.0 = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430}.Release|x64.Build.0 = Release|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}._MANUAL_CONTROL|Any CPU.ActiveCfg = _MANUAL_CONTROL|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}._MANUAL_CONTROL|Any CPU.Build.0 = _MANUAL_CONTROL|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}._MANUAL_CONTROL|x64.ActiveCfg = _MANUAL_CONTROL|x64
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}._MANUAL_CONTROL|x64.Build.0 = _MANUAL_CONTROL|x64
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Debug|x64.Build.0 = Debug|x64
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.PerformTest|Any CPU.ActiveCfg = PerformTest|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.PerformTest|Any CPU.Build.0 = PerformTest|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.PerformTest|x64.ActiveCfg = PerformTest|x64
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.PerformTest|x64.Build.0 = PerformTest|x64
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Release|x64.ActiveCfg = Release|x64
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867}.Release|x64.Build.0 = Release|x64
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}._MANUAL_CONTROL|Any CPU.ActiveCfg = _MANUAL_CONTROL|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}._MANUAL_CONTROL|Any CPU.Build.0 = _MANUAL_CONTROL|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}._MANUAL_CONTROL|x64.ActiveCfg = _MANUAL_CONTROL|x64
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}._MANUAL_CONTROL|x64.Build.0 = _MANUAL_CONTROL|x64
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Debug|x64.Build.0 = Debug|x64
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.PerformTest|Any CPU.ActiveCfg = PerformTest|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.PerformTest|Any CPU.Build.0 = PerformTest|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.PerformTest|x64.ActiveCfg = PerformTest|x64
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.PerformTest|x64.Build.0 = PerformTest|x64
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Release|x64.ActiveCfg = Release|x64
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}.Release|x64.Build.0 = Release|x64
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}._MANUAL_CONTROL|Any CPU.ActiveCfg = _MANUAL_CONTROL|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}._MANUAL_CONTROL|Any CPU.Build.0 = _MANUAL_CONTROL|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}._MANUAL_CONTROL|x64.ActiveCfg = _MANUAL_CONTROL|x64
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}._MANUAL_CONTROL|x64.Build.0 = _MANUAL_CONTROL|x64
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Debug|x64.Build.0 = Debug|x64
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.PerformTest|Any CPU.ActiveCfg = PerformTest|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.PerformTest|Any CPU.Build.0 = PerformTest|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.PerformTest|x64.ActiveCfg = PerformTest|x64
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.PerformTest|x64.Build.0 = PerformTest|x64
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Release|x64.ActiveCfg = Release|x64
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{6E586E6D-643E-4301-BE4F-005DB366A430} = {2964A31B-CFAD-430B-A003-2B0C7B81F633}
|
||||
{494AB06C-10C4-43F8-BC8A-92088EB35867} = {C1840DA1-DE83-467E-9830-DB3B97B23745}
|
||||
{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90} = {C1840DA1-DE83-467E-9830-DB3B97B23745}
|
||||
{7543AFCB-F5AF-44AF-83C9-23164474C1E9} = {C1840DA1-DE83-467E-9830-DB3B97B23745}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {72C3065B-F840-4AED-A805-D3A0B985B7D7}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,62 @@
|
||||
<Window
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:SPSLogger"
|
||||
xmlns:DataModel="clr-namespace:DataModel;assembly=DataModel"
|
||||
x:Class="SPSLogger.ValueDetails"
|
||||
mc:Ignorable="d"
|
||||
Title="ValueDetails" Height="450" Width="800" Loaded="Window_Loaded">
|
||||
<Window.Resources>
|
||||
<CollectionViewSource x:Key="logTriggerViewSource" d:DesignSource="{d:DesignInstance {x:Type DataModel:LogTrigger}, CreateList=True}"/>
|
||||
<CollectionViewSource x:Key="exposedSpsVariableViewSource" d:DesignSource="{d:DesignInstance {x:Type DataModel:ExposedSpsVariable}, CreateList=True}"/>
|
||||
</Window.Resources>
|
||||
|
||||
|
||||
<Grid >
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="90*"/>
|
||||
<RowDefinition Height="39*"/>
|
||||
<RowDefinition Height="34*"/>
|
||||
<RowDefinition Height="39*"/>
|
||||
<RowDefinition Height="44*"/>
|
||||
<RowDefinition Height="42*"/>
|
||||
<RowDefinition Height="131*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="61*"/>
|
||||
<ColumnDefinition Width="137*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Row="0" Grid.Column="0" Content="ID"/>
|
||||
<Label Grid.Row="0" Grid.Column="1" x:Name="iDColumn" Content="{Binding ID}" />
|
||||
|
||||
|
||||
<Label Grid.Row="1" Grid.Column="0" Content="SPSName"/>
|
||||
<ComboBox Grid.Row="1" Grid.Column="1" x:Name="iDSpsName" DataContext="{StaticResource exposedSpsVariableViewSource}" DisplayMemberPath="SpsVarName" ItemsSource="{Binding}" SelectedValuePath="SpsVarName" />
|
||||
|
||||
|
||||
<Label Grid.Row="2" Grid.Column="0" Content="DisplayName"/>
|
||||
<TextBox Grid.Row="2" Grid.Column="1" x:Name="iDDisplayName" Text="{Binding DisplayName}" />
|
||||
|
||||
<Label Grid.Row="3" Grid.Column="0" Content="LogOn"/>
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" x:Name="iDlog" DataContext="{StaticResource logTriggerViewSource}" DisplayMemberPath="Name" ItemsSource="{Binding}" SelectedValuePath="ID" />
|
||||
<Button Content="Save" Grid.Column="1" HorizontalAlignment="Left" Margin="10,10,0,0" Grid.Row="4" VerticalAlignment="Top" Width="96" Height="24" Click="Button_Click"/>
|
||||
|
||||
<!--<Label Grid.Row="2" Grid.Column="0" Content="Description"/>
|
||||
<Label Grid.Row="2" Grid.Column="1" x:Name="iDDescription" Content="{Binding Description}" />
|
||||
|
||||
-->
|
||||
<!--<Label Grid.Row="3" Grid.Column="0" Content="isActive" />
|
||||
<CheckBox Grid.Row="3" Grid.Column="1" x:Name="isActiveColumn" Checked="{Binding isActive}" />-->
|
||||
<!--
|
||||
|
||||
|
||||
<Label Grid.Row="4" Grid.Column="0" Content="OutputPath" />
|
||||
<TextBox Grid.Row="4" Grid.Column="1" x:Name="isOutputPath" Text="{Binding OutputPath}" />
|
||||
|
||||
<Label Grid.Row="5" Grid.Column="0" Content="User" />
|
||||
<TextBox Grid.Row="5" Grid.Column="1" x:Name="userColumn" Text="{Binding User}" />-->
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
@@ -0,0 +1,71 @@
|
||||
using DataModel;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
|
||||
namespace SPSLogger
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ProfileDetails.xaml
|
||||
/// </summary>
|
||||
public partial class ValueDetails : Window
|
||||
{
|
||||
public readonly LoggerContext mc;
|
||||
public ValueProperty ValueProp;
|
||||
public ValueDetails(ValueProperty p, LoggerContext cnt)
|
||||
{
|
||||
InitializeComponent();
|
||||
ValueProp = p;
|
||||
mc = cnt;
|
||||
this.DataContext = ValueProp;
|
||||
}
|
||||
|
||||
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
System.Windows.Data.CollectionViewSource logTriggerViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("logTriggerViewSource")));
|
||||
// Load data by setting the CollectionViewSource.Source property:
|
||||
mc.Logtiggers.Load();
|
||||
logTriggerViewSource.Source = mc.Logtiggers.Local;
|
||||
if (ValueProp.Trigger != null)
|
||||
{
|
||||
iDlog.SelectedValue = ValueProp.Trigger.ID;
|
||||
}
|
||||
|
||||
|
||||
System.Windows.Data.CollectionViewSource exposedSpsVariableViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("exposedSpsVariableViewSource")));
|
||||
// Load data by setting the CollectionViewSource.Source property:
|
||||
// .Source = [generic data source]
|
||||
|
||||
mc.ExposedSpsVariables.Load();
|
||||
exposedSpsVariableViewSource.Source = mc.ExposedSpsVariables.Local.Where(a => a.Visible == true);
|
||||
var selectedVal = mc.ExposedSpsVariables.Local.FirstOrDefault(a => a.SpsVarName == ValueProp.SPSName && a.Visible == true);
|
||||
if (selectedVal != null)
|
||||
{
|
||||
iDSpsName.SelectedValue = selectedVal;
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show($"Sps value not found {ValueProp.SPSName}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (ValueProp.ID == 0)
|
||||
{
|
||||
mc.ValueProperties.Add(ValueProp);
|
||||
|
||||
}
|
||||
ValueProp.SPSName = iDSpsName.SelectedValue.ToString();
|
||||
ValueProp.Trigger = mc.Logtiggers.FirstOrDefault(f => f.ID == ((int)iDlog.SelectedValue));
|
||||
|
||||
mc.SaveChanges();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,465 @@
|
||||
/* ========================================================================
|
||||
* Copyright (c) 2005-2017 The OPC Foundation, Inc. All rights reserved.
|
||||
*
|
||||
* OPC Foundation MIT License 1.00
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
* files (the "Software"), to deal in the Software without
|
||||
* restriction, including without limitation the rights to use,
|
||||
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following
|
||||
* conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* The complete license agreement can be found here:
|
||||
* http://opcfoundation.org/License/MIT/1.00/
|
||||
* ======================================================================*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.ServiceModel;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Opc.Ua.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// Stores the options to use for a browse operation.
|
||||
/// </summary>
|
||||
[DataContract(Namespace=Namespaces.OpcUaXsd)]
|
||||
public class Browser
|
||||
{
|
||||
#region Constructors
|
||||
/// <summary>
|
||||
/// Creates an unattached instance of a browser.
|
||||
/// </summary>
|
||||
public Browser()
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates new instance of a browser and attaches it to a session.
|
||||
/// </summary>
|
||||
public Browser(Session session)
|
||||
{
|
||||
Initialize();
|
||||
m_session = session;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a copy of a browser.
|
||||
/// </summary>
|
||||
public Browser(Browser template)
|
||||
{
|
||||
Initialize();
|
||||
|
||||
if (template != null)
|
||||
{
|
||||
m_session = template.m_session;
|
||||
m_view = template.m_view;
|
||||
m_maxReferencesReturned = template.m_maxReferencesReturned;
|
||||
m_browseDirection = template.m_browseDirection;
|
||||
m_referenceTypeId = template.m_referenceTypeId;
|
||||
m_includeSubtypes = template.m_includeSubtypes;
|
||||
m_nodeClassMask = template.m_nodeClassMask;
|
||||
m_resultMask = template.m_resultMask;
|
||||
m_continueUntilDone = template.m_continueUntilDone;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets all private fields to default values.
|
||||
/// </summary>
|
||||
private void Initialize()
|
||||
{
|
||||
m_session = null;
|
||||
m_view = null;
|
||||
m_maxReferencesReturned = 0;
|
||||
m_browseDirection = Opc.Ua.BrowseDirection.Forward;
|
||||
m_referenceTypeId = null;
|
||||
m_includeSubtypes = true;
|
||||
m_nodeClassMask = 0;
|
||||
m_resultMask = (uint)BrowseResultMask.All;
|
||||
m_continueUntilDone = false;
|
||||
m_browseInProgress = false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public Properties
|
||||
/// <summary>
|
||||
/// The session that the browse is attached to.
|
||||
/// </summary>
|
||||
public Session Session
|
||||
{
|
||||
get { return m_session; }
|
||||
|
||||
set
|
||||
{
|
||||
CheckBrowserState();
|
||||
m_session = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The view to use for the browse operation.
|
||||
/// </summary>
|
||||
[DataMember(Order = 1)]
|
||||
public ViewDescription View
|
||||
{
|
||||
get { return m_view; }
|
||||
|
||||
set
|
||||
{
|
||||
CheckBrowserState();
|
||||
m_view = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The maximum number of refrences to return in a single browse operation.
|
||||
/// </summary>
|
||||
[DataMember(Order = 2)]
|
||||
public uint MaxReferencesReturned
|
||||
{
|
||||
get { return m_maxReferencesReturned; }
|
||||
|
||||
set
|
||||
{
|
||||
CheckBrowserState();
|
||||
m_maxReferencesReturned = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The direction to browse.
|
||||
/// </summary>
|
||||
[DataMember(Order = 3)]
|
||||
public BrowseDirection BrowseDirection
|
||||
{
|
||||
get { return m_browseDirection; }
|
||||
|
||||
set
|
||||
{
|
||||
CheckBrowserState();
|
||||
m_browseDirection = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The reference type to follow.
|
||||
/// </summary>
|
||||
[DataMember(Order = 4)]
|
||||
public NodeId ReferenceTypeId
|
||||
{
|
||||
get { return m_referenceTypeId; }
|
||||
|
||||
set
|
||||
{
|
||||
CheckBrowserState();
|
||||
m_referenceTypeId = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Whether subtypes of the reference type should be included.
|
||||
/// </summary>
|
||||
[DataMember(Order = 5)]
|
||||
public bool IncludeSubtypes
|
||||
{
|
||||
get { return m_includeSubtypes; }
|
||||
|
||||
set
|
||||
{
|
||||
CheckBrowserState();
|
||||
m_includeSubtypes = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The classes of the target nodes.
|
||||
/// </summary>
|
||||
[DataMember(Order = 6)]
|
||||
public int NodeClassMask
|
||||
{
|
||||
get { return Utils.ToInt32(m_nodeClassMask); }
|
||||
|
||||
set
|
||||
{
|
||||
CheckBrowserState();
|
||||
m_nodeClassMask = Utils.ToUInt32(value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The results to return.
|
||||
/// </summary>
|
||||
[DataMember(Order=6)]
|
||||
public uint ResultMask
|
||||
{
|
||||
get { return m_resultMask; }
|
||||
|
||||
set
|
||||
{
|
||||
CheckBrowserState();
|
||||
m_resultMask = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Raised when a browse operation halted because of a continuation point.
|
||||
/// </summary>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1009:DeclareEventHandlersCorrectly")]
|
||||
public event BrowserEventHandler MoreReferences
|
||||
{
|
||||
add { m_MoreReferences += value; }
|
||||
remove { m_MoreReferences -= value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Whether subsequent continuation points should be processed automatically.
|
||||
/// </summary>
|
||||
public bool ContinueUntilDone
|
||||
{
|
||||
get { return m_continueUntilDone; }
|
||||
|
||||
set
|
||||
{
|
||||
CheckBrowserState();
|
||||
m_continueUntilDone = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
/// <summary>
|
||||
/// Browses the specified node.
|
||||
/// </summary>
|
||||
public ReferenceDescriptionCollection Browse(NodeId nodeId)
|
||||
{
|
||||
if (m_session == null)
|
||||
{
|
||||
throw new ServiceResultException(StatusCodes.BadServerNotConnected, "Cannot browse if not connected to a server.");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
m_browseInProgress = true;
|
||||
|
||||
// construct request.
|
||||
BrowseDescription nodeToBrowse = new BrowseDescription();
|
||||
|
||||
nodeToBrowse.NodeId = nodeId;
|
||||
nodeToBrowse.BrowseDirection = m_browseDirection;
|
||||
nodeToBrowse.ReferenceTypeId = m_referenceTypeId;
|
||||
nodeToBrowse.IncludeSubtypes = m_includeSubtypes;
|
||||
nodeToBrowse.NodeClassMask = m_nodeClassMask;
|
||||
nodeToBrowse.ResultMask = m_resultMask;
|
||||
|
||||
BrowseDescriptionCollection nodesToBrowse = new BrowseDescriptionCollection();
|
||||
nodesToBrowse.Add(nodeToBrowse);
|
||||
|
||||
// make the call to the server.
|
||||
BrowseResultCollection results;
|
||||
DiagnosticInfoCollection diagnosticInfos;
|
||||
|
||||
ResponseHeader responseHeader = m_session.Browse(
|
||||
null,
|
||||
m_view,
|
||||
m_maxReferencesReturned,
|
||||
nodesToBrowse,
|
||||
out results,
|
||||
out diagnosticInfos);
|
||||
|
||||
// ensure that the server returned valid results.
|
||||
Session.ValidateResponse(results, nodesToBrowse);
|
||||
Session.ValidateDiagnosticInfos(diagnosticInfos, nodesToBrowse);
|
||||
|
||||
// check if valid.
|
||||
if (StatusCode.IsBad(results[0].StatusCode))
|
||||
{
|
||||
throw ServiceResultException.Create(results[0].StatusCode, 0, diagnosticInfos, responseHeader.StringTable);
|
||||
}
|
||||
|
||||
// fetch initial set of references.
|
||||
byte[] continuationPoint = results[0].ContinuationPoint;
|
||||
ReferenceDescriptionCollection references = results[0].References;
|
||||
|
||||
// process any continuation point.
|
||||
while (continuationPoint != null)
|
||||
{
|
||||
ReferenceDescriptionCollection additionalReferences;
|
||||
|
||||
if (!m_continueUntilDone && m_MoreReferences != null)
|
||||
{
|
||||
BrowserEventArgs args = new BrowserEventArgs(references);
|
||||
m_MoreReferences(this, args);
|
||||
|
||||
// cancel browser and return the references fetched so far.
|
||||
if (args.Cancel)
|
||||
{
|
||||
BrowseNext(ref continuationPoint, true);
|
||||
return references;
|
||||
}
|
||||
|
||||
m_continueUntilDone = args.ContinueUntilDone;
|
||||
}
|
||||
|
||||
additionalReferences = BrowseNext(ref continuationPoint, false);
|
||||
if (additionalReferences != null && additionalReferences.Count > 0)
|
||||
{
|
||||
references.AddRange(additionalReferences);
|
||||
}
|
||||
else
|
||||
{
|
||||
Utils.Trace("Continuation point exists, but the browse results are null/empty.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// return the results.
|
||||
return references;
|
||||
}
|
||||
finally
|
||||
{
|
||||
m_browseInProgress = false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
/// <summary>
|
||||
/// Checks the state of the browser.
|
||||
/// </summary>
|
||||
private void CheckBrowserState()
|
||||
{
|
||||
if (m_browseInProgress)
|
||||
{
|
||||
throw new ServiceResultException(StatusCodes.BadInvalidState, "Cannot change browse parameters while a browse operation is in progress.");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fetches the next batch of references.
|
||||
/// </summary>
|
||||
/// <param name="continuationPoint">The continuation point.</param>
|
||||
/// <param name="cancel">if set to <c>true</c> the browse operation is cancelled.</param>
|
||||
/// <returns>The next batch of references</returns>
|
||||
private ReferenceDescriptionCollection BrowseNext(ref byte[] continuationPoint, bool cancel)
|
||||
{
|
||||
ByteStringCollection continuationPoints = new ByteStringCollection();
|
||||
continuationPoints.Add(continuationPoint);
|
||||
|
||||
// make the call to the server.
|
||||
BrowseResultCollection results;
|
||||
DiagnosticInfoCollection diagnosticInfos;
|
||||
|
||||
ResponseHeader responseHeader = m_session.BrowseNext(
|
||||
null,
|
||||
cancel,
|
||||
continuationPoints,
|
||||
out results,
|
||||
out diagnosticInfos);
|
||||
|
||||
// ensure that the server returned valid results.
|
||||
Session.ValidateResponse(results, continuationPoints);
|
||||
Session.ValidateDiagnosticInfos(diagnosticInfos, continuationPoints);
|
||||
|
||||
// check if valid.
|
||||
if (StatusCode.IsBad(results[0].StatusCode))
|
||||
{
|
||||
throw ServiceResultException.Create(results[0].StatusCode, 0, diagnosticInfos, responseHeader.StringTable);
|
||||
}
|
||||
|
||||
// update continuation point.
|
||||
continuationPoint = results[0].ContinuationPoint;
|
||||
|
||||
// return references.
|
||||
return results[0].References;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Fields
|
||||
private Session m_session;
|
||||
private ViewDescription m_view;
|
||||
private uint m_maxReferencesReturned;
|
||||
private BrowseDirection m_browseDirection;
|
||||
private NodeId m_referenceTypeId;
|
||||
private bool m_includeSubtypes;
|
||||
private uint m_nodeClassMask;
|
||||
private uint m_resultMask;
|
||||
private event BrowserEventHandler m_MoreReferences;
|
||||
private bool m_continueUntilDone;
|
||||
private bool m_browseInProgress;
|
||||
#endregion
|
||||
}
|
||||
|
||||
#region BrowserEventArgs Class
|
||||
/// <summary>
|
||||
/// The event arguments provided a browse operation returns a continuation point.
|
||||
/// </summary>
|
||||
public class BrowserEventArgs : EventArgs
|
||||
{
|
||||
#region Constructors
|
||||
/// <summary>
|
||||
/// Creates a new instance.
|
||||
/// </summary>
|
||||
internal BrowserEventArgs(ReferenceDescriptionCollection references)
|
||||
{
|
||||
m_references = references;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public Properties
|
||||
/// <summary>
|
||||
/// Whether the browse operation should be cancelled.
|
||||
/// </summary>
|
||||
public bool Cancel
|
||||
{
|
||||
get { return m_cancel; }
|
||||
set { m_cancel = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Whether subsequent continuation points should be processed automatically.
|
||||
/// </summary>
|
||||
public bool ContinueUntilDone
|
||||
{
|
||||
get { return m_continueUntilDone; }
|
||||
set { m_continueUntilDone = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The references that have been fetched so far.
|
||||
/// </summary>
|
||||
public ReferenceDescriptionCollection References
|
||||
{
|
||||
get { return m_references; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Fields
|
||||
private bool m_cancel;
|
||||
private bool m_continueUntilDone;
|
||||
private ReferenceDescriptionCollection m_references;
|
||||
#endregion
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A delegate used to received browser events.
|
||||
/// </summary>
|
||||
public delegate void BrowserEventHandler(Browser sender, BrowserEventArgs e);
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,316 @@
|
||||
/* ========================================================================
|
||||
* Copyright (c) 2005-2017 The OPC Foundation, Inc. All rights reserved.
|
||||
*
|
||||
* OPC Foundation MIT License 1.00
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
* files (the "Software"), to deal in the Software without
|
||||
* restriction, including without limitation the rights to use,
|
||||
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following
|
||||
* conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* The complete license agreement can be found here:
|
||||
* http://opcfoundation.org/License/MIT/1.00/
|
||||
* ======================================================================*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.ServiceModel;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Xml;
|
||||
using System.Reflection;
|
||||
using System.IO;
|
||||
|
||||
using Opc.Ua.Schema;
|
||||
|
||||
namespace Opc.Ua.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// A class that holds the configuration for a UA service.
|
||||
/// </summary>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix"), DataContract(Namespace = Namespaces.OpcUaXsd)]
|
||||
public class DataDictionary : ApplicationConfiguration
|
||||
{
|
||||
#region Constructors
|
||||
/// <summary>
|
||||
/// The default constructor.
|
||||
/// </summary>
|
||||
public DataDictionary(Session session)
|
||||
{
|
||||
Initialize();
|
||||
|
||||
m_session = session;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets private members to default values.
|
||||
/// </summary>
|
||||
private void Initialize()
|
||||
{
|
||||
m_session = null;
|
||||
m_datatypes = new Dictionary<NodeId,ReferenceDescription>();
|
||||
m_validator = null;
|
||||
m_typeSystemId = null;
|
||||
m_typeSystemName = null;
|
||||
m_dictionaryId = null;
|
||||
m_name = null;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public Interface
|
||||
/// <summary>
|
||||
/// The node id for the dictionary.
|
||||
/// </summary>
|
||||
public NodeId DictionaryId
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_dictionaryId;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The display name for the dictionary.
|
||||
/// </summary>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_name;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The node id for the type system.
|
||||
/// </summary>
|
||||
public NodeId TypeSystemId
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_typeSystemId;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The display name for the type system.
|
||||
/// </summary>
|
||||
public string TypeSystemName
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_typeSystemName;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads the dictionary idetified by the node id.
|
||||
/// </summary>
|
||||
public void Load(ReferenceDescription dictionary)
|
||||
{
|
||||
if (dictionary == null) throw new ArgumentNullException("dictionary");
|
||||
|
||||
NodeId dictionaryId = ExpandedNodeId.ToNodeId(dictionary.NodeId, m_session.NamespaceUris);
|
||||
|
||||
GetTypeSystem(dictionaryId);
|
||||
|
||||
byte[] schema = ReadDictionary(dictionaryId);
|
||||
|
||||
if (schema == null || schema.Length == 0)
|
||||
{
|
||||
throw ServiceResultException.Create(StatusCodes.BadUnexpectedError, "Cannot parse empty data dictionary.");
|
||||
}
|
||||
|
||||
Validate(schema);
|
||||
|
||||
ReadDataTypes(dictionaryId);
|
||||
|
||||
m_dictionaryId = dictionaryId;
|
||||
m_name = dictionary.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if the dictionary contains the data type description;
|
||||
/// </summary>
|
||||
public bool Contains(NodeId descriptionId)
|
||||
{
|
||||
return m_datatypes.ContainsKey(descriptionId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the schema for the specified type (returns the entire dictionary if null).
|
||||
/// </summary>
|
||||
public string GetSchema(NodeId descriptionId)
|
||||
{
|
||||
ReferenceDescription description = null;
|
||||
|
||||
if (descriptionId != null)
|
||||
{
|
||||
if (!m_datatypes.TryGetValue(descriptionId, out description))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return m_validator.GetSchema(description.BrowseName.Name);
|
||||
}
|
||||
|
||||
return m_validator.GetSchema(null);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Members
|
||||
/// <summary>
|
||||
/// Retrieves the type system for the dictionary.
|
||||
/// </summary>
|
||||
private void GetTypeSystem(NodeId dictionaryId)
|
||||
{
|
||||
Browser browser = new Browser(m_session);
|
||||
|
||||
browser.BrowseDirection = BrowseDirection.Inverse;
|
||||
browser.ReferenceTypeId = ReferenceTypeIds.HasComponent;
|
||||
browser.IncludeSubtypes = false;
|
||||
browser.NodeClassMask = 0;
|
||||
|
||||
ReferenceDescriptionCollection references = browser.Browse(dictionaryId);
|
||||
|
||||
if (references.Count > 0)
|
||||
{
|
||||
m_typeSystemId = ExpandedNodeId.ToNodeId(references[0].NodeId, m_session.NamespaceUris);
|
||||
m_typeSystemName = references[0].ToString();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the data types in the dictionary.
|
||||
/// </summary>
|
||||
private void ReadDataTypes(NodeId dictionaryId)
|
||||
{
|
||||
Browser browser = new Browser(m_session);
|
||||
|
||||
browser.BrowseDirection = BrowseDirection.Forward;
|
||||
browser.ReferenceTypeId = ReferenceTypeIds.HasComponent;
|
||||
browser.IncludeSubtypes = false;
|
||||
browser.NodeClassMask = 0;
|
||||
|
||||
ReferenceDescriptionCollection references = browser.Browse(dictionaryId);
|
||||
|
||||
foreach (ReferenceDescription reference in references)
|
||||
{
|
||||
NodeId datatypeId = ExpandedNodeId.ToNodeId(reference.NodeId, m_session.NamespaceUris);
|
||||
|
||||
if (datatypeId != null)
|
||||
{
|
||||
m_datatypes[datatypeId] = reference;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the contents of a data dictionary.
|
||||
/// </summary>
|
||||
private byte[] ReadDictionary(NodeId dictionaryId)
|
||||
{
|
||||
// create item to read.
|
||||
ReadValueId itemToRead = new ReadValueId();
|
||||
|
||||
itemToRead.NodeId = dictionaryId;
|
||||
itemToRead.AttributeId = Attributes.Value;
|
||||
itemToRead.IndexRange = null;
|
||||
itemToRead.DataEncoding = null;
|
||||
|
||||
ReadValueIdCollection itemsToRead = new ReadValueIdCollection();
|
||||
itemsToRead.Add(itemToRead);
|
||||
|
||||
// read value.
|
||||
DataValueCollection values;
|
||||
DiagnosticInfoCollection diagnosticInfos;
|
||||
|
||||
ResponseHeader responseHeader = m_session.Read(
|
||||
null,
|
||||
0,
|
||||
TimestampsToReturn.Neither,
|
||||
itemsToRead,
|
||||
out values,
|
||||
out diagnosticInfos);
|
||||
|
||||
ClientBase.ValidateResponse(values, itemsToRead);
|
||||
ClientBase.ValidateDiagnosticInfos(diagnosticInfos, itemsToRead);
|
||||
|
||||
// check for error.
|
||||
if (StatusCode.IsBad(values[0].StatusCode))
|
||||
{
|
||||
ServiceResult result = ClientBase.GetResult(values[0].StatusCode, 0, diagnosticInfos, responseHeader);
|
||||
throw new ServiceResultException(result);
|
||||
}
|
||||
|
||||
// return as a byte array.
|
||||
return values[0].Value as byte[];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Validates the type dictionary.
|
||||
/// </summary>
|
||||
/// <param name="dictionary"></param>
|
||||
private void Validate(byte[] dictionary)
|
||||
{
|
||||
MemoryStream istrm = new MemoryStream(dictionary);
|
||||
|
||||
if (m_typeSystemId == Objects.XmlSchema_TypeSystem)
|
||||
{
|
||||
Schema.Xml.XmlSchemaValidator validator = new Schema.Xml.XmlSchemaValidator();
|
||||
|
||||
try
|
||||
{
|
||||
validator.Validate(istrm);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Utils.Trace(e, "Could not validate schema.");
|
||||
}
|
||||
|
||||
m_validator = validator;
|
||||
}
|
||||
|
||||
if (m_typeSystemId == Objects.OPCBinarySchema_TypeSystem)
|
||||
{
|
||||
Schema.Binary.BinarySchemaValidator validator = new Schema.Binary.BinarySchemaValidator();
|
||||
|
||||
try
|
||||
{
|
||||
validator.Validate(istrm);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Utils.Trace(e, "Could not validate schema.");
|
||||
}
|
||||
|
||||
m_validator = validator;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Members
|
||||
private Session m_session;
|
||||
private NodeId m_dictionaryId;
|
||||
private string m_name;
|
||||
private NodeId m_typeSystemId;
|
||||
private string m_typeSystemName;
|
||||
private Dictionary<NodeId,ReferenceDescription> m_datatypes;
|
||||
private SchemaValidator m_validator;
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
/* ========================================================================
|
||||
* Copyright (c) 2005-2017 The OPC Foundation, Inc. All rights reserved.
|
||||
*
|
||||
* OPC Foundation MIT License 1.00
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
* files (the "Software"), to deal in the Software without
|
||||
* restriction, including without limitation the rights to use,
|
||||
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following
|
||||
* conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* The complete license agreement can be found here:
|
||||
* http://opcfoundation.org/License/MIT/1.00/
|
||||
* ======================================================================*/
|
||||
|
||||
namespace Opc.Ua.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// The <b>Opc.Ua.Client</b> namespace defines classes which can be used to implement a UA client.
|
||||
/// These classes manage client side state information, provide higher level abstractions for UA
|
||||
/// tasks such as managing sessions/subscriptions and saving/restoring connection information for
|
||||
/// later use.
|
||||
/// </summary>
|
||||
///<exclude/>
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class NamespaceDoc
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
/* ========================================================================
|
||||
* Copyright (c) 2005-2017 The OPC Foundation, Inc. All rights reserved.
|
||||
*
|
||||
* OPC Foundation MIT License 1.00
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
* files (the "Software"), to deal in the Software without
|
||||
* restriction, including without limitation the rights to use,
|
||||
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following
|
||||
* conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* The complete license agreement can be found here:
|
||||
* http://opcfoundation.org/License/MIT/1.00/
|
||||
* ======================================================================*/
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,293 @@
|
||||
/* ========================================================================
|
||||
* Copyright (c) 2005-2017 The OPC Foundation, Inc. All rights reserved.
|
||||
*
|
||||
* OPC Foundation MIT License 1.00
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
* files (the "Software"), to deal in the Software without
|
||||
* restriction, including without limitation the rights to use,
|
||||
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following
|
||||
* conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* The complete license agreement can be found here:
|
||||
* http://opcfoundation.org/License/MIT/1.00/
|
||||
* ======================================================================*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Opc.Ua.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// The current status of monitored item.
|
||||
/// </summary>
|
||||
public class MonitoredItemStatus
|
||||
{
|
||||
#region Constructors
|
||||
/// <summary>
|
||||
/// Creates a empty object.
|
||||
/// </summary>
|
||||
internal MonitoredItemStatus()
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
private void Initialize()
|
||||
{
|
||||
m_id = 0;
|
||||
m_nodeId = null;
|
||||
m_attributeId = Attributes.Value;
|
||||
m_indexRange = null;
|
||||
m_encoding = null;
|
||||
m_monitoringMode = MonitoringMode.Disabled;
|
||||
m_clientHandle = 0;
|
||||
m_samplingInterval = 0;
|
||||
m_filter = null;
|
||||
m_queueSize = 0;
|
||||
m_discardOldest = true;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public Properties
|
||||
/// <summary>
|
||||
/// The identifier assigned by the server.
|
||||
/// </summary>
|
||||
public uint Id
|
||||
{
|
||||
get { return m_id; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Whether the item has been created on the server.
|
||||
/// </summary>
|
||||
public bool Created
|
||||
{
|
||||
get { return m_id != 0; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Any error condition associated with the monitored item.
|
||||
/// </summary>
|
||||
public ServiceResult Error
|
||||
{
|
||||
get { return m_error; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The node id being monitored.
|
||||
/// </summary>
|
||||
public NodeId NodeId
|
||||
{
|
||||
get { return m_nodeId; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The attribute being monitored.
|
||||
/// </summary>
|
||||
public uint AttributeId
|
||||
{
|
||||
get { return m_attributeId; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The range of array indexes to being monitored.
|
||||
/// </summary>
|
||||
public string IndexRange
|
||||
{
|
||||
get { return m_indexRange; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The encoding to use when returning notifications.
|
||||
/// </summary>
|
||||
public QualifiedName DataEncoding
|
||||
{
|
||||
get { return m_encoding; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The monitoring mode.
|
||||
/// </summary>
|
||||
public MonitoringMode MonitoringMode
|
||||
{
|
||||
get { return m_monitoringMode; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The identifier assigned by the client.
|
||||
/// </summary>
|
||||
public uint ClientHandle
|
||||
{
|
||||
get { return m_clientHandle; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The sampling interval.
|
||||
/// </summary>
|
||||
public double SamplingInterval
|
||||
{
|
||||
get { return m_samplingInterval; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The filter to use to select values to return.
|
||||
/// </summary>
|
||||
public MonitoringFilter Filter
|
||||
{
|
||||
get { return m_filter; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The length of the queue used to buffer values.
|
||||
/// </summary>
|
||||
public uint QueueSize
|
||||
{
|
||||
get { return m_queueSize; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Whether to discard the oldest entries in the queue when it is full.
|
||||
/// </summary>
|
||||
public bool DiscardOldest
|
||||
{
|
||||
get { return m_discardOldest; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
/// <summary>
|
||||
/// Updates the monitoring mode.
|
||||
/// </summary>
|
||||
public void SetMonitoringMode(MonitoringMode monitoringMode)
|
||||
{
|
||||
m_monitoringMode = monitoringMode;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates the object with the results of a translate browse paths request.
|
||||
/// </summary>
|
||||
internal void SetResolvePathResult(
|
||||
BrowsePathResult result,
|
||||
ServiceResult error)
|
||||
{
|
||||
m_error = error;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates the object with the results of a create monitored item request.
|
||||
/// </summary>
|
||||
internal void SetCreateResult(
|
||||
MonitoredItemCreateRequest request,
|
||||
MonitoredItemCreateResult result,
|
||||
ServiceResult error)
|
||||
{
|
||||
if (request == null) throw new ArgumentNullException("request");
|
||||
if (result == null) throw new ArgumentNullException("result");
|
||||
|
||||
m_nodeId = request.ItemToMonitor.NodeId;
|
||||
m_attributeId = request.ItemToMonitor.AttributeId;
|
||||
m_indexRange = request.ItemToMonitor.IndexRange;
|
||||
m_encoding = request.ItemToMonitor.DataEncoding;
|
||||
m_monitoringMode = request.MonitoringMode;
|
||||
m_clientHandle = request.RequestedParameters.ClientHandle;
|
||||
m_samplingInterval = request.RequestedParameters.SamplingInterval;
|
||||
m_queueSize = request.RequestedParameters.QueueSize;
|
||||
m_discardOldest = request.RequestedParameters.DiscardOldest;
|
||||
m_filter = null;
|
||||
m_error = error;
|
||||
|
||||
if (request.RequestedParameters.Filter != null)
|
||||
{
|
||||
m_filter = Utils.Clone(request.RequestedParameters.Filter.Body) as MonitoringFilter;
|
||||
}
|
||||
|
||||
if (ServiceResult.IsGood(error))
|
||||
{
|
||||
m_id = result.MonitoredItemId;
|
||||
m_samplingInterval = result.RevisedSamplingInterval;
|
||||
m_queueSize = result.RevisedQueueSize;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates the object with the results of a modify monitored item request.
|
||||
/// </summary>
|
||||
internal void SetModifyResult(
|
||||
MonitoredItemModifyRequest request,
|
||||
MonitoredItemModifyResult result,
|
||||
ServiceResult error)
|
||||
{
|
||||
if (request == null) throw new ArgumentNullException("request");
|
||||
if (result == null) throw new ArgumentNullException("result");
|
||||
|
||||
m_error = error;
|
||||
|
||||
if (ServiceResult.IsGood(error))
|
||||
{
|
||||
m_clientHandle = request.RequestedParameters.ClientHandle;
|
||||
m_samplingInterval = request.RequestedParameters.SamplingInterval;
|
||||
m_queueSize = request.RequestedParameters.QueueSize;
|
||||
m_discardOldest = request.RequestedParameters.DiscardOldest;
|
||||
m_filter = null;
|
||||
|
||||
if (request.RequestedParameters.Filter != null)
|
||||
{
|
||||
m_filter = Utils.Clone(request.RequestedParameters.Filter.Body) as MonitoringFilter;
|
||||
}
|
||||
|
||||
m_samplingInterval = result.RevisedSamplingInterval;
|
||||
m_queueSize = result.RevisedQueueSize;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates the object with the results of a delete item request.
|
||||
/// </summary>
|
||||
internal void SetDeleteResult(ServiceResult error)
|
||||
{
|
||||
m_id = 0;
|
||||
m_error = error;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the error state for the monitored item status.
|
||||
/// </summary>
|
||||
internal void SetError(ServiceResult error)
|
||||
{
|
||||
m_error = error;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Fields
|
||||
private uint m_id;
|
||||
private ServiceResult m_error;
|
||||
private NodeId m_nodeId;
|
||||
private uint m_attributeId;
|
||||
private string m_indexRange;
|
||||
private QualifiedName m_encoding;
|
||||
private MonitoringMode m_monitoringMode;
|
||||
private uint m_clientHandle;
|
||||
private double m_samplingInterval;
|
||||
private MonitoringFilter m_filter;
|
||||
private uint m_queueSize;
|
||||
private bool m_discardOldest;
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,844 @@
|
||||
/* ========================================================================
|
||||
* Copyright (c) 2005-2017 The OPC Foundation, Inc. All rights reserved.
|
||||
*
|
||||
* OPC Foundation MIT License 1.00
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
* files (the "Software"), to deal in the Software without
|
||||
* restriction, including without limitation the rights to use,
|
||||
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following
|
||||
* conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* The complete license agreement can be found here:
|
||||
* http://opcfoundation.org/License/MIT/1.00/
|
||||
* ======================================================================*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Opc.Ua.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// A client side cache of the server's type model.
|
||||
/// </summary>
|
||||
public class NodeCache : INodeTable, ITypeTable
|
||||
{
|
||||
#region Constructors
|
||||
/// <summary>
|
||||
/// Initializes the object with default values.
|
||||
/// </summary>
|
||||
public NodeCache(Session session)
|
||||
{
|
||||
if (session == null) throw new ArgumentNullException("session");
|
||||
|
||||
m_session = session;
|
||||
m_typeTree = new TypeTable(m_session.NamespaceUris);
|
||||
m_nodes = new NodeTable(m_session.NamespaceUris, m_session.ServerUris, m_typeTree);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region INodeTable Members
|
||||
/// <summary cref="INodeTable.NamespaceUris" />
|
||||
public NamespaceTable NamespaceUris
|
||||
{
|
||||
get { return m_session.NamespaceUris; }
|
||||
}
|
||||
|
||||
/// <summary cref="INodeTable.ServerUris" />
|
||||
public StringTable ServerUris
|
||||
{
|
||||
get { return m_session.ServerUris; }
|
||||
}
|
||||
|
||||
/// <summary cref="INodeTable.TypeTree" />
|
||||
public ITypeTable TypeTree
|
||||
{
|
||||
get { return this; }
|
||||
}
|
||||
|
||||
/// <summary cref="INodeTable.Exists(ExpandedNodeId)" />
|
||||
public bool Exists(ExpandedNodeId nodeId)
|
||||
{
|
||||
return Find(nodeId) != null;
|
||||
}
|
||||
|
||||
/// <summary cref="INodeTable.Find(ExpandedNodeId)" />
|
||||
public INode Find(ExpandedNodeId nodeId)
|
||||
{
|
||||
// check for null.
|
||||
if (NodeId.IsNull(nodeId))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// check if node alredy exists.
|
||||
INode node = m_nodes.Find(nodeId);
|
||||
|
||||
if (node != null)
|
||||
{
|
||||
// do not return temporary nodes created after a Browse().
|
||||
if (node.GetType() != typeof(Node))
|
||||
{
|
||||
return node;
|
||||
}
|
||||
}
|
||||
|
||||
// fetch node from server.
|
||||
try
|
||||
{
|
||||
return FetchNode(nodeId);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Utils.Trace("Could not fetch node from server: NodeId={0}, Reason='{1}'.", nodeId, e.Message);
|
||||
// m_nodes[nodeId] = null;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary cref="INodeTable.Find(ExpandedNodeId,NodeId,bool,bool,QualifiedName)" />
|
||||
public INode Find(
|
||||
ExpandedNodeId sourceId,
|
||||
NodeId referenceTypeId,
|
||||
bool isInverse,
|
||||
bool includeSubtypes,
|
||||
QualifiedName browseName)
|
||||
{
|
||||
// find the source.
|
||||
Node source = Find(sourceId) as Node;
|
||||
|
||||
if (source == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// find all references.
|
||||
IList<IReference> references = source.ReferenceTable.Find(referenceTypeId, isInverse, includeSubtypes, m_typeTree);
|
||||
|
||||
foreach (IReference reference in references)
|
||||
{
|
||||
INode target = Find(reference.TargetId);
|
||||
|
||||
if (target == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (target.BrowseName == browseName)
|
||||
{
|
||||
return target;
|
||||
}
|
||||
}
|
||||
|
||||
// target not found.
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary cref="INodeTable.Find(ExpandedNodeId,NodeId,bool,bool)" />
|
||||
public IList<INode> Find(
|
||||
ExpandedNodeId sourceId,
|
||||
NodeId referenceTypeId,
|
||||
bool isInverse,
|
||||
bool includeSubtypes)
|
||||
{
|
||||
List<INode> hits = new List<INode>();
|
||||
|
||||
// find the source.
|
||||
Node source = Find(sourceId) as Node;
|
||||
|
||||
if (source == null)
|
||||
{
|
||||
return hits;
|
||||
}
|
||||
|
||||
// find all references.
|
||||
IList<IReference> references = source.ReferenceTable.Find(referenceTypeId, isInverse, includeSubtypes, m_typeTree);
|
||||
|
||||
foreach (IReference reference in references)
|
||||
{
|
||||
INode target = Find(reference.TargetId);
|
||||
|
||||
if (target == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
hits.Add(target);
|
||||
}
|
||||
|
||||
return hits;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ITypeTable Methods
|
||||
/// <summary>
|
||||
/// Determines whether a node id is a known type id.
|
||||
/// </summary>
|
||||
/// <param name="typeId">The type extended identifier.</param>
|
||||
/// <returns>
|
||||
/// <c>true</c> if the specified type id is known; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public bool IsKnown(ExpandedNodeId typeId)
|
||||
{
|
||||
INode type = Find(typeId);
|
||||
|
||||
if (type == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return m_typeTree.IsKnown(typeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a node id is a known type id.
|
||||
/// </summary>
|
||||
/// <param name="typeId">The type identifier.</param>
|
||||
/// <returns>
|
||||
/// <c>true</c> if the specified type id is known; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public bool IsKnown(NodeId typeId)
|
||||
{
|
||||
INode type = Find(typeId);
|
||||
|
||||
if (type == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return m_typeTree.IsKnown(typeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the immediate supertype for the type.
|
||||
/// </summary>
|
||||
/// <param name="typeId">The extended type identifier.</param>
|
||||
/// <returns>
|
||||
/// A type identifier of the <paramref name="typeId "/>
|
||||
/// </returns>
|
||||
public NodeId FindSuperType(ExpandedNodeId typeId)
|
||||
{
|
||||
INode type = Find(typeId);
|
||||
|
||||
if (type == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return m_typeTree.FindSuperType(typeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the immediate supertype for the type.
|
||||
/// </summary>
|
||||
/// <param name="typeId">The type identifier.</param>
|
||||
/// <returns>
|
||||
/// The immediate supertype idnetyfier for <paramref name="typeId"/>
|
||||
/// </returns>
|
||||
public NodeId FindSuperType(NodeId typeId)
|
||||
{
|
||||
INode type = Find(typeId);
|
||||
|
||||
if (type == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return m_typeTree.FindSuperType(typeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the immediate subtypes for the type.
|
||||
/// </summary>
|
||||
/// <param name="typeId">The extended type identifier.</param>
|
||||
/// <returns>
|
||||
/// List of type identifiers for <paramref name="typeId"/>
|
||||
/// </returns>
|
||||
public IList<NodeId> FindSubTypes(ExpandedNodeId typeId)
|
||||
{
|
||||
ILocalNode type = Find(typeId) as ILocalNode;
|
||||
|
||||
if (type == null)
|
||||
{
|
||||
return new List<NodeId>();
|
||||
}
|
||||
|
||||
List<NodeId> subtypes = new List<NodeId>();
|
||||
|
||||
foreach (IReference reference in type.References.Find(ReferenceTypeIds.HasSubtype, false, true, m_typeTree))
|
||||
{
|
||||
if (!reference.TargetId.IsAbsolute)
|
||||
{
|
||||
subtypes.Add((NodeId)reference.TargetId);
|
||||
}
|
||||
}
|
||||
|
||||
return subtypes;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a type is a subtype of another type.
|
||||
/// </summary>
|
||||
/// <param name="subTypeId">The subtype identifier.</param>
|
||||
/// <param name="superTypeId">The supertype identifier.</param>
|
||||
/// <returns>
|
||||
/// <c>true</c> if <paramref name="superTypeId"/> is supertype of <paramref name="subTypeId"/>; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public bool IsTypeOf(ExpandedNodeId subTypeId, ExpandedNodeId superTypeId)
|
||||
{
|
||||
if (subTypeId == superTypeId)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
ILocalNode subtype = Find(subTypeId) as ILocalNode;
|
||||
|
||||
if (subtype == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
ILocalNode supertype = subtype;
|
||||
|
||||
while (supertype != null)
|
||||
{
|
||||
ExpandedNodeId currentId = supertype.References.FindTarget(ReferenceTypeIds.HasSubtype, true, true, m_typeTree, 0);
|
||||
|
||||
if (currentId == superTypeId)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
supertype = Find(currentId) as ILocalNode;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a type is a subtype of another type.
|
||||
/// </summary>
|
||||
/// <param name="subTypeId">The subtype identifier.</param>
|
||||
/// <param name="superTypeId">The supertype identyfier.</param>
|
||||
/// <returns>
|
||||
/// <c>true</c> if <paramref name="superTypeId"/> is supertype of <paramref name="subTypeId"/>; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public bool IsTypeOf(NodeId subTypeId, NodeId superTypeId)
|
||||
{
|
||||
if (subTypeId == superTypeId)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
ILocalNode subtype = Find(subTypeId) as ILocalNode;
|
||||
|
||||
if (subtype == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
ILocalNode supertype = subtype;
|
||||
|
||||
while (supertype != null)
|
||||
{
|
||||
ExpandedNodeId currentId = supertype.References.FindTarget(ReferenceTypeIds.HasSubtype, true, true, m_typeTree, 0);
|
||||
|
||||
if (currentId == superTypeId)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
supertype = Find(currentId) as ILocalNode;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the qualified name for the reference type id.
|
||||
/// </summary>
|
||||
/// <param name="referenceTypeId">The reference type</param>
|
||||
/// <returns>
|
||||
/// A name qualified with a namespace for the reference <paramref name="referenceTypeId"/>.
|
||||
/// </returns>
|
||||
public QualifiedName FindReferenceTypeName(NodeId referenceTypeId)
|
||||
{
|
||||
return m_typeTree.FindReferenceTypeName(referenceTypeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the node identifier for the reference type with the specified browse name.
|
||||
/// </summary>
|
||||
/// <param name="browseName">Browse name of the reference.</param>
|
||||
/// <returns>
|
||||
/// The identifier for the <paramref name="browseName"/>
|
||||
/// </returns>
|
||||
public NodeId FindReferenceType(QualifiedName browseName)
|
||||
{
|
||||
return m_typeTree.FindReferenceType(browseName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if the identifier <paramref name="encodingId"/> represents a that provides encodings
|
||||
/// for the <paramref name="datatypeId "/>.
|
||||
/// </summary>
|
||||
/// <param name="encodingId">The id the encoding node .</param>
|
||||
/// <param name="datatypeId">The id of the DataType node.</param>
|
||||
/// <returns>
|
||||
/// <c>true</c> if <paramref name="encodingId"/> is encoding of the <paramref name="datatypeId"/>; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public bool IsEncodingOf(ExpandedNodeId encodingId, ExpandedNodeId datatypeId)
|
||||
{
|
||||
ILocalNode encoding = Find(encodingId) as ILocalNode;
|
||||
|
||||
if (encoding == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach (IReference reference in encoding.References.Find(ReferenceTypeIds.HasEncoding, true, true, m_typeTree))
|
||||
{
|
||||
if (reference.TargetId == datatypeId)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// no match.
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines if the value contained in an extension object <paramref name="value"/> matches the expected data type.
|
||||
/// </summary>
|
||||
/// <param name="expectedTypeId">The identifier of the expected type .</param>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>
|
||||
/// <c>true</c> if the value contained in an extension object <paramref name="value"/> matches the
|
||||
/// expected data type; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public bool IsEncodingFor(NodeId expectedTypeId, ExtensionObject value)
|
||||
{
|
||||
// no match on null values.
|
||||
if (value == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// check for exact match.
|
||||
if (expectedTypeId == value.TypeId)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// find the encoding.
|
||||
ILocalNode encoding = Find(value.TypeId) as ILocalNode;
|
||||
|
||||
if (encoding == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// find data type.
|
||||
foreach (IReference reference in encoding.References.Find(ReferenceTypeIds.HasEncoding, true, true, m_typeTree))
|
||||
{
|
||||
if (reference.TargetId == expectedTypeId)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// no match.
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines if the value is an encoding of the <paramref name="value"/>
|
||||
/// </summary>
|
||||
/// <param name="expectedTypeId">The expected type id.</param>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>
|
||||
/// <c>true</c> the value is an encoding of the <paramref name="value"/>; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public bool IsEncodingFor(NodeId expectedTypeId, object value)
|
||||
{
|
||||
// null actual datatype matches nothing.
|
||||
if (value == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// null expected datatype matches everything.
|
||||
if (NodeId.IsNull(expectedTypeId))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// get the actual datatype.
|
||||
NodeId actualTypeId = TypeInfo.GetDataTypeId(value);
|
||||
|
||||
// value is valid if the expected datatype is same as or a supertype of the actual datatype
|
||||
// for example: expected datatype of 'Integer' matches an actual datatype of 'UInt32'.
|
||||
if (IsTypeOf(actualTypeId, expectedTypeId))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// allow matches non-structure values where the actual datatype is a supertype of the expected datatype.
|
||||
// for example: expected datatype of 'UtcTime' matches an actual datatype of 'DateTime'.
|
||||
if (actualTypeId != DataTypes.Structure)
|
||||
{
|
||||
return IsTypeOf(expectedTypeId, actualTypeId);
|
||||
}
|
||||
|
||||
// for structure types must try to determine the subtype.
|
||||
ExtensionObject extension = value as ExtensionObject;
|
||||
|
||||
if (extension != null)
|
||||
{
|
||||
return IsEncodingFor(expectedTypeId, extension);
|
||||
}
|
||||
|
||||
// every element in an array must match.
|
||||
ExtensionObject[] extensions = value as ExtensionObject[];
|
||||
|
||||
if (extensions != null)
|
||||
{
|
||||
for (int ii = 0; ii < extensions.Length; ii++)
|
||||
{
|
||||
if (!IsEncodingFor(expectedTypeId, extensions[ii]))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// can only get here if the value is an unrecognized data type.
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the data type for the specified encoding.
|
||||
/// </summary>
|
||||
/// <param name="encodingId">The encoding id.</param>
|
||||
/// <returns></returns>
|
||||
public NodeId FindDataTypeId(ExpandedNodeId encodingId)
|
||||
{
|
||||
ILocalNode encoding = Find(encodingId) as ILocalNode;
|
||||
|
||||
if (encoding == null)
|
||||
{
|
||||
return NodeId.Null;
|
||||
}
|
||||
|
||||
IList<IReference> references = encoding.References.Find(ReferenceTypeIds.HasEncoding, true, true, m_typeTree);
|
||||
|
||||
if (references.Count > 0)
|
||||
{
|
||||
return ExpandedNodeId.ToNodeId(references[0].TargetId, m_session.NamespaceUris);
|
||||
}
|
||||
|
||||
return NodeId.Null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the data type for the specified encoding.
|
||||
/// </summary>
|
||||
/// <param name="encodingId">The encoding id.</param>
|
||||
/// <returns>
|
||||
/// The data type for the <paramref name="encodingId"/>
|
||||
/// </returns>
|
||||
public NodeId FindDataTypeId(NodeId encodingId)
|
||||
{
|
||||
ILocalNode encoding = Find(encodingId) as ILocalNode;
|
||||
|
||||
if (encoding == null)
|
||||
{
|
||||
return NodeId.Null;
|
||||
}
|
||||
|
||||
IList<IReference> references = encoding.References.Find(ReferenceTypeIds.HasEncoding, true, true, m_typeTree);
|
||||
|
||||
if (references.Count > 0)
|
||||
{
|
||||
return ExpandedNodeId.ToNodeId(references[0].TargetId, m_session.NamespaceUris);
|
||||
}
|
||||
|
||||
return NodeId.Null;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
/// <summary>
|
||||
/// Loads the UA defined types into the cache.
|
||||
/// </summary>
|
||||
/// <param name="context">The context.</param>
|
||||
public void LoadUaDefinedTypes(ISystemContext context)
|
||||
{
|
||||
NodeStateCollection predefinedNodes = new NodeStateCollection();
|
||||
predefinedNodes.LoadFromBinaryResource(context, "Opc.Ua.Stack.Generated.Opc.Ua.PredefinedNodes.uanodes", typeof(NodeState).Assembly, true);
|
||||
|
||||
for (int ii = 0; ii < predefinedNodes.Count; ii++)
|
||||
{
|
||||
BaseTypeState type = predefinedNodes[ii] as BaseTypeState;
|
||||
|
||||
if (type == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
type.Export(context, m_nodes);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes all nodes from the cache.
|
||||
/// </summary>
|
||||
public void Clear()
|
||||
{
|
||||
m_nodes.Clear();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fetches a node from the server and updates the cache.
|
||||
/// </summary>
|
||||
public Node FetchNode(ExpandedNodeId nodeId)
|
||||
{
|
||||
NodeId localId = ExpandedNodeId.ToNodeId(nodeId, m_session.NamespaceUris);
|
||||
|
||||
if (localId == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// fetch node from server.
|
||||
Node source = m_session.ReadNode(localId);
|
||||
|
||||
try
|
||||
{
|
||||
// fetch references from server.
|
||||
ReferenceDescriptionCollection references = m_session.FetchReferences(localId);
|
||||
|
||||
foreach (ReferenceDescription reference in references)
|
||||
{
|
||||
// create a placeholder for the node if it does not already exist.
|
||||
if (!m_nodes.Exists(reference.NodeId))
|
||||
{
|
||||
Node target = new Node(reference);
|
||||
m_nodes.Attach(target);
|
||||
}
|
||||
|
||||
// add the reference.
|
||||
source.ReferenceTable.Add(reference.ReferenceTypeId, !reference.IsForward, reference.NodeId);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Utils.Trace("Could not fetch references for valid node with NodeId = {0}. Error = {1}", nodeId, e.Message);
|
||||
}
|
||||
|
||||
// add to cache.
|
||||
m_nodes.Attach(source);
|
||||
|
||||
return source;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the supertypes of the node to the cache.
|
||||
/// </summary>
|
||||
public void FetchSuperTypes(ExpandedNodeId nodeId)
|
||||
{
|
||||
// find the target node,
|
||||
ILocalNode source = Find(nodeId) as ILocalNode;
|
||||
|
||||
if (source == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// follow the tree.
|
||||
ILocalNode subType = source;
|
||||
|
||||
while (subType != null)
|
||||
{
|
||||
ILocalNode superType = null;
|
||||
|
||||
IList<IReference> references = subType.References.Find(ReferenceTypeIds.HasSubtype, true, true, this);
|
||||
|
||||
if (references != null && references.Count > 0)
|
||||
{
|
||||
superType = Find(references[0].TargetId) as ILocalNode;
|
||||
}
|
||||
|
||||
subType = superType;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the references of the specified node that meet the criteria specified.
|
||||
/// </summary>
|
||||
public IList<INode> FindReferences(
|
||||
ExpandedNodeId nodeId,
|
||||
NodeId referenceTypeId,
|
||||
bool isInverse,
|
||||
bool includeSubtypes)
|
||||
{
|
||||
IList<INode> targets = new List<INode>();
|
||||
|
||||
Node source = Find(nodeId) as Node;
|
||||
|
||||
if (source == null)
|
||||
{
|
||||
return targets;
|
||||
}
|
||||
|
||||
IList<IReference> references = source.ReferenceTable.Find(
|
||||
referenceTypeId,
|
||||
isInverse,
|
||||
includeSubtypes,
|
||||
m_typeTree);
|
||||
|
||||
foreach (IReference reference in references)
|
||||
{
|
||||
INode target = Find(reference.TargetId);
|
||||
|
||||
if (target != null)
|
||||
{
|
||||
targets.Add(target);
|
||||
}
|
||||
}
|
||||
|
||||
return targets;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a display name for a node.
|
||||
/// </summary>
|
||||
public string GetDisplayText(INode node)
|
||||
{
|
||||
// check for null.
|
||||
if (node == null)
|
||||
{
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
// check for remote node.
|
||||
Node target = node as Node;
|
||||
|
||||
if (target == null)
|
||||
{
|
||||
return node.ToString();
|
||||
}
|
||||
|
||||
string displayText = null;
|
||||
|
||||
// use the modelling rule to determine which parent to follow.
|
||||
NodeId modellingRule = target.ModellingRule;
|
||||
|
||||
foreach (IReference reference in target.ReferenceTable.Find(ReferenceTypeIds.Aggregates, true, true, m_typeTree))
|
||||
{
|
||||
Node parent = Find(reference.TargetId) as Node;
|
||||
|
||||
// use the first parent if modelling rule is new.
|
||||
if (modellingRule == Objects.ModellingRule_Mandatory)
|
||||
{
|
||||
displayText = GetDisplayText(parent);
|
||||
break;
|
||||
}
|
||||
|
||||
// use the type node as the parent for other modelling rules.
|
||||
if (parent is VariableTypeNode || parent is ObjectTypeNode)
|
||||
{
|
||||
displayText = GetDisplayText(parent);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// prepend the parent display name.
|
||||
if (displayText != null)
|
||||
{
|
||||
return Utils.Format("{0}.{1}", displayText, node);
|
||||
}
|
||||
|
||||
// simply use the node name.
|
||||
return node.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a display name for a node.
|
||||
/// </summary>
|
||||
public string GetDisplayText(ExpandedNodeId nodeId)
|
||||
{
|
||||
if (NodeId.IsNull(nodeId))
|
||||
{
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
INode node = Find(nodeId);
|
||||
|
||||
if (node != null)
|
||||
{
|
||||
return GetDisplayText(node);
|
||||
}
|
||||
|
||||
return Utils.Format("{0}", nodeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a display name for the target of a reference.
|
||||
/// </summary>
|
||||
public string GetDisplayText(ReferenceDescription reference)
|
||||
{
|
||||
if (reference == null || NodeId.IsNull(reference.NodeId))
|
||||
{
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
INode node = Find(reference.NodeId);
|
||||
|
||||
if (node != null)
|
||||
{
|
||||
return GetDisplayText(node);
|
||||
}
|
||||
|
||||
return reference.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Builds the relative path from a type to a node.
|
||||
/// </summary>
|
||||
public NodeId BuildBrowsePath(ILocalNode node, IList<QualifiedName> browsePath)
|
||||
{
|
||||
NodeId typeId = null;
|
||||
|
||||
browsePath.Add(node.BrowseName);
|
||||
|
||||
return typeId;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Fields
|
||||
private Session m_session;
|
||||
private TypeTable m_typeTree;
|
||||
private NodeTable m_nodes;
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
/* ========================================================================
|
||||
* Copyright (c) 2005-2017 The OPC Foundation, Inc. All rights reserved.
|
||||
*
|
||||
* OPC Foundation MIT License 1.00
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
* files (the "Software"), to deal in the Software without
|
||||
* restriction, including without limitation the rights to use,
|
||||
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following
|
||||
* conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* The complete license agreement can be found here:
|
||||
* http://opcfoundation.org/License/MIT/1.00/
|
||||
* ======================================================================*/
|
||||
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Opc.Ua.Client")]
|
||||
[assembly: AssemblyDescription("UA Client Library")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("OPC Foundation")]
|
||||
[assembly: AssemblyProduct("OPC UA SDK")]
|
||||
[assembly: AssemblyCopyright(AssemblyVersionInfo.Copyright)]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("4f44cd9c-d8cf-4e52-9c21-d0330fe0912c")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion(AssemblyVersionInfo.CurrentVersion)]
|
||||
[assembly: AssemblyFileVersion(AssemblyVersionInfo.CurrentFileVersion)]
|
||||
@@ -0,0 +1,47 @@
|
||||
/* ========================================================================
|
||||
* Copyright (c) 2005-2017 The OPC Foundation, Inc. All rights reserved.
|
||||
*
|
||||
* OPC Reciprocal Community License ("RCL") Version 1.00
|
||||
*
|
||||
* Unless explicitly acquired and licensed from Licensor under another
|
||||
* license, the contents of this file are subject to the Reciprocal
|
||||
* Community License ("RCL") Version 1.00, or subsequent versions
|
||||
* as allowed by the RCL, and You may not copy or use this file in either
|
||||
* source code or executable form, except in compliance with the terms and
|
||||
* conditions of the RCL.
|
||||
*
|
||||
* All software distributed under the RCL is provided strictly on an
|
||||
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
|
||||
* AND LICENSOR HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
|
||||
* LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
* PURPOSE, QUIET ENJOYMENT, OR NON-INFRINGEMENT. See the RCL for specific
|
||||
* language governing rights and limitations under the RCL.
|
||||
*
|
||||
* The complete license agreement can be found here:
|
||||
* http://opcfoundation.org/License/RCL/1.00/
|
||||
* ======================================================================*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/// <summary>
|
||||
/// Defines string constants for SDK version information.
|
||||
/// </summary>
|
||||
internal static class AssemblyVersionInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// The current copy right notice.
|
||||
/// </summary>
|
||||
public const string Copyright = "Copyright © 2004-2016 OPC Foundation, Inc";
|
||||
|
||||
/// <summary>
|
||||
/// The current build version.
|
||||
/// </summary>
|
||||
public const string CurrentVersion = "1.03.341.0";
|
||||
|
||||
/// <summary>
|
||||
/// The current build file version.
|
||||
/// </summary>
|
||||
public const string CurrentFileVersion = "1.03.341.0";
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,200 @@
|
||||
/* ========================================================================
|
||||
* Copyright (c) 2005-2017 The OPC Foundation, Inc. All rights reserved.
|
||||
*
|
||||
* OPC Foundation MIT License 1.00
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
* files (the "Software"), to deal in the Software without
|
||||
* restriction, including without limitation the rights to use,
|
||||
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following
|
||||
* conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* The complete license agreement can be found here:
|
||||
* http://opcfoundation.org/License/MIT/1.00/
|
||||
* ======================================================================*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using Opc.Ua;
|
||||
|
||||
namespace Opc.Ua.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// Attempts to reconnect to the server.
|
||||
/// </summary>
|
||||
public class SessionReconnectHandler : IDisposable
|
||||
{
|
||||
#region IDisposable Members
|
||||
/// <summary>
|
||||
/// Frees any unmanaged resources.
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An overrideable version of the Dispose.
|
||||
/// </summary>
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
lock (m_lock)
|
||||
{
|
||||
if (m_reconnectTimer != null)
|
||||
{
|
||||
m_reconnectTimer.Dispose();
|
||||
m_reconnectTimer = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
/// <summary>
|
||||
/// Gets the session managed by the handler.
|
||||
/// </summary>
|
||||
/// <value>The session.</value>
|
||||
public Session Session
|
||||
{
|
||||
get { return m_session; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Begins the reconnect process.
|
||||
/// </summary>
|
||||
public void BeginReconnect(Session session, int reconnectPeriod, EventHandler callback)
|
||||
{
|
||||
lock (m_lock)
|
||||
{
|
||||
if (m_reconnectTimer != null)
|
||||
{
|
||||
throw new ServiceResultException(StatusCodes.BadInvalidState);
|
||||
}
|
||||
|
||||
m_session = session;
|
||||
m_reconnectFailed = false;
|
||||
m_reconnectPeriod = reconnectPeriod;
|
||||
m_callback = callback;
|
||||
m_reconnectTimer = new System.Threading.Timer(OnReconnect, null, reconnectPeriod, reconnectPeriod);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
/// <summary>
|
||||
/// Called when the reconnect timer expires.
|
||||
/// </summary>
|
||||
private void OnReconnect(object state)
|
||||
{
|
||||
try
|
||||
{
|
||||
// check for exit.
|
||||
if (m_reconnectTimer == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// do the reconnect.
|
||||
if (DoReconnect())
|
||||
{
|
||||
lock (m_lock)
|
||||
{
|
||||
if (m_reconnectTimer != null)
|
||||
{
|
||||
m_reconnectTimer.Dispose();
|
||||
m_reconnectTimer = null;
|
||||
}
|
||||
}
|
||||
|
||||
// notify the caller.
|
||||
m_callback(this, null);
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Utils.Trace(exception, "Unexpected error during reconnect.");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reconnects to the server.
|
||||
/// </summary>
|
||||
private bool DoReconnect()
|
||||
{
|
||||
// try a reconnect.
|
||||
if (!m_reconnectFailed)
|
||||
{
|
||||
try
|
||||
{
|
||||
m_session.Reconnect();
|
||||
|
||||
// monitored items should start updating on their own.
|
||||
return true;
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
// recreate the session if it has been closed.
|
||||
ServiceResultException sre = exception as ServiceResultException;
|
||||
|
||||
// check if the server endpoint could not be reached.
|
||||
if ((sre != null && (sre.StatusCode == StatusCodes.BadTcpInternalError || sre.StatusCode == StatusCodes.BadCommunicationError)) ||
|
||||
exception is System.ServiceModel.EndpointNotFoundException)
|
||||
{
|
||||
// check if reconnecting is still an option.
|
||||
if (m_session.LastKeepAliveTime.AddMilliseconds(m_session.SessionTimeout) > DateTime.UtcNow)
|
||||
{
|
||||
Utils.Trace("Calling OnReconnectSession in {0} ms.", m_reconnectPeriod);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
m_reconnectFailed = true;
|
||||
}
|
||||
}
|
||||
|
||||
// re-create the session.
|
||||
try
|
||||
{
|
||||
Session session = Session.Recreate(m_session);
|
||||
m_session.Close();
|
||||
m_session = session;
|
||||
return true;
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Utils.Trace("Could not reconnect the Session. {0}", exception.Message);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Fields
|
||||
private object m_lock = new object();
|
||||
private Session m_session;
|
||||
private bool m_reconnectFailed;
|
||||
private int m_reconnectPeriod;
|
||||
private Timer m_reconnectTimer;
|
||||
private EventHandler m_callback;
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,137 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{42E9198C-ED2C-4BC8-B0A1-55D91D8F1E90}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Opc.Ua.Client</RootNamespace>
|
||||
<AssemblyName>Opc.Ua.Client</AssemblyName>
|
||||
<SignAssembly>false</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>..\..\..\Key\OPC Key Pair.snk</AssemblyOriginatorKeyFile>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<IsWebBootstrapper>true</IsWebBootstrapper>
|
||||
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile />
|
||||
<PublishUrl>http://localhost/Opc.Ua.Client/</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Web</InstallFrom>
|
||||
<UpdateEnabled>true</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<CodeAnalysisRules>-Microsoft.Design#CA1021;-Microsoft.Design#CA1031;-Microsoft.Design#CA1002;-Microsoft.Design#CA1014;-Microsoft.Design#CA1024;-Microsoft.Usage#CA1801</CodeAnalysisRules>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.configuration" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.IdentityModel" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Browser.cs" />
|
||||
<Compile Include="Documentation\Opc.Ua.Client.cs" />
|
||||
<Compile Include="GlobalSuppressions.cs" />
|
||||
<Compile Include="MonitoredItemStatus.cs" />
|
||||
<Compile Include="DataDictionary.cs" />
|
||||
<Compile Include="NodeCache.cs" />
|
||||
<Compile Include="Properties\AssemblyVersionInfo.cs" />
|
||||
<Compile Include="Session.cs" />
|
||||
<Compile Include="MonitoredItem.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SessionReconnectHandler.cs" />
|
||||
<Compile Include="Subscription.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Stack\Core\UA Core Library.csproj">
|
||||
<Project>{7543afcb-f5af-44af-83c9-23164474c1e9}</Project>
|
||||
<Name>UA Core Library</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
<PreBuildEvent>
|
||||
</PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace UA_Client_1500
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new UAClientForm());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("UA_Client_1500")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("UA_Client_1500")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2016")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("480c4b0a-73b1-45e5-9d9b-7e1094ecb921")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace UA_Client_1500.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("UA_Client_1500.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34209
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace UA_Client_1500.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Copyright (c) 1996-2017, OPC Foundation. All rights reserved.
|
||||
|
||||
The source code in this file is covered under a dual-license scenario:
|
||||
- RCL: for OPC Foundation members in good-standing
|
||||
- GPL V2: everybody else
|
||||
|
||||
RCL license terms accompanied with this source code. See http://opcfoundation.org/License/RCL/1.00/
|
||||
|
||||
GNU General Public License as published by the Free Software Foundation;
|
||||
version 2 of the License are accompanied with this source code. See http://opcfoundation.org/License/GPLv2
|
||||
|
||||
This source code is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
namespace Opc.Ua.Bindings
|
||||
{
|
||||
/// <summary>
|
||||
/// The <b>Opc.Ua.Bindings</b> namespace contains classes that implement the WCF bindings for the
|
||||
/// mappings described in Part 6 of the UA specification. It also includes an implementation for
|
||||
/// the UA TCP protocol.
|
||||
/// </summary>
|
||||
///<exclude/>
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class NamespaceDoc
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Copyright (c) 1996-2017, OPC Foundation. All rights reserved.
|
||||
|
||||
The source code in this file is covered under a dual-license scenario:
|
||||
- RCL: for OPC Foundation members in good-standing
|
||||
- GPL V2: everybody else
|
||||
|
||||
RCL license terms accompanied with this source code. See http://opcfoundation.org/License/RCL/1.00/
|
||||
|
||||
GNU General Public License as published by the Free Software Foundation;
|
||||
version 2 of the License are accompanied with this source code. See http://opcfoundation.org/License/GPLv2
|
||||
|
||||
This source code is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
namespace Opc.Ua.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// The <b>Opc.Ua.Configuration</b> namespace contains classes that used to manage the
|
||||
/// configuration and security information for a UA application.
|
||||
/// </summary>
|
||||
///<exclude/>
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class NamespaceDoc
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Copyright (c) 1996-2017, OPC Foundation. All rights reserved.
|
||||
|
||||
The source code in this file is covered under a dual-license scenario:
|
||||
- RCL: for OPC Foundation members in good-standing
|
||||
- GPL V2: everybody else
|
||||
|
||||
RCL license terms accompanied with this source code. See http://opcfoundation.org/License/RCL/1.00/
|
||||
|
||||
GNU General Public License as published by the Free Software Foundation;
|
||||
version 2 of the License are accompanied with this source code. See http://opcfoundation.org/License/GPLv2
|
||||
|
||||
This source code is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
namespace Opc.Ua.Schema.Binary
|
||||
{
|
||||
/// <summary>
|
||||
/// The <b>Opc.Ua.Schema.Binary</b> namespace provides classes which implement the OPC Binary
|
||||
/// Type Description schema which is defined in Part 3 of the UA specification.
|
||||
/// </summary>
|
||||
///<exclude/>
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class NamespaceDoc
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Copyright (c) 1996-2017, OPC Foundation. All rights reserved.
|
||||
|
||||
The source code in this file is covered under a dual-license scenario:
|
||||
- RCL: for OPC Foundation members in good-standing
|
||||
- GPL V2: everybody else
|
||||
|
||||
RCL license terms accompanied with this source code. See http://opcfoundation.org/License/RCL/1.00/
|
||||
|
||||
GNU General Public License as published by the Free Software Foundation;
|
||||
version 2 of the License are accompanied with this source code. See http://opcfoundation.org/License/GPLv2
|
||||
|
||||
This source code is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
namespace Opc.Ua.Schema.Xml
|
||||
{
|
||||
/// <summary>
|
||||
/// The <b>Opc.Ua.Schema.Xml</b> namespace provides classes which provide access to
|
||||
/// XML schemas used to describe the data types provided by a UA Server.
|
||||
/// </summary>
|
||||
///<exclude/>
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class NamespaceDoc
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Copyright (c) 1996-2017, OPC Foundation. All rights reserved.
|
||||
|
||||
The source code in this file is covered under a dual-license scenario:
|
||||
- RCL: for OPC Foundation members in good-standing
|
||||
- GPL V2: everybody else
|
||||
|
||||
RCL license terms accompanied with this source code. See http://opcfoundation.org/License/RCL/1.00/
|
||||
|
||||
GNU General Public License as published by the Free Software Foundation;
|
||||
version 2 of the License are accompanied with this source code. See http://opcfoundation.org/License/GPLv2
|
||||
|
||||
This source code is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
namespace Opc.Ua.Schema
|
||||
{
|
||||
/// <summary>
|
||||
/// The <b>Opc.Ua.Schema</b> namespace provides classes which facilitate manipulation of the schemas
|
||||
/// used to describe data types exposed by a UA server.
|
||||
/// </summary>
|
||||
///<exclude/>
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class NamespaceDoc
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Copyright (c) 1996-2017, OPC Foundation. All rights reserved.
|
||||
|
||||
The source code in this file is covered under a dual-license scenario:
|
||||
- RCL: for OPC Foundation members in good-standing
|
||||
- GPL V2: everybody else
|
||||
|
||||
RCL license terms accompanied with this source code. See http://opcfoundation.org/License/RCL/1.00/
|
||||
|
||||
GNU General Public License as published by the Free Software Foundation;
|
||||
version 2 of the License are accompanied with this source code. See http://opcfoundation.org/License/GPLv2
|
||||
|
||||
This source code is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
namespace Opc.Ua
|
||||
{
|
||||
/// <summary>
|
||||
/// The <b>Opc.Ua</b> namespace contains classes and interfaces which implement all of the types
|
||||
/// and services defined by the UA specification.
|
||||
/// </summary>
|
||||
///<exclude/>
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class NamespaceDoc
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Copyright (c) 1996-2017, OPC Foundation. All rights reserved.
|
||||
|
||||
The source code in this file is covered under a dual-license scenario:
|
||||
- RCL: for OPC Foundation members in good-standing
|
||||
- GPL V2: everybody else
|
||||
|
||||
RCL license terms accompanied with this source code. See http://opcfoundation.org/License/RCL/1.00/
|
||||
|
||||
GNU General Public License as published by the Free Software Foundation;
|
||||
version 2 of the License are accompanied with this source code. See http://opcfoundation.org/License/GPLv2
|
||||
|
||||
This source code is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
[assembly: CLSCompliant(false)]
|
||||
|
||||
[assembly: AssemblyTitle("Opc.Ua.Core")]
|
||||
[assembly: AssemblyDescription("OPC UA Core Class Library")]
|
||||
[assembly: AssemblyCompany("OPC Foundation")]
|
||||
[assembly: AssemblyProduct("OPC UA SDK")]
|
||||
[assembly: AssemblyCopyright(AssemblyVersionInfo.Copyright)]
|
||||
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("b59483cd-5ba9-4e53-8451-5ab7e1edd192")]
|
||||
|
||||
[assembly: AssemblyVersion(AssemblyVersionInfo.CurrentVersion)]
|
||||
[assembly: AssemblyFileVersion(AssemblyVersionInfo.CurrentFileVersion)]
|
||||
@@ -0,0 +1,40 @@
|
||||
/* Copyright (c) 1996-2017, OPC Foundation. All rights reserved.
|
||||
|
||||
The source code in this file is covered under a dual-license scenario:
|
||||
- RCL: for OPC Foundation members in good-standing
|
||||
- GPL V2: everybody else
|
||||
|
||||
RCL license terms accompanied with this source code. See http://opcfoundation.org/License/RCL/1.00/
|
||||
|
||||
GNU General Public License as published by the Free Software Foundation;
|
||||
version 2 of the License are accompanied with this source code. See http://opcfoundation.org/License/GPLv2
|
||||
|
||||
This source code is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/// <summary>
|
||||
/// Defines string constants for SDK version information.
|
||||
/// </summary>
|
||||
internal static class AssemblyVersionInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// The current copy right notice.
|
||||
/// </summary>
|
||||
public const string Copyright = "Copyright © 2004-2016 OPC Foundation, Inc";
|
||||
|
||||
/// <summary>
|
||||
/// The current build version.
|
||||
/// </summary>
|
||||
public const string CurrentVersion = "1.03.341.0";
|
||||
|
||||
/// <summary>
|
||||
/// The current build file version.
|
||||
/// </summary>
|
||||
public const string CurrentFileVersion = "1.03.341.0";
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,330 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="ApplicationConfiguration"
|
||||
targetNamespace="http://opcfoundation.org/UA/SDK/Configuration.xsd"
|
||||
elementFormDefault="qualified"
|
||||
xmlns="http://opcfoundation.org/UA/SDK/Configuration.xsd"
|
||||
xmlns:mstns="http://opcfoundation.org/UA/SDK/Configuration.xsd"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:ua="http://opcfoundation.org/UA/2008/02/Types.xsd"
|
||||
>
|
||||
<xs:import namespace="http://opcfoundation.org/UA/2008/02/Types.xsd" schemaLocation="./Opc.Ua.Types.xsd"/>
|
||||
|
||||
<xs:complexType name="ApplicationConfiguration">
|
||||
<xs:sequence>
|
||||
<xs:element name="ApplicationName" type="xs:string" />
|
||||
<xs:element name="ApplicationUri" type="xs:string"/>
|
||||
<xs:element name="ProductUri" type="xs:string" minOccurs="0" nillable="true" />
|
||||
<xs:element name="ApplicationType" type="ua:ApplicationType" />
|
||||
<xs:element name="SecurityConfiguration" type="SecurityConfiguration" minOccurs="0" nillable="true" />
|
||||
<xs:element name="TransportConfigurations" type="ListOfTransportConfiguration" minOccurs="0" nillable="true" />
|
||||
<xs:element name="TransportQuotas" type="TransportQuotas" minOccurs="0" nillable="true" />
|
||||
<xs:element name="ServerConfiguration" type="ServerConfiguration" minOccurs="0" />
|
||||
<xs:element name="ClientConfiguration" type="ClientConfiguration" minOccurs="0" />
|
||||
<xs:element name="DiscoveryServerConfiguration" type="DiscoveryServerConfiguration" minOccurs="0" />
|
||||
<xs:element name="Extensions" type="ua:ListOfXmlElement" minOccurs="0" />
|
||||
<xs:element name="TraceConfiguration" type="TraceConfiguration" minOccurs="0" />
|
||||
<xs:element name="DisableHiResClock" type="xs:boolean" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:element name="ApplicationConfiguration" type="ApplicationConfiguration" />
|
||||
|
||||
<xs:complexType name="SecurityConfiguration">
|
||||
<xs:sequence>
|
||||
<xs:element name="ApplicationCertificate" type="CertificateIdentifier" />
|
||||
<xs:element name="TrustedIssuerCertificates" type="CertificateTrustList" minOccurs="0" />
|
||||
<xs:element name="TrustedPeerCertificates" type="CertificateTrustList" minOccurs="0" />
|
||||
<xs:element name="NonceLength" type="xs:int" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="RejectedCertificateStore" type="CertificateStoreIdentifier" minOccurs="0" />
|
||||
<xs:element name="AutoAcceptUntrustedCertificates" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="UserRoleDirectory" type="xs:string" minOccurs="0" nillable="true" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ListOfTransportConfiguration">
|
||||
<xs:sequence>
|
||||
<xs:element name="TransportConfiguration" type="TransportConfiguration" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="TransportConfiguration">
|
||||
<xs:sequence>
|
||||
<xs:element name="UriScheme" type="xs:string" />
|
||||
<xs:element name="TypeName" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="TransportQuotas">
|
||||
<xs:sequence>
|
||||
<xs:element name="OperationTimeout" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxStringLength" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxByteStringLength" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxArrayLength" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxMessageSize" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxBufferSize" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="ChannelLifetime" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="SecurityTokenLifetime" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ServerBaseConfiguration">
|
||||
<xs:sequence>
|
||||
<xs:element name="BaseAddresses" type="ua:ListOfString" minOccurs="0" nillable="true" />
|
||||
<xs:element name="AlternateBaseAddresses" type="ua:ListOfString" minOccurs="0" nillable="true" />
|
||||
<xs:element name="SecurityPolicies" type="ListOfServerSecurityPolicy" minOccurs="0" nillable="true" />
|
||||
<xs:element name="MinRequestThreadCount" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxRequestThreadCount" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxQueuedRequestCount" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ListOfServerSecurityPolicy">
|
||||
<xs:sequence>
|
||||
<xs:element name="ServerSecurityPolicy" type="ServerSecurityPolicy" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ServerSecurityPolicy">
|
||||
<xs:sequence>
|
||||
<xs:element name="SecurityMode" type="ua:MessageSecurityMode" minOccurs="0" />
|
||||
<xs:element name="SecurityPolicyUri" type="xs:string" minOccurs="0" nillable="true" />
|
||||
<xs:element name="SecurityLevel" type="xs:unsignedByte" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ListOfSamplingRateGroup">
|
||||
<xs:sequence>
|
||||
<xs:element name="SamplingRateGroup" type="SamplingRateGroup" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="SamplingRateGroup">
|
||||
<xs:sequence>
|
||||
<xs:element name="Start" type="xs:double" minOccurs="0" />
|
||||
<xs:element name="Increment" type="xs:double" minOccurs="0" />
|
||||
<xs:element name="Count" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ServerConfiguration">
|
||||
<xs:complexContent mixed="false">
|
||||
<xs:extension base="ServerBaseConfiguration">
|
||||
<xs:sequence>
|
||||
<xs:element name="UserTokenPolicies" type="ua:ListOfUserTokenPolicy" minOccurs="0" />
|
||||
<xs:element name="DiagnosticsEnabled" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="MaxSessionCount" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MinSessionTimeout" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxSessionTimeout" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxBrowseContinuationPoints" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxQueryContinuationPoints" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxHistoryContinuationPoints" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxRequestAge" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MinPublishingInterval" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxPublishingInterval" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="PublishingResolution" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxSubscriptionLifetime" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxMessageQueueSize" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxNotificationQueueSize" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxNotificationsPerPublish" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MinMetadataSamplingInterval" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="AvailableSamplingRates" type="ListOfSamplingRateGroup" minOccurs="0" />
|
||||
<xs:element name="RegistrationEndpoint" type="ua:EndpointDescription" minOccurs="0" />
|
||||
<xs:element name="MaxRegistrationInterval" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="NodeManagerSaveFile" type="xs:string" minOccurs="0" nillable="true" />
|
||||
<xs:element name="MinSubscriptionLifetime" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxPublishRequestCount" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxSubscriptionCount" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="MaxEventQueueSize" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="DiscoveryServerConfiguration">
|
||||
<xs:complexContent mixed="false">
|
||||
<xs:extension base="ServerBaseConfiguration">
|
||||
<xs:sequence>
|
||||
<xs:element name="ServerNames" type="ua:ListOfLocalizedText" minOccurs="0" />
|
||||
<xs:element name="DiscoveryServerCacheFile" type="xs:string" minOccurs="0" nillable="true" />
|
||||
<xs:element name="ServerRegistrations" type="ListOfServerRegistration" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ListOfServerRegistration">
|
||||
<xs:sequence>
|
||||
<xs:element name="ServerRegistration" type="ServerRegistration" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ServerRegistration">
|
||||
<xs:sequence>
|
||||
<xs:element name="ApplicationUri" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="AlternateDiscoveryUrls" type="ua:ListOfString" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ClientConfiguration">
|
||||
<xs:sequence>
|
||||
<xs:element name="DefaultSessionTimeout" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="WellKnownDiscoveryUrls" type="ua:ListOfString" minOccurs="0" />
|
||||
<xs:element name="DiscoveryServers" type="ua:ListOfEndpointDescription" minOccurs="0" />
|
||||
<xs:element name="EndpointCacheFilePath" type="xs:string" minOccurs="0" nillable="true" />
|
||||
<xs:element name="MinSubscriptionLifetime" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="TraceConfiguration">
|
||||
<xs:sequence>
|
||||
<xs:element name="OutputFilePath" type="xs:string" minOccurs="0" nillable="true" />
|
||||
<xs:element name="DeleteOnLoad" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="TraceMasks" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="CertificateIdentifier">
|
||||
<xs:sequence>
|
||||
<xs:element name="StoreType" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="StorePath" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="StoreName" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="StoreLocation" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="SubjectName" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="Thumbprint" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="RawData" type="xs:base64Binary" minOccurs="0" />
|
||||
<xs:element name="ValidationOptions" type="xs:int" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ListOfCertificateIdentifier">
|
||||
<xs:sequence>
|
||||
<xs:element name="CertificateIdentifier" type="CertificateIdentifier" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="CertificateStoreIdentifier">
|
||||
<xs:sequence>
|
||||
<xs:element name="StoreType" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="StorePath" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="StoreName" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="StoreLocation" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="ValidationOptions" type="xs:int" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="CertificateTrustList">
|
||||
<xs:complexContent mixed="false">
|
||||
<xs:extension base="CertificateStoreIdentifier">
|
||||
<xs:sequence>
|
||||
<xs:element name="TrustedCertificates" type="ListOfCertificateIdentifier" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ConfiguredEndpointCollection">
|
||||
<xs:sequence>
|
||||
<xs:element name="KnownHosts" type="ua:ListOfString" minOccurs="0" nillable="true" />
|
||||
<xs:element name="Endpoints" type="ListOfConfiguredEndpoint" minOccurs="0" nillable="true" />
|
||||
<xs:element name="TcpProxyUrl" type="xs:anyURI" minOccurs="0" nillable="true" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:element name="ConfiguredEndpointCollection" type="ConfiguredEndpointCollection" />
|
||||
|
||||
<xs:complexType name="ListOfConfiguredEndpoint">
|
||||
<xs:sequence>
|
||||
<xs:element name="ConfiguredEndpoint" type="ConfiguredEndpoint" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ConfiguredEndpoint">
|
||||
<xs:sequence>
|
||||
<xs:element name="Endpoint" type="ua:EndpointDescription" minOccurs="0" />
|
||||
<xs:element name="Configuration" type="ua:EndpointConfiguration" minOccurs="0" />
|
||||
<xs:element name="UpdateBeforeConnect" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="BinaryEncodingSupport" type="BinaryEncodingSupport" minOccurs="0" />
|
||||
<xs:element name="SelectedUserTokenPolicy" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="UserIdentity" type="ua:UserIdentityToken" minOccurs="0" />
|
||||
<xs:element name="ComIdentity" type="EndpointComIdentity" minOccurs="0" />
|
||||
<xs:element name="Extensions" type="ua:ListOfXmlElement" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="BinaryEncodingSupport">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Optional" />
|
||||
<xs:enumeration value="Required" />
|
||||
<xs:enumeration value="None" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:complexType name="EndpointComIdentity">
|
||||
<xs:sequence>
|
||||
<xs:element name="Clsid" type="ua:Guid" minOccurs="0" />
|
||||
<xs:element name="ProgId" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="Specification" type="ComSpecification" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="ComSpecification">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="DA" />
|
||||
<xs:enumeration value="AE" />
|
||||
<xs:enumeration value="HDA" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:complexType name="ApplicationAccessRule">
|
||||
<xs:sequence>
|
||||
<xs:element name="IdentityName" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="RuleType" type="AccessControlType" minOccurs="0" />
|
||||
<xs:element name="Right" type="ApplicationAccessRight" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ListOfApplicationAccessRule">
|
||||
<xs:sequence>
|
||||
<xs:element name="ApplicationAccessRule" type="ApplicationAccessRule" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="AccessControlType">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Allow" />
|
||||
<xs:enumeration value="Deny" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="ApplicationAccessRight">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="None" />
|
||||
<xs:enumeration value="Run" />
|
||||
<xs:enumeration value="Update" />
|
||||
<xs:enumeration value="Configure" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,22 @@
|
||||
NodeId,1
|
||||
NodeClass,2
|
||||
BrowseName,3
|
||||
DisplayName,4
|
||||
Description,5
|
||||
WriteMask,6
|
||||
UserWriteMask,7
|
||||
IsAbstract,8
|
||||
Symmetric,9
|
||||
InverseName,10
|
||||
ContainsNoLoops,11
|
||||
EventNotifier,12
|
||||
Value,13
|
||||
DataType,14
|
||||
ValueRank,15
|
||||
ArrayDimensions,16
|
||||
AccessLevel,17
|
||||
UserAccessLevel,18
|
||||
MinimumSamplingInterval,19
|
||||
Historizing,20
|
||||
Executable,21
|
||||
UserExecutable,22
|
||||
|
@@ -0,0 +1,16 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
echo Processing NodeSet Schema
|
||||
xsd /classes /n:Opc.Ua.Export UANodeSet.xsd
|
||||
|
||||
echo #pragma warning disable 1591 > temp.txt
|
||||
type UANodeSet.cs >> temp.txt
|
||||
type temp.txt > UANodeSet.cs
|
||||
|
||||
echo Processing SecuredApplication Schema
|
||||
svcutil /dconly /namespace:*,Opc.Ua.Security /out:SecuredApplication.cs SecuredApplication.xsd
|
||||
|
||||
echo #pragma warning disable 1591 > temp.txt
|
||||
type SecuredApplication.cs >> temp.txt
|
||||
type temp.txt > SecuredApplication.cs
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,569 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<wsdl:definitions
|
||||
name="UAEndpoints"
|
||||
targetNamespace="http://opcfoundation.org/UA/2008/02/Endpoints.wsdl"
|
||||
xmlns:tns="http://opcfoundation.org/UA/2008/02/Endpoints.wsdl"
|
||||
xmlns:s0="http://opcfoundation.org/UA/2008/02/Services.wsdl"
|
||||
xmlns:s1="http://localhost.org/UA/SampleServer"
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
|
||||
xmlns:wsa10="http://www.w3.org/2005/08/addressing"
|
||||
>
|
||||
<wsdl:import namespace="http://opcfoundation.org/UA/2008/02/Services.wsdl" location="http://opcfoundation.org/UA/2008/02/Services.wsdl" />
|
||||
<wsdl:types />
|
||||
|
||||
<wsdl:binding name="UaSoapXmlBinding_ISessionEndpoint" type="s0:ISessionEndpoint">
|
||||
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
|
||||
<wsdl:operation name="InvokeService">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Types.xsd/InvokeService" style="document"/>
|
||||
<wsdl:input name="InvokeServiceMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="InvokeServiceResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="InvokeServiceFaultMessage">
|
||||
<soap12:fault name="InvokeServiceFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="CreateSession">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateSession" style="document"/>
|
||||
<wsdl:input name="CreateSessionMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="CreateSessionResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="CreateSessionFaultMessage">
|
||||
<soap12:fault name="CreateSessionFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="ActivateSession">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/ActivateSession" style="document"/>
|
||||
<wsdl:input name="ActivateSessionMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="ActivateSessionResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ActivateSessionFaultMessage">
|
||||
<soap12:fault name="ActivateSessionFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="CloseSession">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/CloseSession" style="document"/>
|
||||
<wsdl:input name="CloseSessionMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="CloseSessionResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="CloseSessionFaultMessage">
|
||||
<soap12:fault name="CloseSessionFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Cancel">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/Cancel" style="document"/>
|
||||
<wsdl:input name="CancelMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="CancelResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="CancelFaultMessage">
|
||||
<soap12:fault name="CancelFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="AddNodes">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/AddNodes" style="document"/>
|
||||
<wsdl:input name="AddNodesMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="AddNodesResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="AddNodesFaultMessage">
|
||||
<soap12:fault name="AddNodesFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="AddReferences">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/AddReferences" style="document"/>
|
||||
<wsdl:input name="AddReferencesMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="AddReferencesResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="AddReferencesFaultMessage">
|
||||
<soap12:fault name="AddReferencesFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="DeleteNodes">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteNodes" style="document"/>
|
||||
<wsdl:input name="DeleteNodesMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="DeleteNodesResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="DeleteNodesFaultMessage">
|
||||
<soap12:fault name="DeleteNodesFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="DeleteReferences">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteReferences" style="document"/>
|
||||
<wsdl:input name="DeleteReferencesMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="DeleteReferencesResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="DeleteReferencesFaultMessage">
|
||||
<soap12:fault name="DeleteReferencesFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Browse">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/Browse" style="document"/>
|
||||
<wsdl:input name="BrowseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="BrowseResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="BrowseFaultMessage">
|
||||
<soap12:fault name="BrowseFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="BrowseNext">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/BrowseNext" style="document"/>
|
||||
<wsdl:input name="BrowseNextMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="BrowseNextResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="BrowseNextFaultMessage">
|
||||
<soap12:fault name="BrowseNextFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="TranslateBrowsePathsToNodeIds">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/TranslateBrowsePathsToNodeIds" style="document"/>
|
||||
<wsdl:input name="TranslateBrowsePathsToNodeIdsMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="TranslateBrowsePathsToNodeIdsResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="TranslateBrowsePathsToNodeIdsFaultMessage">
|
||||
<soap12:fault name="TranslateBrowsePathsToNodeIdsFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="RegisterNodes">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterNodes" style="document"/>
|
||||
<wsdl:input name="RegisterNodesMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="RegisterNodesResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="RegisterNodesFaultMessage">
|
||||
<soap12:fault name="RegisterNodesFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="UnregisterNodes">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/UnregisterNodes" style="document"/>
|
||||
<wsdl:input name="UnregisterNodesMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="UnregisterNodesResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="UnregisterNodesFaultMessage">
|
||||
<soap12:fault name="UnregisterNodesFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="QueryFirst">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/QueryFirst" style="document"/>
|
||||
<wsdl:input name="QueryFirstMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="QueryFirstResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="QueryFirstFaultMessage">
|
||||
<soap12:fault name="QueryFirstFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="QueryNext">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/QueryNext" style="document"/>
|
||||
<wsdl:input name="QueryNextMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="QueryNextResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="QueryNextFaultMessage">
|
||||
<soap12:fault name="QueryNextFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Read">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/Read" style="document"/>
|
||||
<wsdl:input name="ReadMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="ReadResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ReadFaultMessage">
|
||||
<soap12:fault name="ReadFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="HistoryRead">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/HistoryRead" style="document"/>
|
||||
<wsdl:input name="HistoryReadMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="HistoryReadResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="HistoryReadFaultMessage">
|
||||
<soap12:fault name="HistoryReadFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Write">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/Write" style="document"/>
|
||||
<wsdl:input name="WriteMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="WriteResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="WriteFaultMessage">
|
||||
<soap12:fault name="WriteFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="HistoryUpdate">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/HistoryUpdate" style="document"/>
|
||||
<wsdl:input name="HistoryUpdateMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="HistoryUpdateResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="HistoryUpdateFaultMessage">
|
||||
<soap12:fault name="HistoryUpdateFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Call">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/Call" style="document"/>
|
||||
<wsdl:input name="CallMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="CallResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="CallFaultMessage">
|
||||
<soap12:fault name="CallFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="CreateMonitoredItems">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateMonitoredItems" style="document"/>
|
||||
<wsdl:input name="CreateMonitoredItemsMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="CreateMonitoredItemsResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="CreateMonitoredItemsFaultMessage">
|
||||
<soap12:fault name="CreateMonitoredItemsFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="ModifyMonitoredItems">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/ModifyMonitoredItems" style="document"/>
|
||||
<wsdl:input name="ModifyMonitoredItemsMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="ModifyMonitoredItemsResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ModifyMonitoredItemsFaultMessage">
|
||||
<soap12:fault name="ModifyMonitoredItemsFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="SetMonitoringMode">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetMonitoringMode" style="document"/>
|
||||
<wsdl:input name="SetMonitoringModeMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="SetMonitoringModeResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="SetMonitoringModeFaultMessage">
|
||||
<soap12:fault name="SetMonitoringModeFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="SetTriggering">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetTriggering" style="document"/>
|
||||
<wsdl:input name="SetTriggeringMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="SetTriggeringResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="SetTriggeringFaultMessage">
|
||||
<soap12:fault name="SetTriggeringFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="DeleteMonitoredItems">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteMonitoredItems" style="document"/>
|
||||
<wsdl:input name="DeleteMonitoredItemsMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="DeleteMonitoredItemsResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="DeleteMonitoredItemsFaultMessage">
|
||||
<soap12:fault name="DeleteMonitoredItemsFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="CreateSubscription">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateSubscription" style="document"/>
|
||||
<wsdl:input name="CreateSubscriptionMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="CreateSubscriptionResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="CreateSubscriptionFaultMessage">
|
||||
<soap12:fault name="CreateSubscriptionFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="ModifySubscription">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/ModifySubscription" style="document"/>
|
||||
<wsdl:input name="ModifySubscriptionMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="ModifySubscriptionResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ModifySubscriptionFaultMessage">
|
||||
<soap12:fault name="ModifySubscriptionFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="SetPublishingMode">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetPublishingMode" style="document"/>
|
||||
<wsdl:input name="SetPublishingModeMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="SetPublishingModeResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="SetPublishingModeFaultMessage">
|
||||
<soap12:fault name="SetPublishingModeFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Publish">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/Publish" style="document"/>
|
||||
<wsdl:input name="PublishMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="PublishResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="PublishFaultMessage">
|
||||
<soap12:fault name="PublishFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Republish">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/Republish" style="document"/>
|
||||
<wsdl:input name="RepublishMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="RepublishResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="RepublishFaultMessage">
|
||||
<soap12:fault name="RepublishFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="TransferSubscriptions">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/TransferSubscriptions" style="document"/>
|
||||
<wsdl:input name="TransferSubscriptionsMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="TransferSubscriptionsResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="TransferSubscriptionsFaultMessage">
|
||||
<soap12:fault name="TransferSubscriptionsFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="DeleteSubscriptions">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteSubscriptions" style="document"/>
|
||||
<wsdl:input name="DeleteSubscriptionsMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="DeleteSubscriptionsResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="DeleteSubscriptionsFaultMessage">
|
||||
<soap12:fault name="DeleteSubscriptionsFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
</wsdl:binding>
|
||||
|
||||
<wsdl:binding name="UaSoapXmlBinding_IDiscoveryEndpoint" type="s0:IDiscoveryEndpoint">
|
||||
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
|
||||
<wsdl:operation name="InvokeService">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Types.xsd/InvokeService" style="document"/>
|
||||
<wsdl:input name="InvokeServiceMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="InvokeServiceResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="InvokeServiceFaultMessage">
|
||||
<soap12:fault name="InvokeServiceFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="FindServers">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/FindServers" style="document"/>
|
||||
<wsdl:input name="FindServersMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="FindServersResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="FindServersFaultMessage">
|
||||
<soap12:fault name="FindServersFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="FindServersOnNetwork">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/FindServersOnNetwork" style="document"/>
|
||||
<wsdl:input name="FindServersOnNetworkMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="FindServersOnNetworkResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="FindServersOnNetworkFaultMessage">
|
||||
<soap12:fault name="FindServersOnNetworkFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="GetEndpoints">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/GetEndpoints" style="document"/>
|
||||
<wsdl:input name="GetEndpointsMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="GetEndpointsResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="GetEndpointsFaultMessage">
|
||||
<soap12:fault name="GetEndpointsFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
</wsdl:binding>
|
||||
|
||||
<wsdl:binding name="UaSoapXmlBinding_IRegistrationEndpoint" type="s0:IRegistrationEndpoint">
|
||||
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
|
||||
<wsdl:operation name="InvokeService">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/InvokeService" style="document"/>
|
||||
<wsdl:input name="InvokeServiceMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="InvokeServiceResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="InvokeServiceFaultMessage">
|
||||
<soap12:fault name="InvokeServiceFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="RegisterServer">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterServer" style="document"/>
|
||||
<wsdl:input name="RegisterServerMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="RegisterServerResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="RegisterServerFaultMessage">
|
||||
<soap12:fault name="RegisterServerFaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="RegisterServer2">
|
||||
<soap12:operation soapAction="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterServer2" style="document"/>
|
||||
<wsdl:input name="RegisterServer2Message">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="RegisterServer2ResponseMessage">
|
||||
<soap12:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="RegisterServer2FaultMessage">
|
||||
<soap12:fault name="RegisterServer2FaultMessage" use="literal" />
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
|
||||
</wsdl:binding>
|
||||
|
||||
<wsdl:service name="UAService">
|
||||
<wsdl:port name="UaSoapXmlBinding_ISessionEndpoint" binding="tns:UaSoapXmlBinding_ISessionEndpoint">
|
||||
<soap12:address location="http://localhost/UAService"/>
|
||||
</wsdl:port>
|
||||
<wsdl:port name="UaSoapXmlBinding_IDiscoveryEndpoint" binding="tns:UaSoapXmlBinding_IDiscoveryEndpoint">
|
||||
<soap12:address location="http://localhost/UAService/discovery"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
|
||||
<wsdl:service name="UADiscoveryService">
|
||||
<wsdl:port name="UaSoapXmlBinding_IDiscoveryEndpoint" binding="tns:UaSoapXmlBinding_IDiscoveryEndpoint">
|
||||
<soap12:address location="http://localhost:52601/UADiscovery"/>
|
||||
</wsdl:port>
|
||||
<wsdl:port name="UaSoapXmlBinding_IRegistrationEndpoint" binding="tns:UaSoapXmlBinding_IRegistrationEndpoint">
|
||||
<soap12:address location="http://localhost:52601/UADiscovery/registration"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
|
||||
</wsdl:definitions>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,648 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<wsdl:definitions
|
||||
targetNamespace="http://opcfoundation.org/UA/2008/02/Services.wsdl"
|
||||
xmlns:tns="http://opcfoundation.org/UA/2008/02/Services.wsdl"
|
||||
xmlns:s0="http://opcfoundation.org/UA/2008/02/Types.xsd"
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
>
|
||||
<wsdl:types>
|
||||
<xsd:schema targetNamespace="http://opcfoundation.org/UA/2008/02/Types.xsd/Imports">
|
||||
<xsd:import schemaLocation="http://opcfoundation.org/UA/2008/02/Types.xsd" namespace="http://opcfoundation.org/UA/2008/02/Types.xsd"/>
|
||||
</xsd:schema>
|
||||
</wsdl:types>
|
||||
|
||||
<wsdl:message name="InvokeServiceMessage">
|
||||
<wsdl:part name="input" element="s0:InvokeServiceRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="InvokeServiceResponseMessage">
|
||||
<wsdl:part name="output" element="s0:InvokeServiceResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="InvokeServiceFaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="FindServersMessage">
|
||||
<wsdl:part name="parameters" element="s0:FindServersRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="FindServersResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:FindServersResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="FindServers_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="FindServersOnNetworkMessage">
|
||||
<wsdl:part name="parameters" element="s0:FindServersOnNetworkRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="FindServersOnNetworkResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:FindServersOnNetworkResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="FindServersOnNetwork_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="GetEndpointsMessage">
|
||||
<wsdl:part name="parameters" element="s0:GetEndpointsRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="GetEndpointsResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:GetEndpointsResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="GetEndpoints_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="RegisterServerMessage">
|
||||
<wsdl:part name="parameters" element="s0:RegisterServerRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RegisterServerResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:RegisterServerResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RegisterServer_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="RegisterServer2Message">
|
||||
<wsdl:part name="parameters" element="s0:RegisterServer2Request"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RegisterServer2ResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:RegisterServer2Response"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RegisterServer2_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="CreateSessionMessage">
|
||||
<wsdl:part name="parameters" element="s0:CreateSessionRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CreateSessionResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:CreateSessionResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CreateSession_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="ActivateSessionMessage">
|
||||
<wsdl:part name="parameters" element="s0:ActivateSessionRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ActivateSessionResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:ActivateSessionResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ActivateSession_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="CloseSessionMessage">
|
||||
<wsdl:part name="parameters" element="s0:CloseSessionRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CloseSessionResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:CloseSessionResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CloseSession_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="CancelMessage">
|
||||
<wsdl:part name="parameters" element="s0:CancelRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CancelResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:CancelResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="Cancel_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="AddNodesMessage">
|
||||
<wsdl:part name="parameters" element="s0:AddNodesRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="AddNodesResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:AddNodesResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="AddNodes_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="AddReferencesMessage">
|
||||
<wsdl:part name="parameters" element="s0:AddReferencesRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="AddReferencesResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:AddReferencesResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="AddReferences_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="DeleteNodesMessage">
|
||||
<wsdl:part name="parameters" element="s0:DeleteNodesRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="DeleteNodesResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:DeleteNodesResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="DeleteNodes_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="DeleteReferencesMessage">
|
||||
<wsdl:part name="parameters" element="s0:DeleteReferencesRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="DeleteReferencesResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:DeleteReferencesResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="DeleteReferences_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="BrowseMessage">
|
||||
<wsdl:part name="parameters" element="s0:BrowseRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="BrowseResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:BrowseResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="Browse_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="BrowseNextMessage">
|
||||
<wsdl:part name="parameters" element="s0:BrowseNextRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="BrowseNextResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:BrowseNextResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="BrowseNext_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="TranslateBrowsePathsToNodeIdsMessage">
|
||||
<wsdl:part name="parameters" element="s0:TranslateBrowsePathsToNodeIdsRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="TranslateBrowsePathsToNodeIdsResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:TranslateBrowsePathsToNodeIdsResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="TranslateBrowsePathsToNodeIds_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="RegisterNodesMessage">
|
||||
<wsdl:part name="parameters" element="s0:RegisterNodesRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RegisterNodesResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:RegisterNodesResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RegisterNodes_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="UnregisterNodesMessage">
|
||||
<wsdl:part name="parameters" element="s0:UnregisterNodesRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="UnregisterNodesResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:UnregisterNodesResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="UnregisterNodes_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="QueryFirstMessage">
|
||||
<wsdl:part name="parameters" element="s0:QueryFirstRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="QueryFirstResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:QueryFirstResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="QueryFirst_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="QueryNextMessage">
|
||||
<wsdl:part name="parameters" element="s0:QueryNextRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="QueryNextResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:QueryNextResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="QueryNext_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="ReadMessage">
|
||||
<wsdl:part name="parameters" element="s0:ReadRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ReadResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:ReadResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="Read_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="HistoryReadMessage">
|
||||
<wsdl:part name="parameters" element="s0:HistoryReadRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="HistoryReadResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:HistoryReadResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="HistoryRead_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="WriteMessage">
|
||||
<wsdl:part name="parameters" element="s0:WriteRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="WriteResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:WriteResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="Write_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="HistoryUpdateMessage">
|
||||
<wsdl:part name="parameters" element="s0:HistoryUpdateRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="HistoryUpdateResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:HistoryUpdateResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="HistoryUpdate_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="CallMessage">
|
||||
<wsdl:part name="parameters" element="s0:CallRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CallResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:CallResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="Call_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="CreateMonitoredItemsMessage">
|
||||
<wsdl:part name="parameters" element="s0:CreateMonitoredItemsRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CreateMonitoredItemsResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:CreateMonitoredItemsResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CreateMonitoredItems_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="ModifyMonitoredItemsMessage">
|
||||
<wsdl:part name="parameters" element="s0:ModifyMonitoredItemsRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ModifyMonitoredItemsResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:ModifyMonitoredItemsResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ModifyMonitoredItems_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="SetMonitoringModeMessage">
|
||||
<wsdl:part name="parameters" element="s0:SetMonitoringModeRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="SetMonitoringModeResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:SetMonitoringModeResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="SetMonitoringMode_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="SetTriggeringMessage">
|
||||
<wsdl:part name="parameters" element="s0:SetTriggeringRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="SetTriggeringResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:SetTriggeringResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="SetTriggering_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="DeleteMonitoredItemsMessage">
|
||||
<wsdl:part name="parameters" element="s0:DeleteMonitoredItemsRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="DeleteMonitoredItemsResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:DeleteMonitoredItemsResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="DeleteMonitoredItems_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="CreateSubscriptionMessage">
|
||||
<wsdl:part name="parameters" element="s0:CreateSubscriptionRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CreateSubscriptionResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:CreateSubscriptionResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CreateSubscription_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="ModifySubscriptionMessage">
|
||||
<wsdl:part name="parameters" element="s0:ModifySubscriptionRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ModifySubscriptionResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:ModifySubscriptionResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ModifySubscription_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="SetPublishingModeMessage">
|
||||
<wsdl:part name="parameters" element="s0:SetPublishingModeRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="SetPublishingModeResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:SetPublishingModeResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="SetPublishingMode_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="PublishMessage">
|
||||
<wsdl:part name="parameters" element="s0:PublishRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="PublishResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:PublishResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="Publish_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="RepublishMessage">
|
||||
<wsdl:part name="parameters" element="s0:RepublishRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RepublishResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:RepublishResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="Republish_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="TransferSubscriptionsMessage">
|
||||
<wsdl:part name="parameters" element="s0:TransferSubscriptionsRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="TransferSubscriptionsResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:TransferSubscriptionsResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="TransferSubscriptions_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="DeleteSubscriptionsMessage">
|
||||
<wsdl:part name="parameters" element="s0:DeleteSubscriptionsRequest"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="DeleteSubscriptionsResponseMessage">
|
||||
<wsdl:part name="parameters" element="s0:DeleteSubscriptionsResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="DeleteSubscriptions_FaultMessage">
|
||||
<wsdl:part name="detail" element="s0:ServiceFault" />
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:portType name="ISessionEndpoint">
|
||||
|
||||
<wsdl:operation name="InvokeService">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/InvokeService" name="InvokeServiceMessage" message="tns:InvokeServiceMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/InvokeServiceResponse" name="InvokeServiceResponseMessage" message="tns:InvokeServiceResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/InvokeServiceFault" name="InvokeServiceFaultMessage" message="tns:InvokeServiceFaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="CreateSession">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateSession" name="CreateSessionMessage" message="tns:CreateSessionMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateSessionResponse" name="CreateSessionResponseMessage" message="tns:CreateSessionResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateSessionFault" name="CreateSessionFaultMessage" message="tns:CreateSession_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="ActivateSession">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/ActivateSession" name="ActivateSessionMessage" message="tns:ActivateSessionMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/ActivateSessionResponse" name="ActivateSessionResponseMessage" message="tns:ActivateSessionResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/ActivateSessionFault" name="ActivateSessionFaultMessage" message="tns:ActivateSession_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="CloseSession">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CloseSession" name="CloseSessionMessage" message="tns:CloseSessionMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CloseSessionResponse" name="CloseSessionResponseMessage" message="tns:CloseSessionResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CloseSessionFault" name="CloseSessionFaultMessage" message="tns:CloseSession_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Cancel">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/Cancel" name="CancelMessage" message="tns:CancelMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CancelResponse" name="CancelResponseMessage" message="tns:CancelResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CancelFault" name="CancelFaultMessage" message="tns:Cancel_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="AddNodes">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/AddNodes" name="AddNodesMessage" message="tns:AddNodesMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/AddNodesResponse" name="AddNodesResponseMessage" message="tns:AddNodesResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/AddNodesFault" name="AddNodesFaultMessage" message="tns:AddNodes_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="AddReferences">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/AddReferences" name="AddReferencesMessage" message="tns:AddReferencesMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/AddReferencesResponse" name="AddReferencesResponseMessage" message="tns:AddReferencesResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/AddReferencesFault" name="AddReferencesFaultMessage" message="tns:AddReferences_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="DeleteNodes">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteNodes" name="DeleteNodesMessage" message="tns:DeleteNodesMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteNodesResponse" name="DeleteNodesResponseMessage" message="tns:DeleteNodesResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteNodesFault" name="DeleteNodesFaultMessage" message="tns:DeleteNodes_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="DeleteReferences">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteReferences" name="DeleteReferencesMessage" message="tns:DeleteReferencesMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteReferencesResponse" name="DeleteReferencesResponseMessage" message="tns:DeleteReferencesResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteReferencesFault" name="DeleteReferencesFaultMessage" message="tns:DeleteReferences_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Browse">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/Browse" name="BrowseMessage" message="tns:BrowseMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/BrowseResponse" name="BrowseResponseMessage" message="tns:BrowseResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/BrowseFault" name="BrowseFaultMessage" message="tns:Browse_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="BrowseNext">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/BrowseNext" name="BrowseNextMessage" message="tns:BrowseNextMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/BrowseNextResponse" name="BrowseNextResponseMessage" message="tns:BrowseNextResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/BrowseNextFault" name="BrowseNextFaultMessage" message="tns:BrowseNext_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="TranslateBrowsePathsToNodeIds">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/TranslateBrowsePathsToNodeIds" name="TranslateBrowsePathsToNodeIdsMessage" message="tns:TranslateBrowsePathsToNodeIdsMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/TranslateBrowsePathsToNodeIdsResponse" name="TranslateBrowsePathsToNodeIdsResponseMessage" message="tns:TranslateBrowsePathsToNodeIdsResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/TranslateBrowsePathsToNodeIdsFault" name="TranslateBrowsePathsToNodeIdsFaultMessage" message="tns:TranslateBrowsePathsToNodeIds_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="RegisterNodes">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterNodes" name="RegisterNodesMessage" message="tns:RegisterNodesMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterNodesResponse" name="RegisterNodesResponseMessage" message="tns:RegisterNodesResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterNodesFault" name="RegisterNodesFaultMessage" message="tns:RegisterNodes_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="UnregisterNodes">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/UnregisterNodes" name="UnregisterNodesMessage" message="tns:UnregisterNodesMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/UnregisterNodesResponse" name="UnregisterNodesResponseMessage" message="tns:UnregisterNodesResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/UnregisterNodesFault" name="UnregisterNodesFaultMessage" message="tns:UnregisterNodes_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="QueryFirst">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/QueryFirst" name="QueryFirstMessage" message="tns:QueryFirstMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/QueryFirstResponse" name="QueryFirstResponseMessage" message="tns:QueryFirstResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/QueryFirstFault" name="QueryFirstFaultMessage" message="tns:QueryFirst_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="QueryNext">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/QueryNext" name="QueryNextMessage" message="tns:QueryNextMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/QueryNextResponse" name="QueryNextResponseMessage" message="tns:QueryNextResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/QueryNextFault" name="QueryNextFaultMessage" message="tns:QueryNext_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Read">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/Read" name="ReadMessage" message="tns:ReadMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/ReadResponse" name="ReadResponseMessage" message="tns:ReadResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/ReadFault" name="ReadFaultMessage" message="tns:Read_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="HistoryRead">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/HistoryRead" name="HistoryReadMessage" message="tns:HistoryReadMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/HistoryReadResponse" name="HistoryReadResponseMessage" message="tns:HistoryReadResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/HistoryReadFault" name="HistoryReadFaultMessage" message="tns:HistoryRead_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Write">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/Write" name="WriteMessage" message="tns:WriteMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/WriteResponse" name="WriteResponseMessage" message="tns:WriteResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/WriteFault" name="WriteFaultMessage" message="tns:Write_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="HistoryUpdate">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/HistoryUpdate" name="HistoryUpdateMessage" message="tns:HistoryUpdateMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/HistoryUpdateResponse" name="HistoryUpdateResponseMessage" message="tns:HistoryUpdateResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/HistoryUpdateFault" name="HistoryUpdateFaultMessage" message="tns:HistoryUpdate_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Call">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/Call" name="CallMessage" message="tns:CallMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CallResponse" name="CallResponseMessage" message="tns:CallResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CallFault" name="CallFaultMessage" message="tns:Call_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="CreateMonitoredItems">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateMonitoredItems" name="CreateMonitoredItemsMessage" message="tns:CreateMonitoredItemsMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateMonitoredItemsResponse" name="CreateMonitoredItemsResponseMessage" message="tns:CreateMonitoredItemsResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateMonitoredItemsFault" name="CreateMonitoredItemsFaultMessage" message="tns:CreateMonitoredItems_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="ModifyMonitoredItems">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/ModifyMonitoredItems" name="ModifyMonitoredItemsMessage" message="tns:ModifyMonitoredItemsMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/ModifyMonitoredItemsResponse" name="ModifyMonitoredItemsResponseMessage" message="tns:ModifyMonitoredItemsResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/ModifyMonitoredItemsFault" name="ModifyMonitoredItemsFaultMessage" message="tns:ModifyMonitoredItems_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="SetMonitoringMode">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetMonitoringMode" name="SetMonitoringModeMessage" message="tns:SetMonitoringModeMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetMonitoringModeResponse" name="SetMonitoringModeResponseMessage" message="tns:SetMonitoringModeResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetMonitoringModeFault" name="SetMonitoringModeFaultMessage" message="tns:SetMonitoringMode_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="SetTriggering">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetTriggering" name="SetTriggeringMessage" message="tns:SetTriggeringMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetTriggeringResponse" name="SetTriggeringResponseMessage" message="tns:SetTriggeringResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetTriggeringFault" name="SetTriggeringFaultMessage" message="tns:SetTriggering_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="DeleteMonitoredItems">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteMonitoredItems" name="DeleteMonitoredItemsMessage" message="tns:DeleteMonitoredItemsMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteMonitoredItemsResponse" name="DeleteMonitoredItemsResponseMessage" message="tns:DeleteMonitoredItemsResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteMonitoredItemsFault" name="DeleteMonitoredItemsFaultMessage" message="tns:DeleteMonitoredItems_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="CreateSubscription">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateSubscription" name="CreateSubscriptionMessage" message="tns:CreateSubscriptionMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateSubscriptionResponse" name="CreateSubscriptionResponseMessage" message="tns:CreateSubscriptionResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/CreateSubscriptionFault" name="CreateSubscriptionFaultMessage" message="tns:CreateSubscription_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="ModifySubscription">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/ModifySubscription" name="ModifySubscriptionMessage" message="tns:ModifySubscriptionMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/ModifySubscriptionResponse" name="ModifySubscriptionResponseMessage" message="tns:ModifySubscriptionResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/ModifySubscriptionFault" name="ModifySubscriptionFaultMessage" message="tns:ModifySubscription_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="SetPublishingMode">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetPublishingMode" name="SetPublishingModeMessage" message="tns:SetPublishingModeMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetPublishingModeResponse" name="SetPublishingModeResponseMessage" message="tns:SetPublishingModeResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/SetPublishingModeFault" name="SetPublishingModeFaultMessage" message="tns:SetPublishingMode_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Publish">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/Publish" name="PublishMessage" message="tns:PublishMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/PublishResponse" name="PublishResponseMessage" message="tns:PublishResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/PublishFault" name="PublishFaultMessage" message="tns:Publish_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="Republish">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/Republish" name="RepublishMessage" message="tns:RepublishMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/RepublishResponse" name="RepublishResponseMessage" message="tns:RepublishResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/RepublishFault" name="RepublishFaultMessage" message="tns:Republish_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="TransferSubscriptions">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/TransferSubscriptions" name="TransferSubscriptionsMessage" message="tns:TransferSubscriptionsMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/TransferSubscriptionsResponse" name="TransferSubscriptionsResponseMessage" message="tns:TransferSubscriptionsResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/TransferSubscriptionsFault" name="TransferSubscriptionsFaultMessage" message="tns:TransferSubscriptions_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="DeleteSubscriptions">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteSubscriptions" name="DeleteSubscriptionsMessage" message="tns:DeleteSubscriptionsMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteSubscriptionsResponse" name="DeleteSubscriptionsResponseMessage" message="tns:DeleteSubscriptionsResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/DeleteSubscriptionsFault" name="DeleteSubscriptionsFaultMessage" message="tns:DeleteSubscriptions_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
</wsdl:portType>
|
||||
|
||||
<wsdl:portType name="IDiscoveryEndpoint">
|
||||
|
||||
<wsdl:operation name="InvokeService">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/InvokeService" name="InvokeServiceMessage" message="tns:InvokeServiceMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/InvokeServiceResponse" name="InvokeServiceResponseMessage" message="tns:InvokeServiceResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/InvokeServiceFault" name="InvokeServiceFaultMessage" message="tns:InvokeServiceFaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="FindServers">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/FindServers" name="FindServersMessage" message="tns:FindServersMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/FindServersResponse" name="FindServersResponseMessage" message="tns:FindServersResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/FindServersFault" name="FindServersFaultMessage" message="tns:FindServers_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="FindServersOnNetwork">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/FindServersOnNetwork" name="FindServersOnNetworkMessage" message="tns:FindServersOnNetworkMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/FindServersOnNetworkResponse" name="FindServersOnNetworkResponseMessage" message="tns:FindServersOnNetworkResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/FindServersOnNetworkFault" name="FindServersOnNetworkFaultMessage" message="tns:FindServersOnNetwork_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="GetEndpoints">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/GetEndpoints" name="GetEndpointsMessage" message="tns:GetEndpointsMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/GetEndpointsResponse" name="GetEndpointsResponseMessage" message="tns:GetEndpointsResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/GetEndpointsFault" name="GetEndpointsFaultMessage" message="tns:GetEndpoints_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
</wsdl:portType>
|
||||
|
||||
<wsdl:portType name="IRegistrationEndpoint">
|
||||
|
||||
<wsdl:operation name="InvokeService">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/InvokeService" name="InvokeServiceMessage" message="tns:InvokeServiceMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/InvokeServiceResponse" name="InvokeServiceResponseMessage" message="tns:InvokeServiceResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/InvokeServiceFault" name="InvokeServiceFaultMessage" message="tns:InvokeServiceFaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="RegisterServer">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterServer" name="RegisterServerMessage" message="tns:RegisterServerMessage"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterServerResponse" name="RegisterServerResponseMessage" message="tns:RegisterServerResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterServerFault" name="RegisterServerFaultMessage" message="tns:RegisterServer_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
<wsdl:operation name="RegisterServer2">
|
||||
<wsdl:input wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterServer2" name="RegisterServer2Message" message="tns:RegisterServer2Message"/>
|
||||
<wsdl:output wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterServer2Response" name="RegisterServer2ResponseMessage" message="tns:RegisterServer2ResponseMessage"/>
|
||||
<wsdl:fault wsaw:Action="http://opcfoundation.org/UA/2008/02/Services.wsdl/RegisterServer2Fault" name="RegisterServer2FaultMessage" message="tns:RegisterServer2_FaultMessage" />
|
||||
</wsdl:operation>
|
||||
|
||||
</wsdl:portType>
|
||||
|
||||
</wsdl:definitions>
|
||||
@@ -0,0 +1,230 @@
|
||||
BadUnexpectedError,0x80010000,An unexpected error occurred.
|
||||
BadInternalError,0x80020000,An internal error occurred as a result of a programming or configuration error.
|
||||
BadOutOfMemory,0x80030000,Not enough memory to complete the operation.
|
||||
BadResourceUnavailable,0x80040000,An operating system resource is not available.
|
||||
BadCommunicationError,0x80050000,A low level communication error occurred.
|
||||
BadEncodingError,0x80060000,Encoding halted because of invalid data in the objects being serialized.
|
||||
BadDecodingError,0x80070000,Decoding halted because of invalid data in the stream.
|
||||
BadEncodingLimitsExceeded,0x80080000,The message encoding/decoding limits imposed by the stack have been exceeded.
|
||||
BadRequestTooLarge,0x80B80000,The request message size exceeds limits set by the server.
|
||||
BadResponseTooLarge,0x80B90000,The response message size exceeds limits set by the client.
|
||||
BadUnknownResponse,0x80090000,An unrecognized response was received from the server.
|
||||
BadTimeout,0x800A0000,The operation timed out.
|
||||
BadServiceUnsupported,0x800B0000,The server does not support the requested service.
|
||||
BadShutdown,0x800C0000,The operation was cancelled because the application is shutting down.
|
||||
BadServerNotConnected,0x800D0000,The operation could not complete because the client is not connected to the server.
|
||||
BadServerHalted,0x800E0000,The server has stopped and cannot process any requests.
|
||||
BadNothingToDo,0x800F0000,There was nothing to do because the client passed a list of operations with no elements.
|
||||
BadTooManyOperations,0x80100000,The request could not be processed because it specified too many operations.
|
||||
BadTooManyMonitoredItems,0x80DB0000,The request could not be processed because there are too many monitored items in the subscription.
|
||||
BadDataTypeIdUnknown,0x80110000,The extension object cannot be (de)serialized because the data type id is not recognized.
|
||||
BadCertificateInvalid,0x80120000,The certificate provided as a parameter is not valid.
|
||||
BadSecurityChecksFailed,0x80130000,An error occurred verifying security.
|
||||
BadCertificateTimeInvalid,0x80140000,The certificate has expired or is not yet valid.
|
||||
BadCertificateIssuerTimeInvalid,0x80150000,An issuer certificate has expired or is not yet valid.
|
||||
BadCertificateHostNameInvalid,0x80160000,The HostName used to connect to a server does not match a HostName in the certificate.
|
||||
BadCertificateUriInvalid,0x80170000,The URI specified in the ApplicationDescription does not match the URI in the certificate.
|
||||
BadCertificateUseNotAllowed,0x80180000,The certificate may not be used for the requested operation.
|
||||
BadCertificateIssuerUseNotAllowed,0x80190000,The issuer certificate may not be used for the requested operation.
|
||||
BadCertificateUntrusted,0x801A0000,The certificate is not trusted.
|
||||
BadCertificateRevocationUnknown,0x801B0000,It was not possible to determine if the certificate has been revoked.
|
||||
BadCertificateIssuerRevocationUnknown,0x801C0000,It was not possible to determine if the issuer certificate has been revoked.
|
||||
BadCertificateRevoked,0x801D0000,The certificate has been revoked.
|
||||
BadCertificateIssuerRevoked,0x801E0000,The issuer certificate has been revoked.
|
||||
BadCertificateChainIncomplete,0x810D0000,The certificate chain is incomplete.
|
||||
BadUserAccessDenied,0x801F0000,User does not have permission to perform the requested operation.
|
||||
BadIdentityTokenInvalid,0x80200000,The user identity token is not valid.
|
||||
BadIdentityTokenRejected,0x80210000,The user identity token is valid but the server has rejected it.
|
||||
BadSecureChannelIdInvalid,0x80220000,The specified secure channel is no longer valid.
|
||||
BadInvalidTimestamp,0x80230000,The timestamp is outside the range allowed by the server.
|
||||
BadNonceInvalid,0x80240000,The nonce does appear to be not a random value or it is not the correct length.
|
||||
BadSessionIdInvalid,0x80250000,The session id is not valid.
|
||||
BadSessionClosed,0x80260000,The session was closed by the client.
|
||||
BadSessionNotActivated,0x80270000,The session cannot be used because ActivateSession has not been called.
|
||||
BadSubscriptionIdInvalid,0x80280000,The subscription id is not valid.
|
||||
BadRequestHeaderInvalid,0x802A0000,The header for the request is missing or invalid.
|
||||
BadTimestampsToReturnInvalid,0x802B0000,The timestamps to return parameter is invalid.
|
||||
BadRequestCancelledByClient,0x802C0000,The request was cancelled by the client.
|
||||
BadTooManyArguments,0x80E50000,Too many arguments were provided.
|
||||
BadLicenseExpired,0x810E0000,The server requires a license to operate in general or to perform a service or operation, but existing license is expired.
|
||||
BadLicenseLimitsExceeded,0x810F0000,The server has limits on number of allowed operations / objects, based on installed licenses, and these limits where exceeded.
|
||||
BadLicenseNotAvailable,0x81100000,The server does not have a license which is required to operate in general or to perform a service or operation.
|
||||
GoodSubscriptionTransferred,0x002D0000,The subscription was transferred to another session.
|
||||
GoodCompletesAsynchronously,0x002E0000,The processing will complete asynchronously.
|
||||
GoodOverload,0x002F0000,Sampling has slowed down due to resource limitations.
|
||||
GoodClamped,0x00300000,The value written was accepted but was clamped.
|
||||
BadNoCommunication,0x80310000,Communication with the data source is defined, but not established, and there is no last known value available.
|
||||
BadWaitingForInitialData,0x80320000,Waiting for the server to obtain values from the underlying data source.
|
||||
BadNodeIdInvalid,0x80330000,The syntax of the node id is not valid.
|
||||
BadNodeIdUnknown,0x80340000,The node id refers to a node that does not exist in the server address space.
|
||||
BadAttributeIdInvalid,0x80350000,The attribute is not supported for the specified Node.
|
||||
BadIndexRangeInvalid,0x80360000,The syntax of the index range parameter is invalid.
|
||||
BadIndexRangeNoData,0x80370000,No data exists within the range of indexes specified.
|
||||
BadDataEncodingInvalid,0x80380000,The data encoding is invalid.
|
||||
BadDataEncodingUnsupported,0x80390000,The server does not support the requested data encoding for the node.
|
||||
BadNotReadable,0x803A0000,The access level does not allow reading or subscribing to the Node.
|
||||
BadNotWritable,0x803B0000,The access level does not allow writing to the Node.
|
||||
BadOutOfRange,0x803C0000,The value was out of range.
|
||||
BadNotSupported,0x803D0000,The requested operation is not supported.
|
||||
BadNotFound,0x803E0000,A requested item was not found or a search operation ended without success.
|
||||
BadObjectDeleted,0x803F0000,The object cannot be used because it has been deleted.
|
||||
BadNotImplemented,0x80400000,Requested operation is not implemented.
|
||||
BadMonitoringModeInvalid,0x80410000,The monitoring mode is invalid.
|
||||
BadMonitoredItemIdInvalid,0x80420000,The monitoring item id does not refer to a valid monitored item.
|
||||
BadMonitoredItemFilterInvalid,0x80430000,The monitored item filter parameter is not valid.
|
||||
BadMonitoredItemFilterUnsupported,0x80440000,The server does not support the requested monitored item filter.
|
||||
BadFilterNotAllowed,0x80450000,A monitoring filter cannot be used in combination with the attribute specified.
|
||||
BadStructureMissing,0x80460000,A mandatory structured parameter was missing or null.
|
||||
BadEventFilterInvalid,0x80470000,The event filter is not valid.
|
||||
BadContentFilterInvalid,0x80480000,The content filter is not valid.
|
||||
BadFilterOperatorInvalid,0x80C10000,An unregognized operator was provided in a filter.
|
||||
BadFilterOperatorUnsupported,0x80C20000,A valid operator was provided, but the server does not provide support for this filter operator.
|
||||
BadFilterOperandCountMismatch,0x80C30000,The number of operands provided for the filter operator was less then expected for the operand provided.
|
||||
BadFilterOperandInvalid,0x80490000,The operand used in a content filter is not valid.
|
||||
BadFilterElementInvalid,0x80C40000,The referenced element is not a valid element in the content filter.
|
||||
BadFilterLiteralInvalid,0x80C50000,The referenced literal is not a valid value.
|
||||
BadContinuationPointInvalid,0x804A0000,The continuation point provide is longer valid.
|
||||
BadNoContinuationPoints,0x804B0000,The operation could not be processed because all continuation points have been allocated.
|
||||
BadReferenceTypeIdInvalid,0x804C0000,The operation could not be processed because all continuation points have been allocated.
|
||||
BadBrowseDirectionInvalid,0x804D0000,The browse direction is not valid.
|
||||
BadNodeNotInView,0x804E0000,The node is not part of the view.
|
||||
BadServerUriInvalid,0x804F0000,The ServerUri is not a valid URI.
|
||||
BadServerNameMissing,0x80500000,No ServerName was specified.
|
||||
BadDiscoveryUrlMissing,0x80510000,No DiscoveryUrl was specified.
|
||||
BadSempahoreFileMissing,0x80520000,The semaphore file specified by the client is not valid.
|
||||
BadRequestTypeInvalid,0x80530000,The security token request type is not valid.
|
||||
BadSecurityModeRejected,0x80540000,The security mode does not meet the requirements set by the server.
|
||||
BadSecurityPolicyRejected,0x80550000,The security policy does not meet the requirements set by the server.
|
||||
BadTooManySessions,0x80560000,The server has reached its maximum number of sessions.
|
||||
BadUserSignatureInvalid,0x80570000,The user token signature is missing or invalid.
|
||||
BadApplicationSignatureInvalid,0x80580000,The signature generated with the client certificate is missing or invalid.
|
||||
BadNoValidCertificates,0x80590000,The client did not provide at least one software certificate that is valid and meets the profile requirements for the server.
|
||||
BadIdentityChangeNotSupported,0x80C60000,The server does not support changing the user identity assigned to the session.
|
||||
BadRequestCancelledByRequest,0x805A0000,The request was cancelled by the client with the Cancel service.
|
||||
BadParentNodeIdInvalid,0x805B0000,The parent node id does not to refer to a valid node.
|
||||
BadReferenceNotAllowed,0x805C0000,The reference could not be created because it violates constraints imposed by the data model.
|
||||
BadNodeIdRejected,0x805D0000,The requested node id was reject because it was either invalid or server does not allow node ids to be specified by the client.
|
||||
BadNodeIdExists,0x805E0000,The requested node id is already used by another node.
|
||||
BadNodeClassInvalid,0x805F0000,The node class is not valid.
|
||||
BadBrowseNameInvalid,0x80600000,The browse name is invalid.
|
||||
BadBrowseNameDuplicated,0x80610000,The browse name is not unique among nodes that share the same relationship with the parent.
|
||||
BadNodeAttributesInvalid,0x80620000,The node attributes are not valid for the node class.
|
||||
BadTypeDefinitionInvalid,0x80630000,The type definition node id does not reference an appropriate type node.
|
||||
BadSourceNodeIdInvalid,0x80640000,The source node id does not reference a valid node.
|
||||
BadTargetNodeIdInvalid,0x80650000,The target node id does not reference a valid node.
|
||||
BadDuplicateReferenceNotAllowed,0x80660000,The reference type between the nodes is already defined.
|
||||
BadInvalidSelfReference,0x80670000,The server does not allow this type of self reference on this node.
|
||||
BadReferenceLocalOnly,0x80680000,The reference type is not valid for a reference to a remote server.
|
||||
BadNoDeleteRights,0x80690000,The server will not allow the node to be deleted.
|
||||
UncertainReferenceNotDeleted,0x40BC0000,The server was not able to delete all target references.
|
||||
BadServerIndexInvalid,0x806A0000,The server index is not valid.
|
||||
BadViewIdUnknown,0x806B0000,The view id does not refer to a valid view node.
|
||||
BadViewTimestampInvalid,0x80C90000,The view timestamp is not available or not supported.
|
||||
BadViewParameterMismatch,0x80CA0000,The view parameters are not consistent with each other.
|
||||
BadViewVersionInvalid,0x80CB0000,The view version is not available or not supported.
|
||||
UncertainNotAllNodesAvailable,0x40C00000,The list of references may not be complete because the underlying system is not available.
|
||||
GoodResultsMayBeIncomplete,0x00BA0000,The server should have followed a reference to a node in a remote server but did not. The result set may be incomplete.
|
||||
BadNotTypeDefinition,0x80C80000,The provided Nodeid was not a type definition nodeid.
|
||||
UncertainReferenceOutOfServer,0x406C0000,One of the references to follow in the relative path references to a node in the address space in another server.
|
||||
BadTooManyMatches,0x806D0000,The requested operation has too many matches to return.
|
||||
BadQueryTooComplex,0x806E0000,The requested operation requires too many resources in the server.
|
||||
BadNoMatch,0x806F0000,The requested operation has no match to return.
|
||||
BadMaxAgeInvalid,0x80700000,The max age parameter is invalid.
|
||||
BadSecurityModeInsufficient,0x80E60000,The operation is not permitted over the current secure channel.
|
||||
BadHistoryOperationInvalid,0x80710000,The history details parameter is not valid.
|
||||
BadHistoryOperationUnsupported,0x80720000,The server does not support the requested operation.
|
||||
BadInvalidTimestampArgument,0x80BD0000,The defined timestamp to return was invalid.
|
||||
BadWriteNotSupported,0x80730000,The server does not support writing the combination of value, status and timestamps provided.
|
||||
BadTypeMismatch,0x80740000,The value supplied for the attribute is not of the same type as the attribute's value.
|
||||
BadMethodInvalid,0x80750000,The method id does not refer to a method for the specified object.
|
||||
BadArgumentsMissing,0x80760000,The client did not specify all of the input arguments for the method.
|
||||
BadTooManySubscriptions,0x80770000,The server has reached its maximum number of subscriptions.
|
||||
BadTooManyPublishRequests,0x80780000,The server has reached the maximum number of queued publish requests.
|
||||
BadNoSubscription,0x80790000,There is no subscription available for this session.
|
||||
BadSequenceNumberUnknown,0x807A0000,The sequence number is unknown to the server.
|
||||
BadMessageNotAvailable,0x807B0000,The requested notification message is no longer available.
|
||||
BadInsufficientClientProfile,0x807C0000,The client of the current session does not support one or more Profiles that are necessary for the subscription.
|
||||
BadStateNotActive,0x80BF0000,The sub-state machine is not currently active.
|
||||
BadTcpServerTooBusy,0x807D0000,The server cannot process the request because it is too busy.
|
||||
BadTcpMessageTypeInvalid,0x807E0000,The type of the message specified in the header invalid.
|
||||
BadTcpSecureChannelUnknown,0x807F0000,The SecureChannelId and/or TokenId are not currently in use.
|
||||
BadTcpMessageTooLarge,0x80800000,The size of the message specified in the header is too large.
|
||||
BadTcpNotEnoughResources,0x80810000,There are not enough resources to process the request.
|
||||
BadTcpInternalError,0x80820000,An internal error occurred.
|
||||
BadTcpEndpointUrlInvalid,0x80830000,The server does not recognize the QueryString specified.
|
||||
BadRequestInterrupted,0x80840000,The request could not be sent because of a network interruption.
|
||||
BadRequestTimeout,0x80850000,Timeout occurred while processing the request.
|
||||
BadSecureChannelClosed,0x80860000,The secure channel has been closed.
|
||||
BadSecureChannelTokenUnknown,0x80870000,The token has expired or is not recognized.
|
||||
BadSequenceNumberInvalid,0x80880000,The sequence number is not valid.
|
||||
BadProtocolVersionUnsupported,0x80BE0000,The applications do not have compatible protocol versions.
|
||||
BadConfigurationError,0x80890000,There is a problem with the configuration that affects the usefulness of the value.
|
||||
BadNotConnected,0x808A0000,The variable should receive its value from another variable, but has never been configured to do so.
|
||||
BadDeviceFailure,0x808B0000,There has been a failure in the device/data source that generates the value that has affected the value.
|
||||
BadSensorFailure,0x808C0000,There has been a failure in the sensor from which the value is derived by the device/data source.
|
||||
BadOutOfService,0x808D0000,The source of the data is not operational.
|
||||
BadDeadbandFilterInvalid,0x808E0000,The deadband filter is not valid.
|
||||
UncertainNoCommunicationLastUsableValue,0x408F0000,Communication to the data source has failed. The variable value is the last value that had a good quality.
|
||||
UncertainLastUsableValue,0x40900000,Whatever was updating this value has stopped doing so.
|
||||
UncertainSubstituteValue,0x40910000,The value is an operational value that was manually overwritten.
|
||||
UncertainInitialValue,0x40920000,The value is an initial value for a variable that normally receives its value from another variable.
|
||||
UncertainSensorNotAccurate,0x40930000,The value is at one of the sensor limits.
|
||||
UncertainEngineeringUnitsExceeded,0x40940000,The value is outside of the range of values defined for this parameter.
|
||||
UncertainSubNormal,0x40950000,The value is derived from multiple sources and has less than the required number of Good sources.
|
||||
GoodLocalOverride,0x00960000,The value has been overridden.
|
||||
BadRefreshInProgress,0x80970000,This Condition refresh failed, a Condition refresh operation is already in progress.
|
||||
BadConditionAlreadyDisabled,0x80980000,This condition has already been disabled.
|
||||
BadConditionAlreadyEnabled,0x80CC0000,This condition has already been enabled.
|
||||
BadConditionDisabled,0x80990000,Property not available, this condition is disabled.
|
||||
BadEventIdUnknown,0x809A0000,The specified event id is not recognized.
|
||||
BadEventNotAcknowledgeable,0x80BB0000,The event cannot be acknowledged.
|
||||
BadDialogNotActive,0x80CD0000,The dialog condition is not active.
|
||||
BadDialogResponseInvalid,0x80CE0000,The response is not valid for the dialog.
|
||||
BadConditionBranchAlreadyAcked,0x80CF0000,The condition branch has already been acknowledged.
|
||||
BadConditionBranchAlreadyConfirmed,0x80D00000,The condition branch has already been confirmed.
|
||||
BadConditionAlreadyShelved,0x80D10000,The condition has already been shelved.
|
||||
BadConditionNotShelved,0x80D20000,The condition is not currently shelved.
|
||||
BadShelvingTimeOutOfRange,0x80D30000,The shelving time not within an acceptable range.
|
||||
BadNoData,0x809B0000,No data exists for the requested time range or event filter.
|
||||
BadBoundNotFound,0x80D70000,No data found to provide upper or lower bound value.
|
||||
BadBoundNotSupported,0x80D80000,The server cannot retrieve a bound for the variable.
|
||||
BadDataLost,0x809D0000,Data is missing due to collection started/stopped/lost.
|
||||
BadDataUnavailable,0x809E0000,Expected data is unavailable for the requested time range due to an un-mounted volume, an off-line archive or tape, or similar reason for temporary unavailability.
|
||||
BadEntryExists,0x809F0000,The data or event was not successfully inserted because a matching entry exists.
|
||||
BadNoEntryExists,0x80A00000,The data or event was not successfully updated because no matching entry exists.
|
||||
BadTimestampNotSupported,0x80A10000,The client requested history using a timestamp format the server does not support (i.e requested ServerTimestamp when server only supports SourceTimestamp).
|
||||
GoodEntryInserted,0x00A20000,The data or event was successfully inserted into the historical database.
|
||||
GoodEntryReplaced,0x00A30000,The data or event field was successfully replaced in the historical database.
|
||||
UncertainDataSubNormal,0x40A40000,The value is derived from multiple values and has less than the required number of Good values.
|
||||
GoodNoData,0x00A50000,No data exists for the requested time range or event filter.
|
||||
GoodMoreData,0x00A60000,The data or event field was successfully replaced in the historical database.
|
||||
BadAggregateListMismatch,0x80D40000,The requested number of Aggregates does not match the requested number of NodeIds.
|
||||
BadAggregateNotSupported,0x80D50000,The requested Aggregate is not support by the server.
|
||||
BadAggregateInvalidInputs,0x80D60000,The aggregate value could not be derived due to invalid data inputs.
|
||||
BadAggregateConfigurationRejected,0x80DA0000,The aggregate configuration is not valid for specified node.
|
||||
GoodDataIgnored,0x00D90000,The request pecifies fields which are not valid for the EventType or cannot be saved by the historian.
|
||||
BadRequestNotAllowed,0x80E40000,The request was rejected by the server because it did not meet the criteria set by the server.
|
||||
GoodEdited,0x00DC0000,The value does not come from the real source and has been edited by the server.
|
||||
GoodPostActionFailed,0x00DD0000,There was an error in execution of these post-actions.
|
||||
UncertainDominantValueChanged,0x40DE0000,The related EngineeringUnit has been changed but the Variable Value is still provided based on the previous unit.
|
||||
GoodDependentValueChanged,0x00E00000,A dependent value has been changed but the change has not been applied to the device.
|
||||
BadDominantValueChanged,0x80E10000,The related EngineeringUnit has been changed but this change has not been applied to the device. The Variable Value is still dependent on the previous unit but its status is currently Bad.
|
||||
UncertainDependentValueChanged,0x40E20000,A dependent value has been changed but the change has not been applied to the device. The quality of the dominant variable is uncertain.
|
||||
BadDependentValueChanged,0x80E30000,A dependent value has been changed but the change has not been applied to the device. The quality of the dominant variable is Bad.
|
||||
GoodCommunicationEvent,0x00A70000,The communication layer has raised an event.
|
||||
GoodShutdownEvent,0x00A80000,The system is shutting down.
|
||||
GoodCallAgain,0x00A90000,The operation is not finished and needs to be called again.
|
||||
GoodNonCriticalTimeout,0x00AA0000,A non-critical timeout occurred.
|
||||
BadInvalidArgument,0x80AB0000,One or more arguments are invalid.
|
||||
BadConnectionRejected,0x80AC0000,Could not establish a network connection to remote server.
|
||||
BadDisconnect,0x80AD0000,The server has disconnected from the client.
|
||||
BadConnectionClosed,0x80AE0000,The network connection has been closed.
|
||||
BadInvalidState,0x80AF0000,The operation cannot be completed because the object is closed, uninitialized or in some other invalid state.
|
||||
BadEndOfStream,0x80B00000,Cannot move beyond end of the stream.
|
||||
BadNoDataAvailable,0x80B10000,No data is currently available for reading from a non-blocking stream.
|
||||
BadWaitingForResponse,0x80B20000,The asynchronous operation is waiting for a response.
|
||||
BadOperationAbandoned,0x80B30000,The asynchronous operation was abandoned by the caller.
|
||||
BadExpectedStreamToBlock,0x80B40000,The stream did not return all data requested (possibly because it is a non-blocking stream).
|
||||
BadWouldBlock,0x80B50000,Non blocking behaviour is required and the operation would block.
|
||||
BadSyntaxError,0x80B60000,A value had an invalid syntax.
|
||||
BadMaxConnectionsReached,0x80B70000,The operation could not be finished because all available connections are in use.
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,647 @@
|
||||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.5456
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Opc.Ua.Security
|
||||
{
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Name="SecuredApplication", Namespace="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd")]
|
||||
public partial class SecuredApplication : object, System.Runtime.Serialization.IExtensibleDataObject
|
||||
{
|
||||
|
||||
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
||||
|
||||
private string ApplicationNameField;
|
||||
|
||||
private string ApplicationUriField;
|
||||
|
||||
private Opc.Ua.Security.ApplicationType ApplicationTypeField;
|
||||
|
||||
private string ProductNameField;
|
||||
|
||||
private string ConfigurationModeField;
|
||||
|
||||
private System.DateTime LastExportTimeField;
|
||||
|
||||
private string ConfigurationFileField;
|
||||
|
||||
private string ExecutableFileField;
|
||||
|
||||
private Opc.Ua.Security.CertificateIdentifier ApplicationCertificateField;
|
||||
|
||||
private Opc.Ua.Security.CertificateStoreIdentifier TrustedCertificateStoreField;
|
||||
|
||||
private Opc.Ua.Security.CertificateList TrustedCertificatesField;
|
||||
|
||||
private Opc.Ua.Security.CertificateStoreIdentifier IssuerCertificateStoreField;
|
||||
|
||||
private Opc.Ua.Security.CertificateList IssuerCertificatesField;
|
||||
|
||||
private Opc.Ua.Security.CertificateStoreIdentifier RejectedCertificatesStoreField;
|
||||
|
||||
private Opc.Ua.Security.ListOfBaseAddresses BaseAddressesField;
|
||||
|
||||
private Opc.Ua.Security.ListOfSecurityProfiles SecurityProfilesField;
|
||||
|
||||
private Opc.Ua.Security.ListOfExtensions ExtensionsField;
|
||||
|
||||
public System.Runtime.Serialization.ExtensionDataObject ExtensionData
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.extensionDataField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.extensionDataField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute()]
|
||||
public string ApplicationName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ApplicationNameField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ApplicationNameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute()]
|
||||
public string ApplicationUri
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ApplicationUriField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ApplicationUriField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=2)]
|
||||
public Opc.Ua.Security.ApplicationType ApplicationType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ApplicationTypeField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ApplicationTypeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
|
||||
public string ProductName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ProductNameField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ProductNameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
|
||||
public string ConfigurationMode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ConfigurationModeField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ConfigurationModeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=5)]
|
||||
public System.DateTime LastExportTime
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.LastExportTimeField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.LastExportTimeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=6)]
|
||||
public string ConfigurationFile
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ConfigurationFileField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ConfigurationFileField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=7)]
|
||||
public string ExecutableFile
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ExecutableFileField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ExecutableFileField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=8)]
|
||||
public Opc.Ua.Security.CertificateIdentifier ApplicationCertificate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ApplicationCertificateField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ApplicationCertificateField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=9)]
|
||||
public Opc.Ua.Security.CertificateStoreIdentifier TrustedCertificateStore
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.TrustedCertificateStoreField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.TrustedCertificateStoreField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=10)]
|
||||
public Opc.Ua.Security.CertificateList TrustedCertificates
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.TrustedCertificatesField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.TrustedCertificatesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=11)]
|
||||
public Opc.Ua.Security.CertificateStoreIdentifier IssuerCertificateStore
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.IssuerCertificateStoreField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.IssuerCertificateStoreField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=12)]
|
||||
public Opc.Ua.Security.CertificateList IssuerCertificates
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.IssuerCertificatesField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.IssuerCertificatesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=13)]
|
||||
public Opc.Ua.Security.CertificateStoreIdentifier RejectedCertificatesStore
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.RejectedCertificatesStoreField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.RejectedCertificatesStoreField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=14)]
|
||||
public Opc.Ua.Security.ListOfBaseAddresses BaseAddresses
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.BaseAddressesField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.BaseAddressesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=15)]
|
||||
public Opc.Ua.Security.ListOfSecurityProfiles SecurityProfiles
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.SecurityProfilesField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SecurityProfilesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=16)]
|
||||
public Opc.Ua.Security.ListOfExtensions Extensions
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ExtensionsField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ExtensionsField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Name="CertificateIdentifier", Namespace="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd")]
|
||||
public partial class CertificateIdentifier : object, System.Runtime.Serialization.IExtensibleDataObject
|
||||
{
|
||||
|
||||
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
||||
|
||||
private string StoreTypeField;
|
||||
|
||||
private string StorePathField;
|
||||
|
||||
private string SubjectNameField;
|
||||
|
||||
private string ThumbprintField;
|
||||
|
||||
private byte[] RawDataField;
|
||||
|
||||
private int ValidationOptionsField;
|
||||
|
||||
private byte[] OfflineRevocationListField;
|
||||
|
||||
private string OnlineRevocationListField;
|
||||
|
||||
public System.Runtime.Serialization.ExtensionDataObject ExtensionData
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.extensionDataField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.extensionDataField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)]
|
||||
public string StoreType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.StoreTypeField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.StoreTypeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string StorePath
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.StorePathField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.StorePathField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
|
||||
public string SubjectName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.SubjectNameField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SubjectNameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
|
||||
public string Thumbprint
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ThumbprintField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ThumbprintField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
|
||||
public byte[] RawData
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.RawDataField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.RawDataField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=5)]
|
||||
public int ValidationOptions
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ValidationOptionsField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ValidationOptionsField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=6)]
|
||||
public byte[] OfflineRevocationList
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.OfflineRevocationListField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OfflineRevocationListField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=7)]
|
||||
public string OnlineRevocationList
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.OnlineRevocationListField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OnlineRevocationListField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Name="CertificateStoreIdentifier", Namespace="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd")]
|
||||
public partial class CertificateStoreIdentifier : object, System.Runtime.Serialization.IExtensibleDataObject
|
||||
{
|
||||
|
||||
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
||||
|
||||
private string StoreTypeField;
|
||||
|
||||
private string StorePathField;
|
||||
|
||||
private int ValidationOptionsField;
|
||||
|
||||
public System.Runtime.Serialization.ExtensionDataObject ExtensionData
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.extensionDataField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.extensionDataField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(IsRequired = true, EmitDefaultValue = false)]
|
||||
public string StoreType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.StoreTypeField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.StoreTypeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(IsRequired = true, EmitDefaultValue = false, Order = 1)]
|
||||
public string StorePath
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.StorePathField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.StorePathField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=2)]
|
||||
public int ValidationOptions
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ValidationOptionsField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ValidationOptionsField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Name="CertificateList", Namespace="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd")]
|
||||
public partial class CertificateList : object, System.Runtime.Serialization.IExtensibleDataObject
|
||||
{
|
||||
|
||||
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
||||
|
||||
private Opc.Ua.Security.ListOfCertificateIdentifier CertificatesField;
|
||||
|
||||
private int ValidationOptionsField;
|
||||
|
||||
public System.Runtime.Serialization.ExtensionDataObject ExtensionData
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.extensionDataField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.extensionDataField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(IsRequired = true, EmitDefaultValue = false)]
|
||||
public Opc.Ua.Security.ListOfCertificateIdentifier Certificates
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.CertificatesField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.CertificatesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute()]
|
||||
public int ValidationOptions
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ValidationOptionsField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ValidationOptionsField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Name="ApplicationType", Namespace="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd")]
|
||||
public enum ApplicationType : int
|
||||
{
|
||||
|
||||
[System.Runtime.Serialization.EnumMemberAttribute()]
|
||||
Server_0 = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMemberAttribute()]
|
||||
Client_1 = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMemberAttribute()]
|
||||
ClientAndServer_2 = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMemberAttribute()]
|
||||
DiscoveryServer_3 = 3,
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
||||
[System.Runtime.Serialization.CollectionDataContractAttribute(Name="ListOfBaseAddresses", Namespace="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd", ItemName="BaseAddress")]
|
||||
public class ListOfBaseAddresses : System.Collections.Generic.List<string>
|
||||
{
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
||||
[System.Runtime.Serialization.CollectionDataContractAttribute(Name="ListOfSecurityProfiles", Namespace="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd", ItemName="SecurityProfile")]
|
||||
public class ListOfSecurityProfiles : System.Collections.Generic.List<Opc.Ua.Security.SecurityProfile>
|
||||
{
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
||||
[System.Runtime.Serialization.CollectionDataContractAttribute(Name="ListOfExtensions", Namespace="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd", ItemName="Extension")]
|
||||
public class ListOfExtensions : System.Collections.Generic.List<System.Xml.XmlElement>
|
||||
{
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
||||
[System.Runtime.Serialization.CollectionDataContractAttribute(Name="ListOfCertificateIdentifier", Namespace="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd", ItemName="CertificateIdentifier")]
|
||||
public class ListOfCertificateIdentifier : System.Collections.Generic.List<Opc.Ua.Security.CertificateIdentifier>
|
||||
{
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Name="SecurityProfile", Namespace="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd")]
|
||||
public partial class SecurityProfile : object, System.Runtime.Serialization.IExtensibleDataObject
|
||||
{
|
||||
|
||||
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
||||
|
||||
private string ProfileUriField;
|
||||
|
||||
private bool EnabledField;
|
||||
|
||||
public System.Runtime.Serialization.ExtensionDataObject ExtensionData
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.extensionDataField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.extensionDataField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)]
|
||||
public string ProfileUri
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ProfileUriField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ProfileUriField = value;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=1)]
|
||||
public bool Enabled
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.EnabledField;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.EnabledField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="SecuredApplication"
|
||||
targetNamespace="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd"
|
||||
elementFormDefault="qualified"
|
||||
xmlns="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd"
|
||||
xmlns:mstns="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
>
|
||||
<xs:complexType name="SecuredApplication">
|
||||
<xs:sequence>
|
||||
<xs:element name="ApplicationName" type="xs:string" minOccurs="0" nillable="true"></xs:element>
|
||||
<xs:element name="ApplicationUri" type="xs:string" minOccurs="0" nillable="true"></xs:element>
|
||||
<xs:element name="ApplicationType" type="ApplicationType" minOccurs="0"></xs:element>
|
||||
<xs:element name="ProductName" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="ConfigurationMode" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="LastExportTime" type="xs:dateTime" minOccurs="0"></xs:element>
|
||||
<xs:element name="ConfigurationFile" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="ExecutableFile" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="ApplicationCertificate" type="CertificateIdentifier" minOccurs="0"></xs:element>
|
||||
<xs:element name="TrustedCertificateStore" type="CertificateStoreIdentifier" minOccurs="0"></xs:element>
|
||||
<xs:element name="TrustedCertificates" type="CertificateList" minOccurs="0"></xs:element>
|
||||
<xs:element name="IssuerCertificateStore" type="CertificateStoreIdentifier" minOccurs="0"></xs:element>
|
||||
<xs:element name="IssuerCertificates" type="CertificateList" minOccurs="0"></xs:element>
|
||||
<xs:element name="RejectedCertificatesStore" type="CertificateStoreIdentifier" minOccurs="0"></xs:element>
|
||||
<xs:element name="BaseAddresses" type="ListOfBaseAddresses" minOccurs="0"></xs:element>
|
||||
<xs:element name="SecurityProfiles" type="ListOfSecurityProfiles" minOccurs="0"></xs:element>
|
||||
<xs:element name="Extensions" type="ListOfExtensions" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:element name="SecuredApplication" type="SecuredApplication" />
|
||||
|
||||
<xs:complexType name="ListOfExtensions">
|
||||
<xs:sequence>
|
||||
<xs:element name="Extension" minOccurs="0" maxOccurs="unbounded" nillable="true">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:any minOccurs="0" processContents="lax"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name ="ListOfBaseAddresses">
|
||||
<xs:sequence>
|
||||
<xs:element name="BaseAddress" type="xs:string" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name ="SecurityProfile">
|
||||
<xs:sequence>
|
||||
<xs:element name="ProfileUri" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="Enabled" type="xs:boolean" minOccurs="0"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name ="ListOfSecurityProfiles">
|
||||
<xs:sequence>
|
||||
<xs:element name="SecurityProfile" type="SecurityProfile" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="ApplicationType">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Server_0" />
|
||||
<xs:enumeration value="Client_1" />
|
||||
<xs:enumeration value="ClientAndServer_2" />
|
||||
<xs:enumeration value="DiscoveryServer_3" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:complexType name ="CertificateIdentifier">
|
||||
<xs:sequence>
|
||||
<xs:element name="StoreType" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="StorePath" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="SubjectName" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="Thumbprint" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="RawData" type="xs:base64Binary" minOccurs="0"></xs:element>
|
||||
<xs:element name="ValidationOptions" type="xs:int" minOccurs="0"></xs:element>
|
||||
<xs:element name="OfflineRevocationList" type="xs:base64Binary" minOccurs="0"></xs:element>
|
||||
<xs:element name="OnlineRevocationList" type="xs:string" minOccurs="0"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name ="ListOfCertificateIdentifier">
|
||||
<xs:sequence>
|
||||
<xs:element name="CertificateIdentifier" type="CertificateIdentifier" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name ="CertificateStoreIdentifier">
|
||||
<xs:sequence>
|
||||
<xs:element name="StoreType" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="StorePath" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="ValidationOptions" type="xs:int" minOccurs="0"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name ="CertificateList">
|
||||
<xs:sequence>
|
||||
<xs:element name="Certificates" type="ListOfCertificateIdentifier" minOccurs="0"></xs:element>
|
||||
<xs:element name="ValidationOptions" type="xs:int" minOccurs="0"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,492 @@
|
||||
/* Copyright (c) 1996-2017, OPC Foundation. All rights reserved.
|
||||
|
||||
The source code in this file is covered under a dual-license scenario:
|
||||
- RCL: for OPC Foundation members in good-standing
|
||||
- GPL V2: everybody else
|
||||
|
||||
RCL license terms accompanied with this source code. See http://opcfoundation.org/License/RCL/1.00/
|
||||
|
||||
GNU General Public License as published by the Free Software Foundation;
|
||||
version 2 of the License are accompanied with this source code. See http://opcfoundation.org/License/GPLv2
|
||||
|
||||
This source code is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace Opc.Ua.Security
|
||||
{
|
||||
/// <summary>
|
||||
/// Stores the security settings for an application.
|
||||
/// </summary>
|
||||
public partial class SecuredApplication
|
||||
{
|
||||
/// <summary>
|
||||
/// The name of the application.
|
||||
/// </summary>
|
||||
[Obsolete("Replaced by ApplicationName")]
|
||||
public string Name
|
||||
{
|
||||
get { return this.ApplicationName; }
|
||||
set { this.ApplicationName = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The uri of the application.
|
||||
/// </summary>
|
||||
[Obsolete("Replaced by ApplicationUri")]
|
||||
public string Uri
|
||||
{
|
||||
get { return this.ApplicationUri; }
|
||||
set { this.ApplicationUri = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A store of certificates trusted by the application.
|
||||
/// </summary>
|
||||
[Obsolete("Replaced by TrustedCertificateStore")]
|
||||
public CertificateStoreIdentifier TrustedPeerStore
|
||||
{
|
||||
get { return this.TrustedCertificateStore; }
|
||||
set { this.TrustedCertificateStore = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A list of certificates trusted by the application.
|
||||
/// </summary>
|
||||
[Obsolete("Replaced by TrustedCertificates")]
|
||||
public CertificateList TrustedPeerCertificates
|
||||
{
|
||||
get { return this.TrustedCertificates; }
|
||||
set { this.TrustedCertificates = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A store of certificate issuers used by the application.
|
||||
/// </summary>
|
||||
[Obsolete("Replaced by TrustedIssuerStore")]
|
||||
public CertificateStoreIdentifier TrustedIssuerStore
|
||||
{
|
||||
get { return this.IssuerCertificateStore; }
|
||||
set { this.IssuerCertificateStore = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A list of certificate issuers used by the application.
|
||||
/// </summary>
|
||||
[Obsolete("Replaced by IssuerCertificates")]
|
||||
public CertificateList TrustedIssuerCertificates
|
||||
{
|
||||
get { return this.IssuerCertificates; }
|
||||
set { this.IssuerCertificates = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Casts a ApplicationType value.
|
||||
/// </summary>
|
||||
public static Opc.Ua.ApplicationType FromApplicationType(Opc.Ua.Security.ApplicationType input)
|
||||
{
|
||||
return (Opc.Ua.ApplicationType)(int)input;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Casts a ApplicationType value.
|
||||
/// </summary>
|
||||
public static Opc.Ua.Security.ApplicationType ToApplicationType(Opc.Ua.ApplicationType input)
|
||||
{
|
||||
return (Opc.Ua.Security.ApplicationType)(int)input;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a CertificateIdentifier object.
|
||||
/// </summary>
|
||||
public static CertificateIdentifier ToCertificateIdentifier(Opc.Ua.CertificateIdentifier input)
|
||||
{
|
||||
if (input != null && !String.IsNullOrEmpty(input.StoreType) && !String.IsNullOrEmpty(input.StorePath))
|
||||
{
|
||||
CertificateIdentifier output = new CertificateIdentifier();
|
||||
|
||||
output.StoreType = input.StoreType;
|
||||
output.StorePath = input.StorePath;
|
||||
output.SubjectName = input.SubjectName;
|
||||
output.Thumbprint = input.Thumbprint;
|
||||
output.ValidationOptions = (int)input.ValidationOptions;
|
||||
output.OfflineRevocationList = null;
|
||||
output.OnlineRevocationList = null;
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a CertificateIdentifier object.
|
||||
/// </summary>
|
||||
public static Opc.Ua.CertificateIdentifier FromCertificateIdentifier(CertificateIdentifier input)
|
||||
{
|
||||
Opc.Ua.CertificateIdentifier output = new Opc.Ua.CertificateIdentifier();
|
||||
|
||||
if (input != null)
|
||||
{
|
||||
output.StoreType = input.StoreType;
|
||||
output.StorePath = input.StorePath;
|
||||
output.SubjectName = input.SubjectName;
|
||||
output.Thumbprint = input.Thumbprint;
|
||||
output.ValidationOptions = (Opc.Ua.CertificateValidationOptions)input.ValidationOptions;
|
||||
}
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a CertificateStoreIdentifier object.
|
||||
/// </summary>
|
||||
public static CertificateStoreIdentifier ToCertificateStoreIdentifier(Opc.Ua.CertificateStoreIdentifier input)
|
||||
{
|
||||
if (input != null && !String.IsNullOrEmpty(input.StoreType) && !String.IsNullOrEmpty(input.StorePath))
|
||||
{
|
||||
CertificateStoreIdentifier output = new CertificateStoreIdentifier();
|
||||
|
||||
output.StoreType = input.StoreType;
|
||||
output.StorePath = input.StorePath;
|
||||
output.ValidationOptions = (int)input.ValidationOptions;
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a CertificateTrustList object.
|
||||
/// </summary>
|
||||
public static Opc.Ua.CertificateTrustList FromCertificateStoreIdentifierToTrustList(CertificateStoreIdentifier input)
|
||||
{
|
||||
Opc.Ua.CertificateTrustList output = new Opc.Ua.CertificateTrustList();
|
||||
|
||||
if (input != null)
|
||||
{
|
||||
output.StoreType = input.StoreType;
|
||||
output.StorePath = input.StorePath;
|
||||
output.ValidationOptions = (Opc.Ua.CertificateValidationOptions)input.ValidationOptions;
|
||||
}
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a CertificateStoreIdentifier object.
|
||||
/// </summary>
|
||||
public static Opc.Ua.CertificateStoreIdentifier FromCertificateStoreIdentifier(CertificateStoreIdentifier input)
|
||||
{
|
||||
Opc.Ua.CertificateStoreIdentifier output = new Opc.Ua.CertificateStoreIdentifier();
|
||||
|
||||
if (input != null)
|
||||
{
|
||||
output.StoreType = input.StoreType;
|
||||
output.StorePath = input.StorePath;
|
||||
output.ValidationOptions = (Opc.Ua.CertificateValidationOptions)input.ValidationOptions;
|
||||
}
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a CertificateTrustList object.
|
||||
/// </summary>
|
||||
public static Opc.Ua.CertificateTrustList ToCertificateTrustList(CertificateStoreIdentifier input)
|
||||
{
|
||||
Opc.Ua.CertificateTrustList output = new Opc.Ua.CertificateTrustList();
|
||||
|
||||
if (input != null)
|
||||
{
|
||||
output.StoreType = input.StoreType;
|
||||
output.StorePath = input.StorePath;
|
||||
output.ValidationOptions = (Opc.Ua.CertificateValidationOptions)input.ValidationOptions;
|
||||
}
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a CertificateList object.
|
||||
/// </summary>
|
||||
public static CertificateList ToCertificateList(Opc.Ua.CertificateIdentifierCollection input)
|
||||
{
|
||||
CertificateList output = new CertificateList();
|
||||
|
||||
if (input != null)
|
||||
{
|
||||
output.ValidationOptions = (int)0;
|
||||
output.Certificates = new ListOfCertificateIdentifier();
|
||||
|
||||
for (int ii = 0; ii < input.Count; ii++)
|
||||
{
|
||||
output.Certificates.Add(ToCertificateIdentifier(input[ii]));
|
||||
}
|
||||
}
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a CertificateIdentifierCollection object.
|
||||
/// </summary>
|
||||
public static Opc.Ua.CertificateIdentifierCollection FromCertificateList(CertificateList input)
|
||||
{
|
||||
Opc.Ua.CertificateIdentifierCollection output = new Opc.Ua.CertificateIdentifierCollection();
|
||||
|
||||
if (input != null && input.Certificates != null)
|
||||
{
|
||||
for (int ii = 0; ii < input.Certificates.Count; ii++)
|
||||
{
|
||||
output.Add(FromCertificateIdentifier(input.Certificates[ii]));
|
||||
}
|
||||
}
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a ListOfBaseAddresses object.
|
||||
/// </summary>
|
||||
public static ListOfBaseAddresses ToListOfBaseAddresses(ServerBaseConfiguration configuration)
|
||||
{
|
||||
ListOfBaseAddresses addresses = new ListOfBaseAddresses();
|
||||
|
||||
if (configuration != null)
|
||||
{
|
||||
if (configuration.BaseAddresses != null)
|
||||
{
|
||||
for (int ii = 0; ii < configuration.BaseAddresses.Count; ii++)
|
||||
{
|
||||
addresses.Add(configuration.BaseAddresses[ii]);
|
||||
}
|
||||
}
|
||||
|
||||
if (configuration.AlternateBaseAddresses != null)
|
||||
{
|
||||
for (int ii = 0; ii < configuration.AlternateBaseAddresses.Count; ii++)
|
||||
{
|
||||
addresses.Add(configuration.AlternateBaseAddresses[ii]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return addresses;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a ListOfBaseAddresses object.
|
||||
/// </summary>
|
||||
public static void FromListOfBaseAddresses(ServerBaseConfiguration configuration, ListOfBaseAddresses addresses)
|
||||
{
|
||||
Dictionary<string, string> map = new Dictionary<string, string>();
|
||||
|
||||
if (addresses != null && configuration != null)
|
||||
{
|
||||
configuration.BaseAddresses = new StringCollection();
|
||||
configuration.AlternateBaseAddresses = null;
|
||||
|
||||
for (int ii = 0; ii < addresses.Count; ii++)
|
||||
{
|
||||
Uri url = Utils.ParseUri(addresses[ii]);
|
||||
|
||||
if (url != null)
|
||||
{
|
||||
if (map.ContainsKey(url.Scheme))
|
||||
{
|
||||
if (configuration.AlternateBaseAddresses == null)
|
||||
{
|
||||
configuration.AlternateBaseAddresses = new StringCollection();
|
||||
}
|
||||
|
||||
configuration.AlternateBaseAddresses.Add(url.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
configuration.BaseAddresses.Add(url.ToString());
|
||||
map.Add(url.Scheme, string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a ListOfSecurityProfiles object.
|
||||
/// </summary>
|
||||
public static ListOfSecurityProfiles ToListOfSecurityProfiles(ServerSecurityPolicyCollection policies)
|
||||
{
|
||||
ListOfSecurityProfiles profiles = new ListOfSecurityProfiles();
|
||||
profiles.Add(CreateProfile(SecurityPolicies.None));
|
||||
profiles.Add(CreateProfile(SecurityPolicies.Basic128Rsa15));
|
||||
profiles.Add(CreateProfile(SecurityPolicies.Basic256));
|
||||
profiles.Add(CreateProfile(SecurityPolicies.Basic256Sha256));
|
||||
|
||||
if (policies != null)
|
||||
{
|
||||
for (int ii = 0; ii < policies.Count; ii++)
|
||||
{
|
||||
for (int jj = 0; jj < profiles.Count; jj++)
|
||||
{
|
||||
if (policies[ii].SecurityPolicyUri == profiles[jj].ProfileUri)
|
||||
{
|
||||
profiles[jj].Enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return profiles;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a ServerSecurityPolicyCollection object.
|
||||
/// </summary>
|
||||
public static ServerSecurityPolicyCollection FromListOfSecurityProfiles(ListOfSecurityProfiles profiles)
|
||||
{
|
||||
ServerSecurityPolicyCollection policies = new ServerSecurityPolicyCollection();
|
||||
|
||||
if (profiles != null)
|
||||
{
|
||||
for (int ii = 0; ii < profiles.Count; ii++)
|
||||
{
|
||||
if (profiles[ii].Enabled)
|
||||
{
|
||||
policies.Add(CreatePolicy(profiles[ii].ProfileUri));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (policies.Count == 0)
|
||||
{
|
||||
policies.Add(CreatePolicy(SecurityPolicies.None));
|
||||
}
|
||||
|
||||
return policies;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new policy object.
|
||||
/// </summary>
|
||||
private static ServerSecurityPolicy CreatePolicy(string profileUri)
|
||||
{
|
||||
ServerSecurityPolicy policy = new ServerSecurityPolicy();
|
||||
policy.SecurityPolicyUri = profileUri;
|
||||
|
||||
if (profileUri != null)
|
||||
{
|
||||
switch (profileUri)
|
||||
{
|
||||
case SecurityPolicies.None:
|
||||
{
|
||||
policy.SecurityMode = MessageSecurityMode.None;
|
||||
policy.SecurityLevel = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
case SecurityPolicies.Basic128Rsa15:
|
||||
{
|
||||
policy.SecurityMode = MessageSecurityMode.SignAndEncrypt;
|
||||
policy.SecurityLevel = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
case SecurityPolicies.Basic256:
|
||||
{
|
||||
policy.SecurityMode = MessageSecurityMode.SignAndEncrypt;
|
||||
policy.SecurityLevel = 2;
|
||||
break;
|
||||
}
|
||||
case SecurityPolicies.Basic256Sha256:
|
||||
{
|
||||
policy.SecurityMode = MessageSecurityMode.SignAndEncrypt;
|
||||
policy.SecurityLevel = 3;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return policy;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new policy object.
|
||||
/// </summary>
|
||||
private static Opc.Ua.Security.SecurityProfile CreateProfile(string profileUri)
|
||||
{
|
||||
Opc.Ua.Security.SecurityProfile policy = new SecurityProfile();
|
||||
policy.ProfileUri = profileUri;
|
||||
policy.Enabled = false;
|
||||
return policy;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An identifier for a certificate.
|
||||
/// </summary>
|
||||
public partial class CertificateIdentifier
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the certificate associated with the identifier.
|
||||
/// </summary>
|
||||
public System.Security.Cryptography.X509Certificates.X509Certificate2 Find()
|
||||
{
|
||||
Opc.Ua.CertificateIdentifier output = SecuredApplication.FromCertificateIdentifier(this);
|
||||
return output.Find(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the certificate associated with the identifier.
|
||||
/// </summary>
|
||||
public System.Security.Cryptography.X509Certificates.X509Certificate2 Find(bool needPrivateKey)
|
||||
{
|
||||
Opc.Ua.CertificateIdentifier output = SecuredApplication.FromCertificateIdentifier(this);
|
||||
return output.Find(needPrivateKey);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Opens the certificate store.
|
||||
/// </summary>
|
||||
public ICertificateStore OpenStore()
|
||||
{
|
||||
Opc.Ua.CertificateIdentifier output = SecuredApplication.FromCertificateIdentifier(this);
|
||||
return output.OpenStore();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the private key file path.
|
||||
/// </summary>
|
||||
public string GetPrivateKeyFilePath()
|
||||
{
|
||||
Opc.Ua.CertificateIdentifier output = SecuredApplication.FromCertificateIdentifier(this);
|
||||
return output.GetPrivateKeyFilePath();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// An identifier for a certificate store.
|
||||
/// </summary>
|
||||
public partial class CertificateStoreIdentifier
|
||||
{
|
||||
/// <summary>
|
||||
/// Opens the certificate store.
|
||||
/// </summary>
|
||||
public ICertificateStore OpenStore()
|
||||
{
|
||||
Opc.Ua.CertificateStoreIdentifier output = SecuredApplication.FromCertificateStoreIdentifier(this);
|
||||
return output.OpenStore();
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,419 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema
|
||||
targetNamespace="http://opcfoundation.org/UA/2011/03/UANodeSet.xsd"
|
||||
elementFormDefault="qualified"
|
||||
xmlns="http://opcfoundation.org/UA/2011/03/UANodeSet.xsd"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
>
|
||||
<xs:element name="UANodeSet">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="NamespaceUris" type="UriTable" minOccurs="0"></xs:element>
|
||||
<xs:element name="ServerUris" type ="UriTable" minOccurs="0"></xs:element>
|
||||
<xs:element name="Models" type="ModelTable" minOccurs="0"></xs:element>
|
||||
<xs:element name="Aliases" type ="AliasTable" minOccurs="0"></xs:element>
|
||||
<xs:element name="Extensions" type="ListOfExtensions" minOccurs="0"></xs:element>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="UAObject" type="UAObject"></xs:element>
|
||||
<xs:element name="UAVariable" type="UAVariable"></xs:element>
|
||||
<xs:element name="UAMethod" type="UAMethod"></xs:element>
|
||||
<xs:element name="UAView" type="UAView"></xs:element>
|
||||
<xs:element name="UAObjectType" type="UAObjectType"></xs:element>
|
||||
<xs:element name="UAVariableType" type="UAVariableType"></xs:element>
|
||||
<xs:element name="UADataType" type="UADataType"></xs:element>
|
||||
<xs:element name="UAReferenceType" type="UAReferenceType"></xs:element>
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="LastModified" type="xs:dateTime" use="optional"></xs:attribute>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="UANodeSetChanges">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="NamespaceUris" type ="UriTable" minOccurs="0"></xs:element>
|
||||
<xs:element name="ServerUris" type ="UriTable" minOccurs="0"></xs:element>
|
||||
<xs:element name="Aliases" type ="AliasTable" minOccurs="0"></xs:element>
|
||||
<xs:element name="Extensions" type="ListOfExtensions" minOccurs="0"></xs:element>
|
||||
<xs:element name="NodesToAdd" type="NodesToAdd" minOccurs="0"></xs:element>
|
||||
<xs:element name="ReferencesToAdd" type="ReferencesToChange" minOccurs="0"></xs:element>
|
||||
<xs:element name="NodesToDelete" type="NodesToDelete" minOccurs="0"></xs:element>
|
||||
<xs:element name="ReferencesToDelete" type="ReferencesToChange" minOccurs="0"></xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="LastModified" type="xs:dateTime" use="optional"></xs:attribute>
|
||||
<xs:attribute name="TransactionId" type="xs:string" use="required"></xs:attribute>
|
||||
<xs:attribute name="AcceptAllOrNothing" type="xs:boolean" default="false"></xs:attribute>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="UANodeSetChangesStatus">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="NodesToAdd" type="NodeSetStatusList" minOccurs="0"></xs:element>
|
||||
<xs:element name="ReferencesToAdd" type="NodeSetStatusList" minOccurs="0"></xs:element>
|
||||
<xs:element name="NodesToDelete" type="NodeSetStatusList" minOccurs="0"></xs:element>
|
||||
<xs:element name="ReferencesToDelete" type="NodeSetStatusList" minOccurs="0"></xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="LastModified" type="xs:dateTime" use="optional"></xs:attribute>
|
||||
<xs:attribute name="TransactionId" type="xs:string" use="required"></xs:attribute>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:complexType name="NodesToAdd">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="UAObject" type="UAObject"></xs:element>
|
||||
<xs:element name="UAVariable" type="UAVariable"></xs:element>
|
||||
<xs:element name="UAMethod" type="UAMethod"></xs:element>
|
||||
<xs:element name="UAView" type="UAView"></xs:element>
|
||||
<xs:element name="UAObjectType" type="UAObjectType"></xs:element>
|
||||
<xs:element name="UAVariableType" type="UAVariableType"></xs:element>
|
||||
<xs:element name="UADataType" type="UADataType"></xs:element>
|
||||
<xs:element name="UAReferenceType" type="UAReferenceType"></xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="NodesToDelete">
|
||||
<xs:sequence>
|
||||
<xs:element name="Node" type="NodeToDelete" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="NodeToDelete">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="NodeId">
|
||||
<xs:attribute name="DeleteReverseReferences" type="xs:boolean" default="true"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ReferencesToChange">
|
||||
<xs:sequence>
|
||||
<xs:element name="Reference" type="ReferenceChange" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ReferenceChange">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="NodeId">
|
||||
<xs:attribute name="Source" type="NodeId" use="required"></xs:attribute>
|
||||
<xs:attribute name="ReferenceType" type="NodeId" use="required"></xs:attribute>
|
||||
<xs:attribute name="IsForward" type="xs:boolean" default="true"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="NodeSetStatus">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="Code" type="xs:unsignedInt" default="0"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="NodeSetStatusList">
|
||||
<xs:sequence>
|
||||
<xs:element name="Status" type="NodeSetStatus" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UriTable">
|
||||
<xs:sequence>
|
||||
<xs:element name="Uri" type="xs:string" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ModelTableEntry">
|
||||
<xs:sequence>
|
||||
<xs:element name="RequiredModel" type="ModelTableEntry" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="ModelUri" type="xs:string" use="optional"></xs:attribute>
|
||||
<xs:attribute name="Version" type="xs:string" use="optional"></xs:attribute>
|
||||
<xs:attribute name="PublicationDate" type="xs:dateTime" use="optional"></xs:attribute>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ModelTable">
|
||||
<xs:sequence>
|
||||
<xs:element name="Model" type="ModelTableEntry" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="NodeId">
|
||||
<xs:restriction base="xs:string"></xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="QualifiedName">
|
||||
<xs:restriction base="xs:string"></xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:complexType name="NodeIdAlias">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="NodeId">
|
||||
<xs:attribute name="Alias" type="xs:string"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="AliasTable">
|
||||
<xs:sequence>
|
||||
<xs:element name="Alias" type="NodeIdAlias" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="Locale">
|
||||
<xs:restriction base="xs:string"></xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:complexType name="LocalizedText">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="Locale" type="Locale" default=""></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="WriteMask">
|
||||
<xs:restriction base="xs:unsignedInt"></xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="EventNotifier">
|
||||
<xs:restriction base="xs:unsignedByte"></xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="ValueRank">
|
||||
<xs:restriction base="xs:int"></xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="ArrayDimensions">
|
||||
<xs:list>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="([0-9]*,|[0-9]*)*"></xs:pattern>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:list>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="SymbolicName">
|
||||
<xs:list>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="(\p{L})(\p{L}|\p{N}|_)*"></xs:pattern>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:list>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="CardinalityType">
|
||||
<xs:list>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="(\p{N})*|unbounded"></xs:pattern>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:list>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="Duration">
|
||||
<xs:restriction base="xs:double"></xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="AccessLevel">
|
||||
<xs:restriction base="xs:unsignedByte"></xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:complexType name="Reference">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="NodeId">
|
||||
<xs:attribute name="ReferenceType" type="NodeId" use="required"></xs:attribute>
|
||||
<xs:attribute name="IsForward" type="xs:boolean" default="true"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ListOfReferences">
|
||||
<xs:sequence>
|
||||
<xs:element name="Reference" type="Reference" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ListOfExtensions">
|
||||
<xs:sequence>
|
||||
<xs:element name="Extension" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:any minOccurs="0" processContents="lax" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UANode">
|
||||
<xs:sequence>
|
||||
<xs:element name="DisplayName" type="LocalizedText" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
<xs:element name="Description" type="LocalizedText" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
<xs:element name="Category" type="xs:string" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
<xs:element name="Documentation" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
|
||||
<xs:element name="References" type="ListOfReferences" minOccurs="0"></xs:element>
|
||||
<xs:element name="Extensions" type="ListOfExtensions" minOccurs="0"></xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="NodeId" type="NodeId" use="required"></xs:attribute>
|
||||
<xs:attribute name="BrowseName" type="QualifiedName" use="required"></xs:attribute>
|
||||
<xs:attribute name="WriteMask" type="WriteMask" default="0"></xs:attribute>
|
||||
<xs:attribute name="UserWriteMask" type="WriteMask" default="0"></xs:attribute>
|
||||
<xs:attribute name="SymbolicName" type="SymbolicName" use="optional"></xs:attribute>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UAInstance">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="UANode">
|
||||
<xs:attribute name="ParentNodeId" type="NodeId" use="optional"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UAObject">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="UAInstance">
|
||||
<xs:attribute name="EventNotifier" type="EventNotifier" default="0"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UAVariable">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="UAInstance">
|
||||
<xs:sequence>
|
||||
<xs:element name="Value" minOccurs="0">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:any minOccurs="0" processContents="lax" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Translation" type="TranslationType" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="DataType" type="NodeId" default="i=24"></xs:attribute>
|
||||
<xs:attribute name="ValueRank" type="ValueRank" default="-1"></xs:attribute>
|
||||
<xs:attribute name="ArrayDimensions" type="ArrayDimensions" default=""></xs:attribute>
|
||||
<xs:attribute name="AccessLevel" type="AccessLevel" default="1"></xs:attribute>
|
||||
<xs:attribute name="UserAccessLevel" type="AccessLevel" default="1"></xs:attribute>
|
||||
<xs:attribute name="MinimumSamplingInterval" type="Duration" default="0"></xs:attribute>
|
||||
<xs:attribute name="Historizing" type="xs:boolean" default="false"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UAMethod">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="UAInstance">
|
||||
<xs:attribute name="Executable" type="xs:boolean" default="true"></xs:attribute>
|
||||
<xs:attribute name="UserExecutable" type="xs:boolean" default="true"></xs:attribute>
|
||||
<xs:attribute name="MethodDeclarationId" type="NodeId" use="optional"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="TranslationType">
|
||||
<xs:choice minOccurs="0">
|
||||
<xs:element name="Text" type="LocalizedText" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
<xs:element name="Field" type="StructureTranslationType" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="StructureTranslationType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Text" type="LocalizedText" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="Name" type="xs:string" use="required"></xs:attribute>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UAView">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="UAInstance">
|
||||
<xs:attribute name="ContainsNoLoops" type="xs:boolean" default="false"></xs:attribute>
|
||||
<xs:attribute name="EventNotifier" type="EventNotifier" default="0"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UAType">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="UANode">
|
||||
<xs:attribute name="IsAbstract" type="xs:boolean" default="false"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UAObjectType">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="UAType"></xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UAVariableType">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="UAType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Value" minOccurs="0">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:any minOccurs="0" processContents="lax" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="DataType" type="NodeId" default="i=24"></xs:attribute>
|
||||
<xs:attribute name="ValueRank" type="ValueRank" default="-1"></xs:attribute>
|
||||
<xs:attribute name="ArrayDimensions" type="ArrayDimensions" default=""></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UADataType">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="UAType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Definition" type="DataTypeDefinition" minOccurs="0"></xs:element>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="DataTypeDefinition">
|
||||
<xs:sequence>
|
||||
<xs:element name="Field" type="DataTypeField" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="Name" type="QualifiedName" use="required"></xs:attribute>
|
||||
<xs:attribute name="BaseType" type="QualifiedName" use="optional" default=""></xs:attribute>
|
||||
<xs:attribute name="SymbolicName" type="SymbolicName" use="optional" default=""></xs:attribute>
|
||||
<xs:attribute name="IsUnion" type="xs:boolean" use="optional" default="false"></xs:attribute>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="DataTypeField">
|
||||
<xs:sequence>
|
||||
<xs:element name="DisplayName" type="LocalizedText" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
<xs:element name="Description" type="LocalizedText" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
<xs:element name="Definition" type="DataTypeDefinition" minOccurs="0"></xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="Name" type="xs:string" use="required"></xs:attribute>
|
||||
<xs:attribute name="SymbolicName" type="SymbolicName" use="optional"></xs:attribute>
|
||||
<xs:attribute name="DataType" type="NodeId" default="i=24"></xs:attribute>
|
||||
<xs:attribute name="ValueRank" type="ValueRank" default="-1"></xs:attribute>
|
||||
<xs:attribute name="Value" type="xs:int" default="-1"></xs:attribute>
|
||||
<xs:attribute name="IsOptional" type="xs:boolean" use="optional" default="false"></xs:attribute>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="UAReferenceType">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="UAType">
|
||||
<xs:sequence>
|
||||
<xs:element name="InverseName" type="LocalizedText" minOccurs="0" maxOccurs="unbounded"></xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="Symmetric" type="xs:boolean" default="false"></xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user