axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Lang <sl...@mcs.anl.gov>
Subject Re: <any> type support
Date Fri, 27 Feb 2004 15:41:45 GMT
> Instead of void* I suggest passing some struct like following,
> 
> struct AnyType{
>   void* _object;
>   char* _typename;
>   char* _namespace;
>   void* _functions; /* this will contain deserializer/serializer function
> etc that are used basically by the Axis engine to manipulate this kind of
> type (functions that are already generated by WSDL2Ws tool). May be this is
> not needed to provide to the skeletons and stubs*/
> }
> 
> This way the skeleton implementator can check the _typename and _namespace
> and then cast _object into its known type and use it. Ex:
> 
> AnyType* query(AnyType* object)
> {
> 	if (strcmp(object->_typename, "myType")==0)
> 	{
> 		MyType* mytype = (MyType*)object->_object;
> 		................
> 	}
> }
> 

This looks good.  How do the _functions get set in the engine/wrappers
before the deserialization happens though?  

> Thanks,
> 
> Susantha.
> 
> 
> 


Mime
View raw message