8,906
社区成员
发帖
与我相关
我的任务
分享
我用的C++,我在写客户端上传图片,但是不晓得xsd__base64Binary 怎么上传的,求大神指点!!!class SOAP_CMAC xsd__base64Binary {
public:
unsigned char *__ptr;
int __size;
/// Optional element 'id' of XSD type 'xsd:string'
char *id;
/// Optional element 'type' of XSD type 'xsd:string'
char *type;
/// Optional element 'options' of 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*);
/// Serialize object to prepare for SOAP 1.1/1.2 encoded output (or with SOAP_XML_GRAPH) by analyzing its (cyclic) structures
virtual void soap_serialize(struct soap*) const;
/// Output object in XML, compliant with SOAP 1.1 encoding style, return error code or SOAP_OK
virtual int soap_put(struct soap*, const char *tag, const char *type) const;
/// Output object in XML, with tag and optional id attribute and xsi:type, return error code or SOAP_OK
virtual int soap_out(struct soap*, const char *tag, int id, const char *type) const;
/// Get object from XML, compliant with SOAP 1.1 encoding style, return pointer to object or NULL on error
virtual void *soap_get(struct soap*, const char *tag, const char *type);
/// Get object from XML, with matching tag and type (NULL matches any tag and type), return pointer to 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(), type(), options() { }
virtual ~xsd__base64Binary() { }
/// Friend allocator used 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*);
};
这里的 unsigned char *__ptr; int __size; char *id; char *type; char *options;如何初始化。该赋什么类型的值?