Sample code posted on MSDN class documentation is a code snippet that shows
you how to use that particular class.
You should create a class first and then have a method which will have this
code. You cannot expect it to just run without having a class and method
definition.
Regards,
Pandurang

Signature
blog: www.thinkingMS.com/pandurang
> the sample code in msdn is not working, i am getting error :
> http://msdn2.microsoft.com/en-us/library/system.web.services.description.port(VS
.80).aspx
> Error description:
> Invalid token '=' in class, struct, or interface member declaration
>
> thanks