By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,401 Members | 803 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,401 IT Pros & Developers. It's quick & easy.

Prevent WSDL.exe from extracting public methods

P: n/a
Hi All,
I have a web service derived from MarshalByRefObject (i.e. Not
WebService) that also implements the IDisposable interface. The problem I
have is with the implementation of the public Dispose method required by
IDisposable. When WSDL.exe (or 'Add Web Reference') extracts the interface
information for the web service it also publishes the Dispose method.
Can anyone tell me how to prevent the Dispose method from being published by
WSDL.exe. That is, how do I specify that a public method of a web service
should not be published.
I have tried using the [WebMethod] attribute on the public methods that I
would like published, and ommitting it from the Dispose method, but with no


Mar 23 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.