Business Reference Architecture: Enterprises Chapter 5 of Consumers (B2C E-Commerce Practice): Implementation Overview

zhaozj2021-02-08  275

Business reference architecture: business to consumers

Chapter 5: Implementation Overview

Microsoft Corporation

May 2001

Abstract: "Microsoft Business Reference Architecture: Enterprise provides consumers" offers reusable and customizable components that can be used to speed up the e-commerce solution development process of large and medium-sized enterprises. This chapter outlines the knowledge required to fully understand the code, and simply introduces the components of this application.

The following chapters will deeply explain the specific aspects of the code, and the specific implementation issues encountered during the code development process.

Introduction

As in the first part of the Developer Guide (English), "Microsoft Business Reference Architecture: Enterprise provides consumers" provides reusable and customizable components, which can be used to speed up high and medium-sized enterprises. Program development process. Microsoft Business Reference Architecture: The B2C solution consists of some engineering-processed code components. Developers can use them to build the Microsoft® Windows® 2000 Server operating system and Microsoft® .NET Enterprise Server products (such as Microsoft® Commerce Server) B2C retail website for 2000 and Microsoft® SQL Server 2000).

The second part of this guide is for applications developers and all other people who want to learn to use Microsoft technology to build an e-commerce solution. This section contains the initial overview and component guidelines for this application and its components, and discusses in-depth discussion of implementations encountered during its development process.

Implement function

The consolidatedretail.com site implemented in the reference architecture application includes many of the common features in an e-commerce solution. For a complete description of application business requirements, see the first part of the Developer Guide.

Suggested background knowledge

To understand the details of the code function, the readers of this article should have the following knowledge:

ASP: Developers should learn how to use Microsoft® Visual Basic® Scripting Edition (VBScript) to create Active Server Pages (ASP). This includes understanding the core ASP object and instantiates and uses the component object model (COM) and COM components. A large number of code used by this app is an ASP code. XML: In this application, a large number of Scalable Markup Language (XML) is used as a method of transmitting data between application components. Developers should be familiar with XML, including basic syntax, architecture, and structures. Some of the code uses an XML document object model (DOM) to grammatical analysis of XML content. XSL: To understand how the user interface works, developers need to fully grasp the extensible style sheet language conversion (XSLT). Microsoft Commerce Server 2000 and its objects: Commerce Server is a complex system. Therefore, although this application and document provide some guidance information about how to use the system, developers should also refer to the Commerce Server document to familiarize the functionality and components of Commerce Server. SQL Server: Although this application uses SQL Server, most actual data inventory operation is still hidden behind the scenes, you need to perform through the abstract layer provided by the Commerce Server object. However, to truly understand the access and storage of data, developers should carefully study the tables and stored procedures maintained by Commerce Server in the background. Visual C : In order to get the best performance, this application's custom COM component is written in Microsoft® Visual C ® development system. Although it is necessary to obtain valuable information from the reference architecture and does not need to fully understand the internal working principle of the component, if you want to fully understand its working principle, C skills are required. For information on why these technologies are selected, refer to the first part of the Developer Guide.

Technical overview

The following sections briefly introduce how the reference architecture application uses each core technology.

XML in consolidatedretail.com solution

This solution is implemented by a Commerce Server 2000 site. This site uses SQL Server 2000 for data storage; manage it using Commerce Server Object Library. The site itself uses XML to represent the content of the webpage, and converts the content to Hypertext Markup Language (HTML) for web browsers using the XSL style sheet. Use an Internet Server Application Programming Interface (ISAPI) application filter to handle XML and apply the necessary XSL conversion. Using this method, the solution can be easily extended to other types of clients without having to rewrite the business logic with ASP.

Microsoft has promised to use XML as a standard for transmitting structured content in a distributed computing environment. In this case, the business reference architecture code uses XML throughout the solution. Examples of using XML include:

Generate an XML output from the PASP script, then use the XSLisapi filter to perform XSL conversion: Execution of the Solution Site Front End Function Preprocessing Active Server Pages (PASP) script uses the XSLisapi filter to generate an output of an XML format (rather than HTML format). This further separates the content and its expressions. XML generated by these PASP pages is converted via the XSL style sheet. For more information on how to use the PASP and XSLISAPI filters, see the XSLisapi Filter Documentation, which can be downloaded from the Microsoft website. Note: The custom version of the XSLisAPI filter is used in the reference architecture application code. This version cannot be downloaded from www.microsoft.com; however, the documentation of the public version (XSLisapi.dll, version 2.1) also applies to custom versions. Output XML from Business Components: Many Commerce Server 2000 objects can use ActiveX Data Objects (ADOs) or XML formats to pass record sets (for example, product lists). In a possible case, the ASP script code requests information from the business object to the XML format. Write the front end script flexible and free to use the ASP

On the Microsoft platform, for most web-based applications, the code that drives the web front end is performed by using the ASP file written in VBScript. The main reason for using ASP for web programming is that it provides flexible development. In the field of rapidly developing e-commerce, it is important to quickly change the appearance of the site or the basic front end function.

Interpretation of scripting languages ​​Execution allow programmers and designers to quickly change the function of the site without having to go through the lengthy compilation process: You only need to save the source file, that is, the program has changed. However, it should be noted that in order to achieve optimal performance and scalability, the main business processing tasks are performed by components (provided by Commerce Server).

Business Reference Architecture B2C Solution Codes Add new changes in ASP programming, using the XSLisAPI filter to isolate the generation of content. That is, the pre-processed Active Server Pages (PASP) script does not generate HTML content directly, but generates an XML output, and then converts the XML output to the correct display format by the XSL style sheet. This conversion can be performed on a server or client (if the client has this capability), thereby alleviating the working pressure of the CPU.

Commerce Server component

Commerce Server 2000 provides a very rich tool for site developers, system administrators, and business managers that can be used to develop, deploy, and manage web business applications. Like any powerful large software system, Commerce Server is strong, and the wide range will definitely let you be at a loss unless you are familiar with the system. The reference architecture provides an appropriate definition for yourself: it is a reasonable design, indicating that a full small e-commerce application shows a lot of Commerce Server objects in use. Although there is no function of Commerce Server, the reference architecture B2C code demonstrates how to implement the following features:

Set the boundary, which content and operations can be accessed by anonymous users, which can be accessed by authentication. Do not rely on the method of introducing server session correlation, keeping the user's session status; and reserves the session information when accessed accesses and through the boundaries of validation. Create a product catalog, browse the directory level, and display the details of the product through the directory. If you do not require verification, you can allow customers to collect products you want to buy (using shopping carts). Store and retrieve user configuration information, so that users do not need to re-enter this when accessible. The Commerce Server 2000 object used in the reference architecture application is listed in the chapters of this guide.

Storage procedure in the data layer

This app does not write any custom stored procedures. All stored procedures in the Commerce Data Store on SQL Server are created by Commerce Server for providing data access capabilities for many Commerce objects.

Client script for input check

The user interface of this application uses the client JavaScript code to enter verification. The function of the client script is not very complicated, and there is no major association with the core function of the application to some extent, so this guide does not introduce these scripts.

to sum up

This chapter describes the background knowledge you need to make use of this guide. In addition, components constituting the reference architecture application (consolidateDretail.com application) are summarized. The "Solution Guide" details the code component, provides a code example, and provides links to other information.

转载请注明原文地址:https://www.9cbs.com/read-3331.html

New Post(0)