Using gsoap, I have created a client for a soap server.
In wsdl from which I created my sources there is a type with an element of type NotificationMessage as defined in wsnt.
Is there any way to convert it to a custom object?
I need something like following:
/* get response */
_wsnt__NotificationMessageHolderType_Message message = response.Message;
if (message is _tt__Message)
{
_tt__Message m = message as _tt__Message;
/* do something with m */
} else if (message is std::string) {
std::string str = message as std::string;
/* do something with str */
} else {
Warning("Unrecognized type");
}
Any help would be appreciated!