Custom.Opc.Ua.Transport.bsd 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <opc:TypeDictionary
  2. xmlns:opc="http://opcfoundation.org/BinarySchema/"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:ua="http://opcfoundation.org/UA/"
  5. xmlns:tns="http://opcfoundation.org/UA/"
  6. DefaultByteOrder="LittleEndian"
  7. TargetNamespace="http://opcfoundation.org/UA/"
  8. >
  9. <opc:Import Namespace="http://opcfoundation.org/BinarySchema/" />
  10. <!-- Transport types begin -->
  11. <opc:StructuredType Name="TcpMessageHeader">
  12. <opc:Documentation>TCP Header</opc:Documentation>
  13. <opc:Field Name="MessageType" TypeName="opc:MessageType" /> <!-- The MessageType type is custom and implemented by hand -->
  14. <opc:Field Name="IsFinal" TypeName="opc:Byte" />
  15. <opc:Field Name="MessageSize" TypeName="opc:UInt32" />
  16. </opc:StructuredType>
  17. <opc:StructuredType Name="TcpHelloMessage">
  18. <opc:Documentation>Hello Message</opc:Documentation>
  19. <opc:Field Name="ProtocolVersion" TypeName="opc:UInt32" />
  20. <opc:Field Name="ReceiveBufferSize" TypeName="opc:UInt32" />
  21. <opc:Field Name="SendBufferSize" TypeName="opc:UInt32" />
  22. <opc:Field Name="MaxMessageSize" TypeName="opc:UInt32" />
  23. <opc:Field Name="MaxChunkCount" TypeName="opc:UInt32" />
  24. <opc:Field Name="EndpointUrl" TypeName="opc:String" />
  25. </opc:StructuredType>
  26. <opc:StructuredType Name="TcpAcknowledgeMessage">
  27. <opc:Documentation>Acknowledge Message</opc:Documentation>
  28. <opc:Field Name="ProtocolVersion" TypeName="opc:UInt32" />
  29. <opc:Field Name="ReceiveBufferSize" TypeName="opc:UInt32" />
  30. <opc:Field Name="SendBufferSize" TypeName="opc:UInt32" />
  31. <opc:Field Name="MaxMessageSize" TypeName="opc:UInt32" />
  32. <opc:Field Name="MaxChunkCount" TypeName="opc:UInt32" />
  33. </opc:StructuredType>
  34. <opc:StructuredType Name="SecureConversationMessageHeader">
  35. <opc:Documentation>Secure Layer Sequence Header</opc:Documentation>
  36. <opc:Field Name="MessageHeader" TypeName="opc:TcpMessageHeader" />
  37. <opc:Field Name="SecureChannelId" TypeName="opc:UInt32" />
  38. </opc:StructuredType>
  39. <opc:StructuredType Name="AsymmetricAlgorithmSecurityHeader">
  40. <opc:Documentation>Security Header></opc:Documentation>
  41. <opc:Field Name="SecurityPolicyUri" TypeName="opc:ByteString" />
  42. <opc:Field Name="SenderCertificate" TypeName="opc:ByteString" />
  43. <opc:Field Name="ReceiverCertificateThumbprint" TypeName="opc:ByteString" />
  44. </opc:StructuredType>
  45. <opc:StructuredType Name="SymmetricAlgorithmSecurityHeader">
  46. <opc:Documentation>Secure Layer Symmetric Algorithm Header</opc:Documentation>
  47. <opc:Field Name="TokenId" TypeName="opc:UInt32" />
  48. </opc:StructuredType>
  49. <opc:StructuredType Name="SequenceHeader">
  50. <opc:Documentation>Secure Layer Sequence Header</opc:Documentation>
  51. <opc:Field Name="SequenceNumber" TypeName="opc:UInt32" />
  52. <opc:Field Name="RequestId" TypeName="opc:UInt32"/>
  53. </opc:StructuredType>
  54. <opc:StructuredType Name="SecureConversationMessageFooter">
  55. <opc:Documentation>Secure Conversation Message Footer</opc:Documentation>
  56. <opc:Field Name="PaddingSize" TypeName="opc:Byte" />
  57. <opc:Field Name="Padding" TypeName="opc:Byte" LengthField="PaddingSize" />
  58. <opc:Field Name="Signature" TypeName="opc:Byte"/>
  59. </opc:StructuredType>
  60. <opc:StructuredType Name="SecureConversationMessageAbortBody">
  61. <opc:Documentation>Secure Conversation Message Abort Body</opc:Documentation>
  62. <opc:Field Name="Error" TypeName="opc:UInt32" />
  63. <opc:Field Name="Reason" TypeName="opc:String" />
  64. </opc:StructuredType>
  65. <!-- Transport types end -->
  66. </opc:TypeDictionary>