soap协议格式

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");

上一篇:固定收益市场分析框架——HT版本


下一篇:5G时代下,打造安全高效的智慧矿山|3D选矿工艺