Brought from our old-site (this short note can be as old as 2007): http://salearningschool.com/displayArticle.php?table=Articles&articleID=1120&title=Creating%20and%20Consuming%20XML%20Web%20Services
- visual studio .net -> File Menu -> new project -> Visual Basic/C# projects ->ASP.Net Web Service -> The project will get created
- Some Files as created: AssemblyInfo.cs/vb: sharing and reuse in the CLR, Web.config, service1.asmx, service1.asmx.cs/vb
- Create web service methods in the asmx.vb/cs files. A sample web-service method is already there
- Now you can build the project using the Build Solution option
- You can start the application, using the start option in the debug menu
- Check other short-notes as listed in: http://www.justetc.net/knowledge/index.php?table=Articles&categoryID=24 to know different aspects of web service programming
- You can publish the web-service using the publish option in the popup menu from the solution explorer. or the publish option in the build menu
- Then you are required to change some configuration in the IIS server such as give directory browsing permission, make the virtual directory an IIS application, provide execute permission
- XML WebService Discovery Mechanism: enables a client application to locate or discover the documents that describe an XML Web Service
- You may want to create a discovery file and deploy in your web-server so that clients can know your services and make use of them.
- To create, client application for a web-service, first you have to have the permission to access, then you need to add a web-reference to that service from your application
- Create a proxy class, create an object of that proxy class, call the web service methods using this proxy object
- You may want to use serialization and deserialization while communicating with the web-services
From: http://sitestree.com/?p=3774
Categories:Misc .Net
Tags:
Post Data:2016-07-17 14:18:28
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada