这甚至有效吗?有没有更好的方式在C#中形成肥皂请求?
XmlDocument doc = new XmlDocument();
doc.InnerXml = @"<?xml version='1.0' encoding='utf-8'?><soap:Envelope
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>
<soap:Body><Authenticate xmlns='https://na.ntrsupport.com'>
<IdOwner>99999</IdOwner>
<Login>MyLogin</Login>" +
"<Pwd>myPass</Pwd>" +
"<PwdInterfaces>interfacePass</PwdInterfaces>" +
"<Platform>domain</Platform>" +
"<H>" + getMd5EncodedHash(NtrHash) + "</H>" +
"</Authenticate></soap:Body></soap:Envelope>";
我刚刚从Web服务返回一个未定义的错误...
有没有更糟糕的方式可能是一个更好的问题... – 2010-09-30 11:36:42
您是否使用Visual Studio? – Lazarus 2010-09-30 11:39:05
@Greg山毛榉 - 即使我必须upvote that ..对不起,我不是一个.NET本地人 - 但我知道这不好... ... – tpow 2010-09-30 13:32:08