我用的C++,我在寫客戶端上傳圖片,但是不曉得xsd__base64Binary 怎么上傳的,求大神指點!!!
uj5u.com熱心網友回復:
你所說的是指定xsi:type="xsd:base64Binary"型別的資料嗎??uj5u.com熱心網友回復:
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;如何初始化。該賦什么型別的值?
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/265785.html
標籤:XML/XSL
上一篇:關于重繪父頁面使其跳轉到另一個頁面的語法,請教各位,謝謝
下一篇:js制作星星閃特效
