MOSS számos beépített funkciók. A hatálya POC, hogy integrálja Commerce Server 2007 A MOSS 2007 hogy a Portal integrált e-kereskedelmi alkalmazás
Konfigurálása MOSS 2007 használjuk a Commerce Server tagság Szolgáltató alapjául felhasználói hitelesítés
Az elsődleges feladat, hogy a központi közigazgatás és Portal oldalak kéz remegése a Commerce Server. Ez a teendő, hogy módosítja a megfelelő Web.config fájlok ezeken a helyeken. Azáltal, hogy a Commerce Server és httpModules szakaszok, A SharePoint központi felügyelet hely és a Portal webhely képes lesz, hogy megteremtse a szükséges CommerceContext objektumot. A CommerceContext objektum segítségével a Commerce Server tagság Szolgáltató kell megfelelően elindult, és lehetővé teszi Web alkatrészek és oldalakat a portálon, hogy használja a CommerceContext tárgy eléréséhez Commerce Server forrásokat, mint például a Product Catalog.
A UpmMembership Szolgáltató kiterjeszti a tagság keret által kínált ASP.Net befogadni a használata a ASP.Net Login kezelőszervek és hitelesíteni magát Commerce Server profilok.
Update the Web.config for MOSS Central Administration and in Portal site with below sections to avail Commerce Server data and services in MOSS
- Commerce Server Section Group
- Commerce Server Group
- Http Modules
- Assemblies
- Membership Provider
- Profile Section
o Determine which Web.config file is used for the SharePoint Central Administration site and which is used for the Portal site. Use the Home Directory tab in IIS Manager to determine the appropriate path of the Web.config file for each site.
o Use the Web.config file that was previously created for the Commerce Server C SharpSite as the source for the text to copy in the following instructions:
Please follow the below steps to modify the web.config file of SharePoint administration site.
Step 1: Adding Commerce Server Section Group
Copy the Commerce [sectionGroup] A [configSections] and paste it after the [System.Workflow.ComponentModel.WorkflowCompiler] section group.
[sectionGroup name=”CommerceServer”]
[section name=”application” type=”Microsoft.CommerceServer.Runtime.Configuration.CommerceApplicationSectionHandler, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[section name=”authentication” type=”Microsoft.CommerceServer.Runtime.Configuration.CommerceAuthenticationSectionHandler, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[section name=”pipelines” type=”Microsoft.CommerceServer.Runtime.Configuration.CommercePipelineSectionHandler, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[section name=”caches” type=”Microsoft.CommerceServer.Runtime.Configuration.CommerceCacheSectionHandler, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[section name=”messageManager” type=”Microsoft.CommerceServer.Runtime.Configuration.CommerceMessageManagerSectionHandler, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[section name=”catalog” type=”Microsoft.CommerceServer.Runtime.Configuration.CommerceCatalogSectionHandler, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[section name=”orders” type=”Microsoft.CommerceServer.Runtime.Configuration.CommerceOrdersSectionHandler, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[section name=”profiles” type=”Microsoft.CommerceServer.Runtime.Configuration.CommerceProfilesSectionHandler, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[section name=”contentSelection” type=”Microsoft.CommerceServer.Runtime.Configuration.CommerceContentSelectionSectionHandler, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[section name=”commerceEvent” type=”Microsoft.CommerceServer.Runtime.Configuration.EventLoggerConfigurationHandler, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[section name=”kifejezések” type=”Microsoft.CommerceServer.Runtime.Configuration.CommerceExpressionSectionHandler, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[/sectionGroup]
Step 2: Hozzátéve Commerce Server Group
§ Copy a [CommerceServer] részt, és illessze után [SharePoint] rész, előtt a [system.web] rész.
[CommerceServer]
[alkalmazás sitename =”CDevSite” DebugLevel =”Termelés”/]
[pipelines][/pipelines]
[kifejezések séma =”Autó”/]
[caches]
[cache name =”Reklám” type=”Reklám” RefreshInterval =”900″ RetryInterval =”30″/]
[cache name =”Kedvezmények” type=”Kedvezmények” RefreshInterval =”0″ RetryInterval =”30″/]
[cache name =”ShippingManagerCache” type=”Hajózás” loaderProgId =”Commerce.ShippingMethodCache” RefreshInterval =”0″ RetryInterval =”30″/]
[cache name =”PaymentMethodCache” type=”Fizetés”/]
[cache name =”OrdersConfigurationCache” type=”OrdersConfiguration”/]
[/caches]
[messageManager]
[kultúrák default =”en-US” basename =”CommerceMessageManager” összeszerelési =”CommerceMessageManager”]
[kultúra id =”en-US”/]
[kultúra id =”hu-HU”/]
[kultúra id =”és-JP”/]
[kultúra id =”de-DE”/]
[/kultúrák]
[erőforrás]
[erőforrás id =”pur_badsku”/]
[erőforrás id =”pur_badplacedprice”/]
[erőforrás id =”pur_discount_changed”/]
[erőforrás id =”pur_discount_removed”/]
[erőforrás id =”pur_noitems”/]
[erőforrás id =”pur_badshipping”/]
[erőforrás id =”pur_badhandling”/]
[erőforrás id =”pur_badtax”/]
[erőforrás id =”pur_badcc”/]
[erőforrás id =”pur_badpayment”/]
[erőforrás id =”pur_badverify”/]
[erőforrás id =”pur_out_of_stock”/]
[erőforrás id =”unknown_shipping_method”/]
[/erőforrás]
[/messageManager]
[orders honorStatus=”igaz” newOrderStatus=”NewOrder” sqlCommandTimeoutSeconds=”60″ sqlLongRunningCommandTimeoutSeconds=”28800″]
[addressMap]
[profileDefinition name=”Cím”/]
[property from=”GeneralInfo.address_id” to=”OrderAddressId”/]
[property from=”GeneralInfo.first_name” to=”FirstName”/]
[property from=”GeneralInfo.last_name” to=”LastName”/]
[property from=”GeneralInfo.address_line1″ to=”Line1″/]
[property from=”GeneralInfo.address_line2″ to=”Line2″/]
[property from=”GeneralInfo.city” to=”City”/]
[property from=”GeneralInfo.region_code” to=”RegionCode”/]
[property from=”GeneralInfo.postal_code” to=”PostalCode”/]
[property from=”GeneralInfo.country_name” to=”CountryName”/]
[property from=”GeneralInfo.region_name” to=”State”/]
[property from=”GeneralInfo.tel_number” to=”DaytimePhoneNumber”/]
[/addressMap]
[Types]
[Type Key=”Basket” UserTypeName=”Basket” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”PurchaseOrder” UserTypeName=”PurchaseOrder” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”OrderTemplate” UserTypeName=”OrderTemplate” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”OrderForm” UserTypeName=”OrderForm” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”LineItem” UserTypeName=”LineItem” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”Shipment” UserTypeName=”Shipment” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”Fizetés” UserTypeName=”Fizetés” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”CreditCardPayment” UserTypeName=”CreditCardPayment” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”GiftCertificatePayment” UserTypeName=”GiftCertificatePayment” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”PurchaseOrderPayment” UserTypeName=”PurchaseOrderPayment” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”CashCardPayment” UserTypeName=”CashCardPayment” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”OrderAddress” UserTypeName=”OrderAddress” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”DiscountApplicationRecord” UserTypeName=”DiscountApplicationRecord” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”ShippingDiscountRecord” UserTypeName=”ShippingDiscountRecord” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[Type Key=”PromoCodeRecord” UserTypeName=”PromoCodeRecord” AssemblyType=”GAC” NameSpace=”Microsoft.CommerceServer.Runtime.Orders” Assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[/Types]
[Limits OrderFormsPerOrderGroup=”5″ PromoCodeRecordsPerOrderForm=”10″ PromoCodesPerOrderForm=”10″ LineItemsPerOrderForm=”40″ OrderTemplatesPerUser=”10″ PaymentsPerOrderForm=”10″ ShipmentsPerOrderForm=”40″ BasketsPerUser=”15″ OrderAddressesPerOrderGroup =”10″/]
[MappingFiles PipelineMappingFilename =”OrderPipelineMappings.xml” StorageMappingFilename =”OrderObjectMappings.xml”/]
[SerializationBindings]
[SerializationBinding OldType =”Microsoft.CommerceServer.Runtime.Orders.LineItem , Microsoft.CommerceServer.Runtime ,Version = 6.0.1.0, Culture = semleges, PublicKeyToken=31bf3856ad364e35″ Newtype =”Microsoft.CommerceServer.Runtime.Orders.LineItem, Microsoft.CommerceServer.Runtime,Version = 6.0.1.0, Culture = semleges, PublicKeyToken=31bf3856ad364e35″/]
[/SerializationBindings]
[/orders]
[commerceEvent]
[add className =”Microsoft.CommerceServer.Runtime.AddItemToBasketEvent” id =”AddItemToBasket”/]
[add className =”Microsoft.CommerceServer.Runtime.RemoveItemFromBasketEvent” id =”RemoveItemFromBasket”/]
[add className =”Microsoft.CommerceServer.Runtime.SubmitOrderEvent” id =”SubmitOrder” loggingEnabled =”igaz”/]
[/commerceEvent]
[/CommerceServer]
Step 3: Hozzátéve, “CommerceApplication” A “httpModules” Rész
§ másolása a Kereskedelmi HTTP Modules hogy a végén a [httpModules] rész.
[add name =”CommerceApplication” type=”Microsoft.CommerceServer.Runtime.CommerceApplicationModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[add name =”CommerceAuthentication” type=”Microsoft.CommerceServer.Runtime.CommerceAuthenticationModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[add name =”CommerceOrder” type=”Microsoft.CommerceServer.Runtime.Orders.CommerceOrderModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[add name =”CommerceCatalog” type=”Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[add name =”CommerceProfile” type=”Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[add name =”CommerceExpressionEvaluator” type=”Microsoft.CommerceServer.Runtime.Targeting.CommerceExpressionModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[add name =”CommerceCache” type=”Microsoft.CommerceServer.Runtime.Caching.CommerceCacheModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]
[add name =”CommerceContentSelection” type=”Microsoft.CommerceServer.Runtime.Targeting.CommerceContentSelectionModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/][add name =”CommerceDataWarehouseAuthenticationModule” type=”Microsoft.CommerceServer.Runtime.CommerceDataWarehouseAuthenticationModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″/]Remove or comment out the Commerce Server Authentication Module. This module is not required because ASP.NET Forms Authentication will be used for all authentications.
Step 4: Hozzátéve, “Commerce Server” AssembliesCopy the commerce server assembly information from CSharpSite web.config and paste it in the [assemblies] tag in the Central Administration site’s web.config as below:
[assemblies]
[add assembly=”Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31bf3856ad364e35″ /]
[add assembly=”Microsoft.CommerceServer.Catalog, Version=6.0.1.0, Kultúra = semleges, PublicKeyToken=31BF3856AD364E35″ /][/assemblies]
Step 5: Configure Central Administration to recognize Commerce Server Membership
Copy the below code snippet to [system.web] section of the Web.config file for the Central Administration. Jegyzet: Paste it before the closing [/system.web].
[membership defaultProvider=”UpmMembershipProvider”]
[providers]
[clear /]
[add applicationName=”CSharpSite ”
enablePasswordRetrieval=”hamis”
enablePasswordReset=”igaz”
requiresQuestionAndAnswer=”igaz”
requiresUniqueEmail=”igaz”
enableCreateDate=”igaz”
enableEmailAddress=”igaz”
enableLastLoginDate=”igaz”
profileDefinition=”UserObject”
passwordFormat=”Hashed”
name=”UpmMembershipProvider”
type=”Microsoft.CommerceServer.Runtime.Profiles.UpmMembershipProvider”/]
[/providers]
[/membership]
Step 6: Configuring the Commerce Server Profiles section
This section contains settings which configure the functionality of profiles and catalog sets. A [userProfile] node resides in the [CommerceServer][profiles] node in the web.config.
Uncomment the profiles section in [commerceserver] node.
[userProfile
profileDefinition=”UserObject”
userIdProperty=”GeneralInfo.email_address”
organizationIdProperty=”AccountInfo.org_id”
catalogSetIdProperty=”AccountInfo.user_catalog_set”
userIdSource = “ASP.NET”
userIdKey = “GeneralInfo.email_address”
userIdTarget = “GeneralInfo.user_id”
/]
[organizationProfile
profileDefintion=”Organization”
organizationIdProperty=”GeneralInfo.org_id”
catalogSetIdProperty=”GeneralInfo.org_catalog_set”
/]
Step 7: Adding Users in the Central AdministrationLocate Central Administration, Alkalmazás-menedzsment, Authentication Providers, Default zone entry. Make sure that you have the PortalSite Web Application selected in the drop-down list.
o Click Forms.
o Change the Membership Provider Name to UpmMembershipProvider. This should match the name that is in the membership section of the Web.config file.Locate Central Administration, Alkalmazás-menedzsment, and Policy for Web Application. Make sure that you have selected the Portal Web Application.
o Click Add Users.
o Select Default zone, and then click Next.
o Írja be az e-mail címét, a felhasználó saját maga által hozzáadott korábban segítségével a Commerce Server Ügyfél és rendelések menedzser, majd kattintson a Check Felhasználó.
o Ha a felhasználó nevet sikeresen felismerte, akkor hangsúlyozta. Válassza ki Full-szabályozás, és végül a Befejezés.
o Ha a felhasználó nevet nem ismeri, fut egy SQL Server nyomot a Commerce Server Profiles adatbázis meggyőződni arról, hogy a lekérdezések futnak az adatbázison. Továbbá, győződjön meg arról, hogy a bejegyzést a szolgáltató a Web.config fájl Central Administration, és keresse meg a hibákat az eseménynaplóban.
Step 8: Másolja az alábbi XML fájlokat a CSharpSite (IIS virtuális könyvtár) gyökérmappájába a Központi Hivatallal oldalon:
A OrderObjectMappings.xml
A OrderPipelineMappings.xml
Run Central Administration to make sure that these changes were made correctly. If errors occur, check the Web.config file for syntax issues.Even if the page displays correctly, check the event log. Some permissions errors may be hidden.
Configure the MOSS portal to use the Commerce Server Membership provider:
Step 1: Follow the above 6 steps to configure Portal site for Commerce Server.
Step 2: Comment out the existing [authentication], [identity], és [authorization] sections. This will disable the default Windows authentication and authorization.
Step 3: Copy the below configuration settings contents to the Web.config file for the Portal site. Paste this after the previous sections that you just commented out. This sets up the site for Forms Authentication and denies anonymous access.
[authentication mode=”Formák”]
[forms loginUrl=”/_layouts/login.aspx” name=”.ASPXFORMSAUTH” /]
[/authentication]
[authorization]
[deny users=”?” /][/authorization] View the Portal site in a Web browser. You should be redirected to the logon page. Log on and use the user credentials that you added by using the Customer and Orders Manager.
Step 4: Másolja az alábbi XML fájlokat a CSharpSite (IIS virtuális könyvtár) to the root folder of the Portal site:
A OrderObjectMappings.xml
A OrderPipelineMappings.xml
Step 5: Restart the IIS
Step 6: Run the Portal site and look for errors.
[Jegyzet : I am not able to Post scripts tag in here replace all “[” & “]” A “<" & ">“
Hagy egy Válaszol