all groups > dotnet xml > january 2005 >
You're in the

dotnet xml

group:

SOAP message to XML String


SOAP message to XML String niftyhawk NO[at]SPAM gmail.com
1/27/2005 12:32:33 PM
dotnet xml:
Hi All,

I have a web service hosted on my server. When the web service is
invoked a SOAP request is generated on my server. I would like to store
the SOAP message as XML String, so I can perform various validations on
each of the XML Tags. How do I acquire this in C# ?

Thanks,
-Nifty
RE: SOAP message to XML String Christoph Schittko [MVP]
1/31/2005 12:11:06 PM
Nifty,

You can intercept the incoming stream by registering a SoapExtension for
your web service. Take a look at [0] for an article on how to add a
SoapExtension that validates SOAP request bodies against XML schemas.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

[0]
http://msdn.microsoft.com/msdnmag/issues/03/07/xmlschemavalidation/default.aspx

[quoted text, click to view]
AddThis Social Bookmark Button