Home > front end >  How to initialize gSOAP xsd__base64Binary?
How to initialize gSOAP xsd__base64Binary?

Time:03-05

 
I use c + +, I am writing the client to upload pictures, but I don't know how to upload xsd__base64Binary, beg god give directions!!!!!!

CodePudding user response:

What you said is to specify the xsi: type="XSD: base64Binary" type of data??

CodePudding user response:

 class SOAP_CMAC xsd__base64Binary {
Public:
Unsigned char * __ptr;
Int __size;
///Optional element 'id' of the XSD type 'XSD: string'
Char * id;
///Optional element 'type' of the XSD type 'XSD: string'
Char * type;
///Optional element 'options' of the XSD type' XSD: string '
Char * options;
Public:
///Return unique type id SOAP_TYPE_xsd__base64Binary
Virtual long soap_type (void) const {return SOAP_TYPE_xsd__base64Binary; }
///(Re) set members to default values
Virtual void soap_default (struct soap *);
1.1/1.2///Serialize the object to prepare for the SOAP encoded output (or with SOAP_XML_GRAPH) by analyzing its structures (cyclic)
Virtual void soap_serialize (struct soap *) const;
///the Output object in XML, compliant with the SOAP 1.1 encoding style, return the error code or SOAP_OK
Virtual int soap_put (struct soap *, const char * tag, const char * type) const;
///the Output object in XML, with the tag and optional id attribute and xsi: type, return the error code or SOAP_OK
Virtual int soap_out (struct soap *, const char * tag, int id, const char * type) const;
///Get the object from XML, compliant with the SOAP 1.1 encoding style, the return pointer to the object or NULL on error
Virtual void * soap_get (struct soap *, const char * tag, const char * type);
///Get the object from XML, with matching tag and type (NULL matches any tag and type), the return pointer to the object or NULL on error
Virtual void * soap_in (struct soap *, const char * tag, const char * type);
///Return a new object of type xsd__base64Binary, default initialized and not managed by a soap context
Virtual xsd__base64Binary * soap_alloc (void) const {return SOAP_NEW_UNMANAGED (xsd__base64Binary); }
Public:
///Constructor with initializations
Xsd__base64Binary () : __ptr (), __size (), id (), the type (), the options () {}
Virtual ~ xsd__base64Binary () {}
///Friend allocator, informs by soap_new_xsd__base64Binary (struct soap *, int)
Friend SOAP_FMAC1 xsd__base64Binary * SOAP_FMAC2 soap_instantiate_xsd__base64Binary (struct soap *, int, const char *, const char *, size_t *);
};

The unsigned char * __ptr; Int __size; Char * id; Char * type; Char * options; How to initialize, what to assign a value of type?

CodePudding user response:

I am a new initialization:
Unsigned char seed [8]={0 x01, 0 x02, 0 x03, 0 x04, 0 x05, 0 x06, 0 x07, 0 x08};
Myseed=new xsd__base64Binary;
Myseed - & gt; __ptr=seed;
Myseed - & gt; __size=8;

CodePudding user response:

It took me only __ptr and __size
  • Related