When it comes to Web services, we have two main ways to create and invoke it, one is Java-based Web services, mainly Jax, and the other is the way of ASP. In contrast, I prefer the latter implementation, so the introduction of visual WebService tutorial for Studio.
First step: Create a project first
Step Two: Select the Web Project under Visual C #, based on the. NET4.5
Step three: Create a service method
Fourth Step: Publish this project
Fifth Step: Configure Publishing options
Sixth step: Click Finish after the release options configuration is complete
Seventh Step: Configure IIS, the average person's computer is not preconfigured this, so we have to strictly follow the requirements to
Eighth step: Find the path as above
Nineth Step: IIS configuration Options
Tenth step: Open Administrative Tools
11th Step: Open IIS Administration Tools
12th step: Add a new station
12th Step: Edit Permissions
13th Step: Note here to add a IIS_IUSRS user group, and set the permissions to Full Control
14th Step: Open the browser, enter localhost, display the following interface to illustrate your configuration success
15th Step: Enter the following URL, note that the previous one is the IP selected when the new station was added, get the following interface
16th Step: Open one of the services
17th Step: Build a Test project
18th Step: Enter the service address
19th step: Calling the Web service, writing the test code
20th step: Change the way the project is validated, anonymous authentication and Windows authentication are all open
21st Step: Configure the Project App. Config file, where the main change is 1) security mode, 2) end point behaviorconfiguration, 3) behaviors
22nd step: The results show
Tip: If your computer is a. NET reload of IIS, you will have to register ASP.
VS2013 Creating and invoking Web services