Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Protocols KMIP中属性的XML编码_Protocols_Kmip - Fatal编程技术网

Protocols KMIP中属性的XML编码

Protocols KMIP中属性的XML编码,protocols,kmip,Protocols,Kmip,我正在分析KMIP以在scala中实现一个原型。我试图理解实现不同编码配置文件(字节、JSON、XML)架构的所有概念 在规范第5.4.1.6节XML元素编码中规定: […]结构值被编码为嵌套的xml元素,而非结构值 使用“value”属性对值进行编码 在这个例子中: 使用第二种表示法 如果第一个表示作为示例显示,则将使用它。那么在哪种情况下?KMIP规范在这一点上非常模糊。您描述的两种形式的属性都被认为是有效的KMIP,应该进行处理 在实现http/json/xml编码时,我强烈建议使用KM

我正在分析KMIP以在scala中实现一个原型。我试图理解实现不同编码配置文件(字节、JSON、XML)架构的所有概念

在规范第5.4.1.6节XML元素编码中规定:

[…]结构值被编码为嵌套的xml元素,而非结构值 使用“value”属性对值进行编码

在这个例子中:

使用第二种表示法


如果第一个表示作为示例显示,则将使用它。那么在哪种情况下?

KMIP规范在这一点上非常模糊。您描述的两种形式的属性都被认为是有效的KMIP,应该进行处理

在实现http/json/xml编码时,我强烈建议使用KMIP附加消息编码文档-

第6.1.6节描述了主规范中未涵盖的另一种格式:

<ActivationDate type="DateTime" value="2001-01-01T10:00:00+10:00"/>
<Attribute>
    <AttributeName type="TextString" value="Activation Date"/
    <AttributeValue type="DateTime" value="2001-01-01T10:00:00+10:00"/>
</Attribute>