Hi Claes,
The current opc_msg.h file indicates code generation on 2007-03-15 via gSoap release 1.29d. An apt-get install gsoap loads 2013 version 2.8.16. The latest source version from SourceForge is gsoap_2.8.36. For now, gsoap version 2.8.16 is used to generate new .cpp code under folder ../opc/lib/opc/src/. A single warning was reported. Below is a soapcpp2 code generation session:
pwrp@redcat:~/Downloads/pwrsrc_5.4.0-1/opc/lib/opc/src$ soapcpp2 -j opc_msg.h
** The gSOAP code generator for C and C++, soapcpp2 release 2.8.16
** Copyright (C) 2000-2013, Robert van Engelen, Genivia Inc.
** All Rights Reserved. This product is provided "as is", without any warranty.
** The soapcpp2 tool is released under one of the following licenses:
** GPL or the commercial license by Genivia Inc.
opc_msg.h(433): *WARNING*: identifier 's0__interfaceVersion__XML_USCOREDA_USCOREVersion_USCORE1_USCORE0' starts with or embeds 'XML' character sequence exclusively reserved for the XML standard (for enum constants: please ignore this warning)
Saving soapStub.h annotated copy of the source input
Saving soapH.h interface declarations
Using s0 service name: Service
Using s0 service style: document
Using s0 service encoding: literal
Using s0 service location: http://localhost:80
Using s0 schema namespace:
opcfoundation.org/webservices/XMLDA/1.0/
Saving soapServiceProxy.h client proxy class
Saving soapServiceProxy.cpp client proxy class
Saving soapServiceService.h service class
Saving soapServiceService.cpp service class
Saving Service.GetStatus.req.xml sample SOAP/XML request
Saving Service.GetStatus.res.xml sample SOAP/XML response
Saving Service.Read.req.xml sample SOAP/XML request
Saving Service.Read.res.xml sample SOAP/XML response
Saving Service.Write.req.xml sample SOAP/XML request
Saving Service.Write.res.xml sample SOAP/XML response
Saving Service.Subscribe.req.xml sample SOAP/XML request
Saving Service.Subscribe.res.xml sample SOAP/XML response
Saving Service.SubscriptionPolledRefresh.req.xml sample SOAP/XML request
Saving Service.SubscriptionPolledRefresh.res.xml sample SOAP/XML response
Saving Service.SubscriptionCancel.req.xml sample SOAP/XML request
Saving Service.SubscriptionCancel.res.xml sample SOAP/XML response
Saving Service.Browse.req.xml sample SOAP/XML request
Saving Service.Browse.res.xml sample SOAP/XML response
Saving Service.GetProperties.req.xml sample SOAP/XML request
Saving Service.GetProperties.res.xml sample SOAP/XML response
Saving Service.nsmap namespace mapping table
Saving soapC.cpp serializers
Compilation successful (1 warning)
The new gSoap file names are slightly truncated compared to the originals and there are many more files generated. Interestingly, the overall gsoap structure is more modular and intuitive, where every XML transaction is separated into individual XML files. For example, Service.Subscribe.req.xml is exactly as expected.
Following the Proview guidelines, I successfully compiled a fresh source version of pwrsrc_5.4.0-1 using pwre build_all_modules. Once the opc folder is updated with new gSoap code, an error is encountered, as follows:
pwre build_all_modules
-- Build all
--
-- Environment : x540x86
-- Module.........: opc
-- Source root....: /home/pwrp/Downloads/pwrsrc_5.4.0-1/src
-- Build root.....: /home/pwrp/pwr/x5-4-0/rls_dbg
-- Build type.....: dbg
-- OS.............: linux
-- Hardware.......: x86_64
-- Description....: New_gSoap_Compile
/home/pwrp/Downloads/pwrsrc_5.4.0-1/opc/lib/opc/src/.os_linux/.hw_x86_64
make: *** No rule to make target `../../stdsoap2.cpp', needed by `/home/pwrp/pwr/x5-4-0/rls_dbg/os_linux/hw_x86_64/bld/lib/opc/stdsoap2.o'. Stop.
himBH
At this point, I'm not sure whether the makefile or special.mk file requires modification due to wholesale changes in the gsoap code and / or filenames? Any help you may offer is greatly appreciated.
Regards,
Ron