I have a trouble using this struct in a C application.
I obtained the stub and skeleton routine from a wsdl using the gsoap aplication wsdl2.exe and then soacpp2.exe.
I have this struct:
struct ns2__Position *position;
struct ns2__DetectionZone *detectionArea;
struct ns2__MovingObject *objects;
struct ns2__Point *center;
char dummy; /* dummy member to enable compilation */
I want do this:
struct ns2__Circle DetectionArea;
Sensor.detectionArea = &DetectionArea;
but I have this compiler error (Microsoft VS2008):
"error C2440: '=' : cannot convert from 'ns2__Circle *' to 'ns2__DetectionZone *'"
and when I send this data message to my server it says::
"unable to create an instance of DetectionZone".
This becouse the server don't know what is DetectionZone, a struct circle, a struct rectangle or other.
How I can do to specify this.
Remember I develop a C application