VS2013 Creating and invoking Web services

Source: Internet
Author: User
Tags iis administration

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.