我想在发送肥皂体之前对其进行操作。我在 myExtension 类中继承了 SoapExtension。但是,当我看到soapbody 时,有些节点丢失了。
代码片段:
公共覆盖 void ProcessMessage(SoapMessage 消息) { StreamReader readStr; StreamWriter writeStr; 字符串soapMsg1;
// System.Diagnostics.Debugger.Break();
XmlDocument xDoc = new XmlDocument();
// a SOAP message has 4 stages. Weare interested in .AfterSerialize
switch (message.Stage)
{
case SoapMessageStage.BeforeSerialize:
break;
case SoapMessageStage.AfterSerialize:
{
// Get the SOAP body as a string, so we can manipulate...
String soapBodyString = getXMLFromCache();
. . . .
谁能告诉我他们失踪的原因......
在此先感谢, 苏雷什