很急!C++ Builder web service 如何处理定制的XML文件
对方提供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,请各位看看,该怎么做.谢谢啊
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,请各位看看,该怎么做.谢谢啊
...全文
相关推荐
C++Builder开发用XML文件保存应用程序的配置信息
随着 XML在跨平台数据交换技术中的广泛应用, 越来越多的软件采用 XML文件作为配置文件的 形式。本文通过一个实例讲述在 C++Builder 中用 XML文件保存应用程序的配置信息的实现过程。
《C++ Builder 6 SOAP Web Service》配套光盘
《C++ Builder 6 SOAP Web Service》配套光盘
C++Builder 2007 soap/web service application
C++Builder 2007 soap/web service application
C++ Builder 简体中文版入门教程
本书从浅到深,详细全面的介绍了C++ Builder的界面窗口功能与基本程序设计的实例,对于初学者,十本值得推荐的好作品。
SOAPWeb Service 开发
C++ Builder 6环境下的SOAPWeb Service 开发


网络及通讯开发
