New and Modified Files in the AFS Solution Site

New and Modified Files in the AFS Solution Site

The AFS Solution Site is a modified version of the Retail Solution Site that shipped with Commerce Server 2000. A small percentage of the existing files in the Retail Solution Site were modified for the AFS Solution Site, and a similar number of new files were added. This section reviews each of these files, discusses their purpose, and where appropriate, discusses their potential for reuse in any remote shopping Web site.

_additem.asp (modified)
This page is used to add an item to the shopping basket and then logs the action as a Commerce event.

The routine Main in this page was modified for the AFS Solution Site.

_delall.asp (modified)
This page is used to delete all of the items from the shopping basket.

The routine Main in this page was modified for the AFS Solution Site.

_delitem.asp (modified)
This page is used to delete an item from the shopping basket and then logs the action as a Commerce event.

The routine Main in this page was modified for the AFS Solution Site.

_editqty.asp (modified)
This page is used to change the quantity of an item in the shopping basket.

The routine Main in this page was modified for the AFS Solution Site.

_recvpo.asp (modified)
This page is used to receive a purchase order from BizTalk Server (performing AFS processing), transform the data into a Dictionary object, add it to the order group, run the pipeline\recvpo.pcf pipeline and, on validation, save the new order.

The routines OnTransactionAbort and VerifyOrganization in this page were added for the AFS Solution Site.

The routines Main and RunOrderPipeline in this page were modified for the AFS Solution Site.

CS2K_PO.xml (new)
This file defines the schema for Commerce Server Order XML version 1.0.

Suppliers will probably find this file to be useful for Web sites other than the AFS Solution Site.

cXML1.1_PO_to_cXML1.1_POR.xsl (new)
This file defines the XSL transformation for creating a cXML 1.1 purchase order response (POR) out of a cXML 1.1 purchase order.

Suppliers will probably find this file to be useful for Web sites other than the AFS Solution Site.

cXML1.2_PO_to_cXML1.2_POR.xsl (new)
This file defines the XSL transformation for creating a cXML 1.2 purchase order response (POR) out of a cXML 1.2 purchase order.

Suppliers will probably find this file to be useful for Web sites other than the AFS Solution Site.

FormPostRemoteBasket.asp (new)
This page is used to build and post the protocol-specific XML document that terminates a remote shopping session.

This new page includes the routines CheckBasket, CloseSession, errorHandler, htmRenderBasketWarnings, InitializeBasketPage, and Main.

With sufficient design planning, suppliers may find many of the routines in this file to be useful for Web sites other than the AFS Solution Site.

global.asa (modified)
This file is used to create and initialize global objects and variables and place them in Application scope.
InspectBasket.asp (new)
This page is used to render the read-only basket page used for cXML-based remote shopping sessions when the operation is "Inspect."

This new page includes the routines CheckBasket, CreatePOIndexes, htmRenderBasket, htmRenderBasketWarnings, htmRenderCheckoutButton, htmRenderDiscountMessageGroup, htmRenderDiscountMessages, htmRenderDiscountsApplied, htmRenderPredictions, InitializeBasketPage, Main, PredictedPropToHREF, and RenderBasketPage.

With sufficient design planning, suppliers may find many of the routines in this file to be useful for Web sites other than the AFS Solution Site.

InspectProduct.asp (new)
This page is used to render the read-only product page used for cXML-based remote shopping sessions when the operation is "Inspect."

This new page includes the routines htmRenderBuiltInProperties, htmRenderUserDefinedProductProperties, htmRenderVariantsList, listGetVariantPropertiesToShow, Main, PeekField, and sGetPropertyDisplayName.

With sufficient design planning, suppliers may find many of the routines in this file to be useful for Web sites other than the AFS Solution Site.

newaddr.asp (modified)
This page is used to add, edit, and delete address book addresses.

This page now also includes the page include\const.asp.

OCIAccept.asp (new)
This page is used to accept initiation of OCI-based remote shopping sessions.

This new page includes the routines Main, ShowRemoteBasketError, and ValidateOCIFormFields.

With sufficient design planning, suppliers may find many of the routines in this file to be useful for Web sites other than the AFS Solution Site.

opt-out.asp (modified)
This page is used to add the user to the opt-out list of a direct mail campaign.

The routine Main in this page was modified for the AFS Solution Site.

pipeline\recvpo.pcf (modified)
This pipeline configuration file is used to configure the Order Processing pipeline (OPP) that enables the Web site to receive orders using AFS.

A Scriptor pipeline component was added to the pipeline to compute the proper subtotal for the order.

product.asp (modified)
This page is used to display the details for a given product.

The routine Main in this page was modified for the AFS Solution Site.

punchout.asp (new)
This page is used to accept initiation of cXML-based remote shopping sessions.

This new page includes the routines AddPunchoutItemsToRemoteBasket, GetCXMLVersion, GetItemsPresentInRequest, Main, SendPunchoutSetupResponse, and ValidatePunchoutRequest.

With sufficient design planning, suppliers may find many of the routines in this file to be useful for Web sites other than the AFS Solution Site.

rc.xml (modified)
This file is used to define localizable string constants.

A number of new, localizable strings were added, and some existing strings were modified for the AFS Solution Site.

ReceivePO.asp (new)
This page is used to accept xCBL and cXML purchase order documents from trading partners to begin AFS purchase order reception processing.

The routine Main in this page was modified for the AFS Solution Site.

RemoteBasket.asp (new)
This page is used to render the read/write basket page used for xCBL-based remote shopping sessions and for cXML-based remote shopping sessions when the operation is either "create" or "edit."

This new page includes the routines CheckBasket, CreatePOIndexes, htmRenderBasket, htmRenderBasketWarnings, htmRenderCheckoutButton, htmRenderDiscountMessageGroup, htmRenderDiscountMessages, htmRenderDiscountsApplied, htmRenderPredictions, InitializeBasketPage, Main, PredictedPropToHREF, and RenderBasketPage.

With sufficient design planning, suppliers may find many of the routines in this file to be useful for Web sites other than the AFS Solution Site.

RemoteBasketNav.asp (new)
This page is used to determine the proper page to render during remote shopping sessions.

This new page includes the routines GetRemoteBasketSessionStartPage, GetRemoteBasketSessionUserID, Main, PrepareTimeOutResponse, and SetRemoteBasketSessionUserID.

With sufficient design planning, suppliers may find many of the routines in this file to be useful for Web sites other than the AFS Solution Site.

services\include\render_common.asp (modified)
This page contains common rendering functions.

The routine sReConstructPageURL in this page was modified for the AFS Solution Site.

template\layout1.asp (modified)
This page provides the HTML display layout for the page content along with an advertising banner, navigation bar, menu bar, discount banner, and footer.

A META REFRESH element was added to cancel the remote shopping session whenever the customer's Auth Ticket times out.

template\menu.asp (modified)
This file is used to prepare and display the menu bar.

The routines GetURLToCancelRBSession and htmRenderRBUserLogoffSection in this page were added for the AFS Solution Site.

template\navbar.inc (modified)
This file is included by the file layout1.asp to display the navigation bar.

The routine RenderNavbar was modified for the AFS Solution Site such that HTML fragment caching is not used for remote shopping sessions and, when remote shopping, the basket link leads to the remote shopping basket instead of the normal basket.

unpack.vbs (modified)
This Microsoft Visual Basic script file is used when a site is unpacked using Commerce Server Site Packager. It sets up the error\500error.asp page to be a custom error handler for the site, as well as certain App Default Config resource properties.

This file was changed such that the names and virtual roots for the AFS Solution Site and its associated Business Desk are different than the names and virtual roots used for the Retail Solution Site.

xCBL3.0_PO_to_xCBL3.0_POR.xsl (new)
This file defines the XSL transformation for creating an xCBL 3.0 purchase order response (POR) out of an xCBL 3.0 purchase order.

Suppliers will probably find this file to be useful for Web sites other than the AFS Solution Site.

error\500error.asp (modified)
This page is used to display messages for any 500 error that occurs during page processing.

The routine RenderPostData in this page was modified for the AFS Solution Site.

include\afs_common_lib.asp (new)
This page contains general-purpose routines for use with AFS.

This new page includes the routine ValidateAndGetTradingPartnerID.

With sufficient design planning, suppliers may find the routine in this file to be useful for Web sites other than the AFS Solution Site.

include\afs_error_lib.asp (new)
This page contains error-handling routines for use with AFS.

This new page includes the routine WriteAFSLogMesg.

include\afs_PO_Const.asp (new)
This page contains constants used for purchase order processing within AFS.

This page defines constants that are specific to the purchase order reception functionality within the AFS Solution Site.

include\afs_PO_util.asp (new)
This page contains routines for processing purchase orders within AFS.

This new page includes the routines AddProductName, CompareMsgId, CreateOrderResponseDetailRecord, doPurchaseOrderResponse, EncodeString, GetISO8601TimeStampEx, GetSiteConfigField, GetURL, PostToSite, ReadPOMsgAck, sFormatString, sGetComputerName, sGetMsg, TransformPO, ValidateOrderQuantity, ValidateSharedSecret, WriteEventLog, WritePO2MSMQ, WriteToFile, xCBLOrderResponse, and ZeroPrefix.

With sufficient design planning, suppliers may find many of the routines in this file to be useful for Web sites other than the AFS Solution Site.

include\const.asp (modified)
This page provides a location for constants to be defined when extending the Solution Site, and contains a number of AFS-specific constants.

This file now contains a small number of constants that are specific to AFS.

include\global_internationalization_lib.asp (modified)
This page contains functions used to retrieve country/region name and code lists, and to work with alternate currencies.

This file is showing up as modified in comparison tools like WinDiff, although the difference is not visible.

include\global_main_lib.asp (modified)
This page contains the routine Main that is called by the global.asa file to create, initialize, and place in Application scope many of the objects supplied by Commerce Server.

The routine Main in this page was modified for the AFS Solution Site such that it also sets an application variable named TimeZoneDiff by calling the routine js_GetTimeZoneDiff.

include\global_siteconfig_lib.asp (modified)
This page contains routines used to retrieve site configuration information, join a Web farm, and build the dictPages data structure.

The routines GetSecurePagesDictionary and iGetWebServerPort in this page were modified for the AFS Solution Site.

include\global_timezone_lib.asp (new)
This page contains routines related to time zone processing for use with AFS.

The Microsoft JScript routine js_GetTimeZoneDiff in this page was added for the AFS Solution Site.

With sufficient design planning, suppliers may find the routine in this file to be useful for Web sites other than the AFS Solution Site.

include\setupenv.asp (modified)
This page is used to set up framework variables, retrieve information about the user, and call the routine Main in the file that has included it.

The routines ClearRemoteBasketOrderForms and RedirectToBasket in this page were added for the AFS Solution Site.

include\std_profile_lib.asp (modified)
This page contains routines used to create a new profile, retrieve and update a current profile, check whether the user has a profile, and check whether profiling is enabled on the site.

The routine EnsureUserProfile in this page was modified for the AFS Solution Site such that it allows remote shopping customers to not have a profile, even though they are authenticated.

include\std_remotebasket_lib.asp (new)
This page contains routines related to remote shopping for use with AFS.

This new page includes the routines ConvertToDecimalCurrency, CreateNewUserSession, CreateRemoteBasket, doSplitString, GencXMLPayloadHeader, GenerateGUID, GenPunchoutOrderHeader, GenPunchoutOrderItems, Get_cXMLItemTemplate, Get_cXMLOrderMesgTemplate, Get_cXMLSupplierUserAgent, GetISO8601TimeStamp, GetRemoteBasket, GetRemoteBasketOrderTotal, GetSiteLocaleLanguage, HTMLEncodeAndEscapeString, htmRenderRemoteBasketCheckoutForm, htmRenderRemoteBasketSubmitForm, InitializeRemoteBasket, RenderOCISubmitFormContent, RenderPunchoutSubmitFormContent, RenderRBCheckoutErrMesg, RenderRemoteBasketFormContent, SignOffRemoteBasketSession, and ZeroPrefix.

With sufficient design planning, suppliers may find many of the routines in this file to be useful for Web sites other than the AFS Solution Site.

include\std_xml_lib.asp (new)
This page contains routines used for XML manipulation within AFS.

This new page includes the routines GetRootBodyPartFromMIME, ParseRequestForm, SafeGetAttributeText, SafeSelectSingleNodeAttributeText, and SafeSelectSingleNodeText.

With sufficient design planning, suppliers may find many of the routines in this file to be useful for Web sites other than the AFS Solution Site.

Previous  Next


Microsoft Corporation - Microsoft. Net Server Solutions for the Enterprise
Microsoft .NET Server Solutions for the Enterprise
ISBN: 0735615691
EAN: 2147483647
Year: 2002
Pages: 483

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net