This might sound like a silly question, but when I search for webservices, I get no information about how to create them in a windows forms application.
The only result is how to create and expose them by creating an .aspx page.
So my questions is: Can you create and expose webservices within a windows forms application or are they somehow tied in with .asp pages?
Thanks!
later edit: Is there an example of how to create a webservice in a .cs file and not in a .aspx file?
I would like to say that a WebService is a service interface into your application, not the application itself.
For exposing a WebService in another hosting enviornment than IIS (where your ASP.Net pages are hosted) you can use the following;
If you are using the WCF toolkit from Microsoft, this means; Create a ‘ServiceHost’ (actual class name) that can host your webservice implementation. This can be done in any application (ASP.Net pages, Winform, NT Service and even a console application).
Hope this helps,