- Posts: 43
- Thank you received: 1
OPC client
1 day 4 hours ago #200
by jds
Replied by jds on topic OPC client
Claes,
after grabbing the packets with wireshark and letting chatgpt evaluate the content, since I'm not an OPC expert, it looks like the problem is in te fact that Proviewr uses SOAP 1.1 and the Xgate uses SOAP 1.2 although it states to work also with 1.1. I grabbed the original packet and reformed (gpt reformed) the pachet to 1.2 format and the result was succeslfull.
I'm afraid my that my options in gateways between OPC DA and OPC XML DA are very limited due the fact that those aren't the newest protocols around and nowadays OPC UA is mostly the way to go.
I don't know if Proviewr could be migrated to SOAP 1.2?
ps: there were also remarks in the setup of the 1.1 XML messages, but I think that is more gSoap matter...
after grabbing the packets with wireshark and letting chatgpt evaluate the content, since I'm not an OPC expert, it looks like the problem is in te fact that Proviewr uses SOAP 1.1 and the Xgate uses SOAP 1.2 although it states to work also with 1.1. I grabbed the original packet and reformed (gpt reformed) the pachet to 1.2 format and the result was succeslfull.
I'm afraid my that my options in gateways between OPC DA and OPC XML DA are very limited due the fact that those aren't the newest protocols around and nowadays OPC UA is mostly the way to go.
I don't know if Proviewr could be migrated to SOAP 1.2?
ps: there were also remarks in the setup of the 1.1 XML messages, but I think that is more gSoap matter...
Please Log in or Create an account to join the conversation.
18 hours 28 minutes ago #201
by jds
Replied by jds on topic OPC client
Hello,
did an extra test since it was noted that there was a fault in one of the headers in the original message.
This was the original message send by Proviewr.The header which is misinterpreted is: <s0:Subscribe ReturnValuesOnReply>. Ith changing this to <s0:Subscribe ReturnValuesOnReply="true"> and testing the message with curl, the server response is OK. I don't know if this could be adjusted somewhere?
did an extra test since it was noted that there was a fault in one of the headers in the original message.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://opcfoundation.org/webservices/XMLDA/1.0/">
<SOAP-ENV:Body>
<s0:Subscribe ReturnValuesOnReply>
<Options
xsi:type="s0:RequestOptions"
xmlns="http://opcfoundation.org/webservices/XMLDA/1.0/"
ReturnItemTime="true">
</Options>
<s0:ItemList xsi:type="s0:SubscribeRequestItemList">
<Items
xsi:type="s0:SubscribeRequestItem"
xmlns="http://opcfoundation.org/webservices/XMLDA/1.0/"
RequestedSamplingRate="1000"
ClientItemHandle="7"
ItemName="Random.PsBitSet1">
</Items>
</s0:ItemList>
</s0:Subscribe>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
This was the original message send by Proviewr.The header which is misinterpreted is: <s0:Subscribe ReturnValuesOnReply>. Ith changing this to <s0:Subscribe ReturnValuesOnReply="true"> and testing the message with curl, the server response is OK. I don't know if this could be adjusted somewhere?
Please Log in or Create an account to join the conversation.
Time to create page: 0.442 seconds