Environment: WIN10 Enterprise Edition + Visio studio2010 (automatically installed,. NET 4)
The WIN10 operating system needs to install Internet Information Services, see steps, if not found, use the enterprise version of the operating system:
1. Go to "turn Windows features on or off" by accessing the programs and features in Control Panel:
2. Locate the Internet infomation Services
Application features, I have all chosen here, the specific impact of each feature, I am not very clear:
Click OK to install.
3. Open the Visio Studio 2010 development Environment, create a new project, select by diagram, and the name I created is MyWebService1:
After the project is established, add the project,
There will be an ASMX file on the right, and a default Hello World method in the. cs file:
Add a test method for yourself:
Click Start Debugging to see the effect in the VS environment, the following shows the success of the build:
Release:
After clicking Publish, the target directory will appear the published file, publish completed:
Deployment:
Open in Control Panel, administrative tools->internet infomation Services
,
To modify folder permissions for a publication:
Select the site and click Browse:
Prompt for error message:
To view the Web site configuration interface, double-click Directory Browsing:
Click Enable:
Browse the site again to see the interface content:
Click Mywebservice1.asmx to view the contents of the interface:
The URL suffix plus the WSDL can see the XML:
Success!
Pits: When you start deploying in IIS, the default Web site "New virtual directory" was selected, and the deployment was unsuccessful, and then a newly created website was deployed to the top, and later friends noticed;
Visio studio2010 developing WebService interfaces and deployment calls under WIN10