redirect applications to different XML Web services during installation [to Microsoft China]

Source: Internet
Author: User
Tags web services
Steve Hoag
Visual Studio Team
Microsoft Corporation
November 2001
Summary: This article describes how to create a WEB application in Visual basic®.net that redirects the application to different XML Web services by using the URL Behavior property, Installer class, and Web Installer project.
Introduction to the directory set URL Behavior to Dynamic Add Installer class Add Installer Project Add a Installer class as a custom action Add User Interface dialog box build and install summary introduction
When developing applications that target XML Web services, you should typically target XML Web services that are already installed on the Web server. This is a guideline, but sometimes you need to target other XML WEB services when deploying the product version of your application. For example, you may have targeted the beta version of XML Web services on the development server, but the completed application needs to target the installed version of XML Web services on another server. You may also want the person who installed the application to select the version of XML Web services during installation, such as a version on the Intranet or a version that can be accessed from outside the firewall.
This article describes how to create a Web application that can be redirected to a different XML Web services. The creation process includes specifying the URL Behavior property to find XML Web services at run time.
Add an installation component that can perform a custom action at the end of the installation.
Use the installer project to create an installer for your application that contains a custom user interface.
The first step is to create a Web application that contains a Web reference to an XML Web services. For more information about creating WEB applications, see Walkthrough:creating an XML Web Services Using Visual Basic or Visual C # in the Visual studio®.net documentation ( English). Set the URL Behavior to Dynamic
In order to find an XML Web service at run time, the application stores the URL of the XML Web services. The URL Behavior property of a Web reference (for XML Web services) determines where the URL is stored. If the URL Behavior property is set to Static (the default), the URL will be hard-coded as part of the Web reference. If the URL Behavior property is set to Dynamic, the entry for the specified URL will be added to the appSettings segment of the application's Web.config file.

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.