In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to create XML Web services with C #". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to create XML Web services with C #"!
Because a Web application is used to access XML Web services, you must provide a computer that meets the requirements for creating a Web project. For more information, see asp "> create Web projects and asp" > Visual Studio .NET Software requirements. To create a XML Web services project in C # on the same computer as the Web server, you also need to have sufficient permissions.
Create XML Web services:asp with the following C #: create XML Web services asp with Visual Basic or Visual C# > walkthrough: create XML Web services asp with ATL Server > walkthrough: create XML Web services with C++ hosting extension create XML Web services client project in this walkthrough, you will create a simple Web application The application will access the TempConvert1 XML Web services (this is the name given to asp "> Walkthrough: create the XML Web services created in XML Web services using Visual Basic or Visual C#).
Note that to access different implementations of the temperature conversion XML Web services, simply replace the name TempConvert1 that appears with the corresponding name throughout the walkthrough.
Create an ASP.NET Web application
On the File menu, point to New, and then click Project to open the New Project dialog box.
Expand the Visual Basic projects or Visual C# projects folder.
Click the ASP.NET Web Application icon.
Enter the address of the Web server where you want to develop the Web application, and specify TempConvertClient1 as the directory name.
Note that for some project types, the name text box is not available because the project name is set when you specify the location. For example, the Web application and XML Web services are located on the Web server, and their names are exported from the virtual directory specified on that server.
Note that you are developing Web applications on the development server. By default, the development server is the local computer. Typically, you develop and build the project on the development server, and then use the deployment project to deploy it to another server (the deployment server) that hosts the Web application. However, if you develop directly on the server that will host the Web application, the development server is the same as the deployment server.
Click OK to create the project.
From the Web forms tab of the Toolbox, drag text boxes, labels, and buttons onto the design surface of WebForm1.aspx, and then arrange them as you like.
Right-click the button you added, Button1, and then click Properties on the shortcut menu. In the Properties window, set the Text property to Convert. Right-click the label you added, Label1, and then click Properties on the shortcut menu. In the Properties window, clear the Text property to make this tag blank.
Adding a Web reference XML Web services discovery is the process by which the client locates the XML Web services and obtains its service description. The XML Web services discovery process in Visual Studio involves questioning the Web site according to a predetermined algorithm. The purpose of this process is to locate the service description, which is an XML document using Web Services description language (WSDL). For more information, see asp "> XML Web services discovery.
The service description describes which services are available and how to interact with them. You cannot interact with XML Web services programmatically without a service description. For more information, see the asp "> XML Web services description.
The application must have a way to communicate with XML Web services and find the service at run time. Adding a Web reference to XML Web services to the project does this by generating a proxy class that interfaces with XML Web services and provides a local representation of XML Web services. For more information, see asp "> Web references and asp" > generate XML Web services agents.
At this point, I believe you have a deeper understanding of "how to create XML Web services with C#". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.