简体   繁体   中英

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

Eclipse Milo supports XML encoding if I'm correct. I want to make use of this XML encoding and changed the getEndpoint addres from opc.tcp://server ~binary to 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. But the connection can still be made even if the endPoint(in Milo) is set on http.

My question is how is this possible and is the XML encoding really active now?

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.

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.

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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