I want to manipulate the soapbody before sending it. I have inherited SoapExtension in myExtension class. But, when i see the soapbody, some of the nodes were missing.
Code snippet:
public override void ProcessMessage(SoapMessage message) { StreamReader readStr; StreamWriter writeStr; string 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();
. . . .
Can anybody tell me the reason why they are missing ....
Thanks in advance, Suresh