public string CreateSOAP(string url, string ns, string method, string[] VariableName val object[] pars)
{
//构造soap请求信息
StringBuilder soap = new StringBuilder();
soap.Append("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
soap.Append("<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ");
soap.Append("xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">");
soap.Append("<soap:Body>");
soap.Append(string.Format("<{0} xmlns=\"{1}\">", method, ns));
..... 参数怎么添呢? 根据传进来的 VariableName 是表示该方法有哪些参数名, pars 是表示变量名所对应的值
}请问怎样构造一个完整的SOAP呢?
{
//构造soap请求信息
StringBuilder soap = new StringBuilder();
soap.Append("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
soap.Append("<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ");
soap.Append("xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">");
soap.Append("<soap:Body>");
soap.Append(string.Format("<{0} xmlns=\"{1}\">", method, ns));
..... 参数怎么添呢? 根据传进来的 VariableName 是表示该方法有哪些参数名, pars 是表示变量名所对应的值
}请问怎样构造一个完整的SOAP呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货