microkarl Posted July 29, 2011 Posted July 29, 2011 All, I have this SOAP web service, the way I do it is generated a WSDL proxy class based on the WSDL file (using the wsdl tool from Microsoft). Now, I want to also have the ability to log the ENTIRE XML packets, both outbound and inbound. I know that there's a class called SOAPExtension to overwrite. But for ppl like me using the WSDL proxy class, how to we even hook into the SOAPExtension class since that proxy class is supposed to be make the call...? Can anyone help? Regards, Kyle Quote Donald DUCK : YOU ARE FIRED!!!
Administrators PlausiblyDamp Posted July 30, 2011 Administrators Posted July 30, 2011 The msdn link http://msdn.microsoft.com/en-us/library/system.web.services.protocols.soapextension.aspx gives you pretty much what you are after a a sample. You would need to open up the wsdl.exe generated proxy class and then add the attribute from the above sample to the generated proxy class. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
microkarl Posted August 18, 2011 Author Posted August 18, 2011 Thanks for the response. I have tried it and it works!! Now, I have a second question on this. is there an easy way to add a delegate/event on this class so other classes can catch it? Quote Donald DUCK : YOU ARE FIRED!!!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.