I use a C++ app to synchronyze data between two PHP servers.
My first server is local, my C++ app call a webservice on that server to get an object to synchronyze. Then, my C++ app use another webservice to send it on my Cloud PHP server.
So my Object is a soap object defined strictly identically on my two php server.
However, for my C++ apps, these two object are not the same (or at least with a different namespace), so Y can't compile the following line:
soapErrorCode = cloudWebService.action(myLocalObject);
//C++ is waiting for an object of type myCloudObject, even if these two object have the same attributes
My soap objects and Webservice definition are defined in my C++ with help of gSoap.
I see different solution, but not sure which is the best:
- Is there a way to tell to C++ that myLocalObject and myCloudObject are the same? Note: I don't want manually modify the code generated by gsoap (too much work!).
- Is there a way to tell to gsoap that myLocalObject and myCloudObject are the same?
- Am I obliged to create fonction to convert myLocalObject to myCloudObject?
Thanks!