gsoap怎么发送多条数据?
class SOAP_CMAC __ns1__response_sequence
{
public:
char *name; /* required element of type xsd:string */
public:
virtual int soap_type() const { return 12; } /* = unique id SOAP_TYPE___ns1__response_sequence */
virtual void soap_default(struct soap*);
virtual void soap_serialize(struct soap*) const;
virtual int soap_put(struct soap*, const char*, const char*) const;
virtual int soap_out(struct soap*, const char*, int, const char*) const;
virtual void *soap_get(struct soap*, const char*, const char*);
virtual void *soap_in(struct soap*, const char*, const char*);
__ns1__response_sequence(): name(NULL) { __ns1__response_sequence::soap_default(NULL); }
virtual ~__ns1__response_sequence() { }
};
#endif
#ifndef SOAP_TYPE__ns1__response
#define SOAP_TYPE__ns1__response (8)
/* ns1:response */
class SOAP_CMAC _ns1__response
{
public:
int __size_response_sequence; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* sequence of elements <-response-sequence> */
__ns1__response_sequence *__response_sequence;
char *no; /* optional attribute */
struct soap *soap; /* transient */
public:
virtual int soap_type() const { return 8; } /* = unique id SOAP_TYPE__ns1__response */
virtual void soap_default(struct soap*);
virtual void soap_serialize(struct soap*) const;
virtual int soap_put(struct soap*, const char*, const char*) const;
virtual int soap_out(struct soap*, const char*, int, const char*) const;
virtual void *soap_get(struct soap*, const char*, const char*);
virtual void *soap_in(struct soap*, const char*, const char*);
_ns1__response(): __response_sequence(NULL), no(NULL), soap(NULL) { _ns1__response::soap_default(NULL); }
virtual ~_ns1__response() { }
};
{
public:
char *name; /* required element of type xsd:string */
public:
virtual int soap_type() const { return 12; } /* = unique id SOAP_TYPE___ns1__response_sequence */
virtual void soap_default(struct soap*);
virtual void soap_serialize(struct soap*) const;
virtual int soap_put(struct soap*, const char*, const char*) const;
virtual int soap_out(struct soap*, const char*, int, const char*) const;
virtual void *soap_get(struct soap*, const char*, const char*);
virtual void *soap_in(struct soap*, const char*, const char*);
__ns1__response_sequence(): name(NULL) { __ns1__response_sequence::soap_default(NULL); }
virtual ~__ns1__response_sequence() { }
};
#endif
#ifndef SOAP_TYPE__ns1__response
#define SOAP_TYPE__ns1__response (8)
/* ns1:response */
class SOAP_CMAC _ns1__response
{
public:
int __size_response_sequence; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* sequence of elements <-response-sequence> */
__ns1__response_sequence *__response_sequence;
char *no; /* optional attribute */
struct soap *soap; /* transient */
public:
virtual int soap_type() const { return 8; } /* = unique id SOAP_TYPE__ns1__response */
virtual void soap_default(struct soap*);
virtual void soap_serialize(struct soap*) const;
virtual int soap_put(struct soap*, const char*, const char*) const;
virtual int soap_out(struct soap*, const char*, int, const char*) const;
virtual void *soap_get(struct soap*, const char*, const char*);
virtual void *soap_in(struct soap*, const char*, const char*);
_ns1__response(): __response_sequence(NULL), no(NULL), soap(NULL) { _ns1__response::soap_default(NULL); }
virtual ~_ns1__response() { }
};
#endif
以上为自动生成的代码,怎样能够给_ns1__response中的__response_sequence对象赋值?需要用到的接口是什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个好像是底层用的数据,你要找到你的soap接口映射的文件,找到需要调用的接口就可以了