Is there a way to retrieving parameter names and values passed to a web method from Request object? I've read somewhere that you need extra code to access the soap body. Any known workarounds to be able to see the soap body from Application_BeginRequest? Thanks!
views:
20answers:
1
+1
A:
ASMX web services do not use the full ASP.NET pipeline. I don't believe that these two events even fire for a web service.
To access the SOAP data stream, you want to implement a SoapExtension.
Of course, I should also take this opportunity to remind readers that Microsoft now considers ASMX web services to be a "legacy technology". They suggest that all new web service development should use WCF.
John Saunders
2010-06-16 22:28:48
Ash
2010-06-17 14:19:24
@Ash: I'm glad the events fire, but there's no place to get the body from. How would you get the HTTP request body of a "normal" HTTP request in a "normal" ASP.NET application?
John Saunders
2010-06-17 14:37:52
After alot of researching, the only way possible was to write my own SoapExtension class to get to the soap xml message
Ash
2010-06-18 20:49:49