Search in sources :

Example 6 with DataTypeDictionarySessionInitializer

use of org.eclipse.milo.opcua.sdk.client.dtd.DataTypeDictionarySessionInitializer in project milo by eclipse.

the class AbstractClientServerTest method startClientAndServer.

@BeforeAll
public void startClientAndServer() throws Exception {
    server = TestServer.create();
    testNamespace = new TestNamespace(server);
    testNamespace.startup();
    server.startup().get();
    client = TestClient.create(server);
    client.addSessionInitializer(new DataTypeDictionarySessionInitializer(new GenericBsdParser()));
    client.connect().get();
}
Also used : DataTypeDictionarySessionInitializer(org.eclipse.milo.opcua.sdk.client.dtd.DataTypeDictionarySessionInitializer) GenericBsdParser(org.eclipse.milo.opcua.binaryschema.GenericBsdParser) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

GenericBsdParser (org.eclipse.milo.opcua.binaryschema.GenericBsdParser)6 DataTypeDictionarySessionInitializer (org.eclipse.milo.opcua.sdk.client.dtd.DataTypeDictionarySessionInitializer)6 OpcUaClient (org.eclipse.milo.opcua.sdk.client.OpcUaClient)4 DataValue (org.eclipse.milo.opcua.stack.core.types.builtin.DataValue)3 ExtensionObject (org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject)3 UaVariableNode (org.eclipse.milo.opcua.sdk.client.nodes.UaVariableNode)2 Variant (org.eclipse.milo.opcua.stack.core.types.builtin.Variant)2 CustomStructType (tech.pdai.opcua.milo.client.entity.CustomStructType)2 File (java.io.File)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 Files (java.nio.file.Files)1 Path (java.nio.file.Path)1 Paths (java.nio.file.Paths)1 Key (java.security.Key)1 KeyPair (java.security.KeyPair)1 KeyStore (java.security.KeyStore)1 KeyStoreException (java.security.KeyStoreException)1 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 PrivateKey (java.security.PrivateKey)1