- Posts: 45
- Thank you received: 1
OPC client
2 weeks 4 days 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.
2 weeks 3 days 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.
5 days 12 hours ago #205
by claes
Replied by claes on topic OPC client
Hi jds,
The XML messages are formed deep down in the gsoap code, and the application only sets values in a data structure. ReturnValuesOnReply was set to the default value, but maybe this wasn't correctly defined and by setting it to true I managed to get a valid syntax. If you tell me what version you are running I can send you a patch.
/Claes
The XML messages are formed deep down in the gsoap code, and the application only sets values in a data structure. ReturnValuesOnReply was set to the default value, but maybe this wasn't correctly defined and by setting it to true I managed to get a valid syntax. If you tell me what version you are running I can send you a patch.
/Claes
Please Log in or Create an account to join the conversation.
5 days 5 hours ago #206
by jds
Replied by jds on topic OPC client
Claes,
great to hear that! I'm currently running the last version of Proviewr 6.1.5
great to hear that! I'm currently running the last version of Proviewr 6.1.5
Please Log in or Create an account to join the conversation.
4 days 12 hours ago #207
by claes
Replied by claes on topic OPC client
Hi jds,
Here is the patch. Unpack and copy opc_provider to $pwr_exe.
proviewr.se/files/patch_6.1.5-01_deb.tar.gz
/Claes
Here is the patch. Unpack and copy opc_provider to $pwr_exe.
proviewr.se/files/patch_6.1.5-01_deb.tar.gz
/Claes
Please Log in or Create an account to join the conversation.
4 days 2 hours ago #208
by jds
Replied by jds on topic OPC client
Claes,
there is some progress. The error messages are gone and, sometime it works, sometimes it won't ...
I'll do some more investigation on the messages with wireshark to see where it goes wrong.
The writing alsways works, reading, I can't get the hang of it. I'm trying to see in what sequence it works to see if it is not the server which is messing this further up.
there is some progress. The error messages are gone and, sometime it works, sometimes it won't ...
I'll do some more investigation on the messages with wireshark to see where it goes wrong.
The writing alsways works, reading, I can't get the hang of it. I'm trying to see in what sequence it works to see if it is not the server which is messing this further up.
Please Log in or Create an account to join the conversation.
Time to create page: 1.046 seconds