soap_in() missing compilation error for gSOAP

66 views Asked by At

I'm working on a existing C++ project which uses gSOAP. I have switched from std::string to custom one and trying to force gSOAP to use it instead. I have defined following file for soapcpp2:

//env.h
extern class Wlp::string;
extern typedef Wlp::string wlpstring;

Bodies of following functions were defined: soap_serialize_wlpstring(), soap_default_wlpstring(), soap_out_wlpstring(), soap_in_wlpstring().

In subprojects I use following declaration in '*.dat' files:

xsd__string = #import "wlp_string_gsoap.h" | wlpstring

I get compilation error because in one of the subprojects gSOAP generates a code from *.wsdl with wlpstring::soap_in() and wlpstring::soap_out() member function calls.

Why does gSOAP generate code that uses soap_in() member function for the string instead of calling soap_in_wlpstring() global function?

0

There are 0 answers