Hi Claes!
We have now gotten browsing to work with the Proview OPC client. When we add our OPC XML DA server we can see all the tags, with the correct datatype set, also the ServerStatus object is now properly populated. However, we have run into another problem regarding the Subscription of variables. The Proview OPC client does not set the field "SubscriptionPingRate" in the subscription request sent to the server. As far as we can see, this is a required attribute according to the OPC XML-DA Spec. Leaving this attribute unset, causes the server to clean all resources associated with the Proview OPC client, and this again causes the following error:
[SOAP 1.1 fault: SOAP-ENV:Server [no subcode]
"Server was unable to process request. ---> Object reference not set to an instance of an object."
Detail: [no detail]
Now, we think we found the solution in the file opc.wsdl where the default value of "SubscriptionPingRate" can be set. We modified this file by setting:
"SubscriptionPingRate" = 300000
and then ran the following commands:
wsdl2h -o opc_msg.h opc.wsdl -p
soapcpp2 opc_msg.h -I /usr/lib/gsoap/import -p opc_soap_
The problem occurs when we try to compile the OPC module using "pwre". When launching the commands:
we get a number of errors from the build of opc_soap_C.cpp, which mostly complain about the macro "SOAP_NEW" not being declared in this scope.
Are there some step we are missing, or are there any other ways to set the attribute "SubscriptionPingRate"? Any help regarding this problem would be greatly appreciated!
- Bernt