很急!C++ Builder web service 如何处理定制的XML文件

Topgun504 Topgun504 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
对方提供web service “deviceChanged”接口,让我去调用。
XML格式:
请求:
<?xml version="1.0" encoding="UTF-8"?>
<request>
<Device>
<deviceId>
<resId></resId>
<physId></physId>
</deviceId >
<type></type>
<vendorId></vendorId>
<vendorDeviceType></vendorDeviceType>
<hardware></hardware>
<software></software>
<description></description>
<splitterRatio></splitterRatio>
<parentDeviceId></parentDeviceId>
<splitterPosition>
<shelfNo></shelfNo>
<moduleNo></moduleNo>
<seq></seq>
</splitterPosition>
<shelfRule></shelfRule>
<shelfDirection></shelfDirection>
</Device>
<changeType></changeType>
<changeLevel></changeLevel>
</request>

对方返回的
响应:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<result>
<isSuccess></isSuccess>
<failReason></failReason>
<remark></remark>
</result>
</response>
soap的包格式好像不是这样的啊,怎么构建这样的xml的数据包?
是不是把这个XML文档做为一个string 参数传过去吗?

很急,因为以前没有做过web service,请各位看看,该怎么做.谢谢啊
...全文
评论 5
收藏 已收藏
分享
返回顶部