首页 > 其他 > 详细

soap协议格式

时间:2021-05-24 22:38:45      阅读:34      评论:0      收藏:0      [点我收藏+]

soapstring.Append("strXml=" + HttpRequestPostStr);
soapstring.Append("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
soapstring.Append("<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">");
soapstring.Append("<soap:Body>");
soapstring.Append("<InsertToolsCheckRecode xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\">");
soapstring.Append("<strXml name=\"strXml\">");
soapstring.Append("strXml=" + HttpRequestPostStr);
soapstring.Append("</strXml>");
soapstring.Append("</InsertToolsCheckRecode>");
soapstring.Append("</soap:Body>");
soapstring.Append("</soap:Envelope>");

Hashtable ht = new Hashtable();
ht.Add("strXml", HttpRequestPostStr);
string xmls = "http://schemas.xmlsoap.org/soap/envelope/";//xmlns命名空间
SoapHandle sh = new SoapHandle();
var xml = sh.EncodeParsToSoap(ht, xmls, "InsertToolsCheckRecode");

soap协议格式

原文:https://www.cnblogs.com/MyWPF/p/14805663.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!