求一个 生成 SOAP 字符串的方法, 超级感谢..
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呢?