Currently I convert sample code in gsoap_distribution/samples/magic into C++ client code using soapProxy .cpp and C++ server code using soapService.cpp, which are generated by "soapcpp2 -i magic.h".
I have found problems when converting some functions that require soap reference as follows: soap_new_matrix(&soap, -1); soap_print_fault_location(&soap, stderr);
In my understading, Service/Proxy Classes (generated by "soapcpp2 -i" options) inherit the struct soap. Is there some way to get the reference to struct soap from C++ Proxy/Service class object?
Thanks for your reading.
Because the proxy and service classes are inherited from the
soap
context class with option-i
for soapcpp2, you can simply pass a pointer to your proxy or service objects to these functions. For example: