简体   繁体   English

XML编码器还是二进制编码器? -Eclipse Milo(客户端-服务器)

[英]XML encoder or Binary encoder? - Eclipse Milo (Client-Server)

Eclipse Milo supports XML encoding if I'm correct. 如果我是正确的,Eclipse Milo支持XML编码。 I want to make use of this XML encoding and changed the getEndpoint addres from opc.tcp://server ~binary to http://server ~web. 我想利用这种XML编码,并将getEndpoint地址从opc.tcp:// server〜binary更改为http:// server〜web

Eclipse代码

Before I'm continuing my assignment I wanted to make sure if it really worked. 在继续我的作业之前,我想确定它是否真的有效。 Because in the console log I see this result. 因为在控制台日志中,我看到了这个结果。

控制台日志

I'm connecting to a S7-1500 PLC(server) with an opc opc.tcp address. 我正在使用opc opc.tcp地址连接到S7-1500 PLC(服务器)。 But the connection can still be made even if the endPoint(in Milo) is set on http. 但是即使在http上设置了endPoint(在Milo中),仍然可以建立连接。

My question is how is this possible and is the XML encoding really active now? 我的问题是,这怎么可能?XML编码现在真的很活跃吗?

Thanks in advance! 提前致谢!

1) it does not matter whether you get the endpoints using a discovery endpoint that starts with "opc.tcp:" or "http:" - the resulting list of endpoints should be the same, and will contains endpoints with various protocols and various encodings. 1)是否使用以“ opc.tcp:”或“ http:”开头的发现端点来获取端点都没有关系-端点的结果列表应该相同,并且将包含具有各种协议和各种编码的端点。

2) the encoding is not directly dependent on the protocol - while there are common combinations (profiles) and opc.tcp: is usually used with binary encoding and http: with XML encoding, it does not have to be the case. 2)编码并不直接取决于协议-虽然存在常见的组合(配置文件)和opc.tcp:通常与二进制编码一起使用,而http:与XML编码一起使用,但不一定如此。

The bottom line is, if you need an endpoint that uses binary encoding, your filtering code that chooses the right endpoint should check precisely for that (right now it looks only for a specific security policy) 最重要的是,如果您需要使用二进制编码的端点,则选择正确端点的过滤代码应对此进行精确检查(现在,它仅查找特定的安全策略)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM