gSoap 问题

sea_sharka_17 2009-02-11 11:14:46
1. 使用gSoap提供的WsdlToCode.exe生成了相关文件后,文件中的函数如何使用? 例如:soap_get_xsd__base64Binary
2. 我想用gSoap做一个上传文件的程序,服务端已经写好了,文件也已经使用WsdlToCode.exe进行了转换,现在需要使用生成的代码做一个客户端,但生成的接口函数中使用到了xsd__base64Binary,请问如何通过gSoap把VC中的字符串转换成这个类型?

接口函数
int soap_call___ns1__SaveFile(
struct soap *soap,
NULL, // char *endpoint = NULL selects default endpoint for this operation
NULL, // char *action = NULL selects default action for this operation
// request parameters:
_ns1__SaveFile* ns1__SaveFile,
// response parameters:
_ns1__SaveFileResponse* ns1__SaveFileResponse
);


对象类型
class _ns1__SaveFile
{ public:
/// Element binData of type xs:base64Binary.
xsd__base64Binary* binData 0; ///< Optional element.
/// Element fileName of type xs:string.
char* fileName 0; ///< Optional element.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
};
...全文
402 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
liguicheng2006 2011-05-20
  • 打赏
  • 举报
回复
大哥啊,你也写出来让大家看看啊
shouchen55 2009-08-03
  • 打赏
  • 举报
回复
敢问楼主是怎么转化的?
sea_sharka_17 2009-02-12
  • 打赏
  • 举报
回复
自己搞定了 很简单 晕

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧