Java教程

soap协议格式

本文主要是介绍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");

这篇关于soap协议格式的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!