简体   繁体   中英

How to send XML Data as Request using XML Web Service

I need to send XML data to the webservice running on the host server. This webservice provides an RPC/DCE interface with a single method “XmlTransaction” that takes two parameters: a Transaction Control XML document and a Request XML document. The result is a Response XML document

The 'Transaction' method accepts string parameter.

Transaction(string Request);

The data reside in XML file which is test.xml.

xml version="1.0" encoding="utf-8"

TTC

MSG >This is a test MSG

TTC

How can i send data which is in xml file to the webservice and get the response.

Any help would be much appreciated.

Cheers, Imran Khan

如果您使用的是.NET,那么我将首先尝试使用SVCUTIL.EXE或WSDL.EXE针对它们的服务接口生成代理类。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM