Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Donald DUCK : YOU ARE FIRED!!!
  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

  • 3 weeks later...
Posted
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?
Donald DUCK : YOU ARE FIRED!!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...