Tom Schultz [email protected] Web Solutions Architect Microsoft Corporation Commerce Server...

15
Tom Schultz [email protected] Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part

Transcript of Tom Schultz [email protected] Web Solutions Architect Microsoft Corporation Commerce Server...

Page 1: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

Tom [email protected] Web Solutions ArchitectMicrosoft Corporation

Commerce Server 2009: Web CastUsing Store Locator Web Part

Page 2: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

2

Prerequisites• Microsoft Windows Server 2008 or 2003 with all

Windows Updates• .NET Framework 3.5 SP1• Microsoft SQL Server 2008 or Microsoft SQL Server

2005 with SP3• Microsoft Commerce Server 2009 Standard or

Enterprise• Microsoft Office SharePoint Server 2007 (MOSS)

with SP1 and cumulative updates• Windows SharePoint Services 3.0 (WSS) with SP1

and cumulative updates

Resources:Microsoft Commerce Server 2009 Installation and

Configuration Guidehttp://go.microsoft.com/fwlink/?LinkId=139462

Page 3: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

3

Agenda

1. Install Commerce SharePoint Default Web Site

2. Install Commerce SharePoint Default Web Site Web Services

3. Virtual Earth Developer Account Sign Up4. Add Profile Objects5. Upload Stores to Virtual Earth6. Configure Store Locator Web Part

Resource:Microsoft Commerce Server 2009 Documentation

http://msdn.microsoft.com/en-us/library/dd452365.aspx

Page 4: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

4

Install Commerce SharePoint Default Web Site

1.SharePoint Commerce Services Configuration Wizard

2.Channel Configuration SharePoint List− Channel: Default− Default Catalog: Adventure Works

Catalog

Page 5: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

5

Install Commerce SharePoint Default Web Site – Web Services

1. Unpackage the Default Site Web Services2. Assign each Web Service to an AppPool3. Assign roles to AZMAN policies4. Add Encryption Keys to ProfilesWebService

web.config5. Update PresentationInfo.xml

Resource:“Unpacking the Web Services in a New Commerce Server Site” -

Commerce Server 2009 Installation and Configuration Guidehttp://go.microsoft.com/fwlink/?LinkId=139462

Page 6: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

6

Add Encryption Keys to ProfilesWebService web.config

<profilesWebService siteName="DefaultSite" authorizationPolicyPath="ProfilesAuthorizationStore.xml" disableAuthorization="false" publicKey="registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\

Commerce Server 2007 Keys\DefaultSite,PublicKey" privateKey1="registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\

Commerce Server 2007 Keys\DefaultSite,PrivateKey" keyIndex="1" searchResultsLimit="500" bypassProfileCache="true">

Page 7: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

7

Update PresentationInfo.xml<profile name="VirtualEarthConfig" displayName="Virtual Earth Configuration" description="Virtual Earth

Configuration"> <displayArea name="main" displayName="Main"> <property name="config_id" displayName="Configuration ID" description="Unique ID of this configuration"/> <property name="account_id" displayName="Account Id" description="The Virtual Earth Platform account id."

displayByDefault="1" /> <property name="password" displayName="Password" description="Password of the Virtual Earth Platform

account"/> <property name="data_source_name" displayName="Data Source Name" description="The data source name with the

Virtual Earth Platform account." displayByDefault="1" /> <property name="ve_token_staging_url" displayName="Virtual Earth Token Service Staging Url" description="The

staging url for the Virtual Earth Token Service." displayByDefault="1" /> <property name="ve_token_production_url" displayName="Virtual Earth Token Service Production Url"

description="The production url of the Virtual Earth Token Service." displayByDefault="1" /> <property name="mp_find_staging_url" displayName="MapPoint Find Service Staging Url" description="The staging

url for the MapPoint Find Service." displayByDefault="1" /> <property name="mp_find_production_url" displayName="MapPoint Find Service Production Url" description="The

production url for the MapPoint Find Service." displayByDefault="1" /> <property name="date_created" displayName="Date Created" description="Date that this configuration was created"

readOnly="true" displayByDefault="5" /> <property name="date_last_changed" displayName="Date Last Changed" description="Date that this configuration

was last changed" readOnly="true" displayByDefault="4" /> <property name="user_id_changed_by" displayName="Changed By" description="ID of the user that last changed this

configuration" readOnly="true"/> </displayArea> </profile> <profile name="StoreObject" displayName="Store Object" description="Store Object"> <displayArea name="main" displayName="Main"> <property name="store_id" displayName="Store ID" description="Unique ID of this store" autoGenerateId="true"/> <property name="store_name" displayName="Store Name" description="Name of this store" displayByDefault="1" /> <property name="preferred_address" displayName="Preferred Address" description="Name of preferred address

from this store's address book"/> <property name="address_list" displayName="Address List" description="List of addresses associated with this

store" linkedDisplayProperty="address_name"/> <property name="store_latitude" displayName="Store Latitude" description="Store latitude in decimal degree"

displayByDefault="1" /> <property name="store_longitude" displayName="Store Longitude" description="Store longitude in decimal degree"

displayByDefault="1" /> <property name="date_created" displayName="Date Created" description="Date that this store was created"

readOnly="true" displayByDefault="5" /> <property name="date_last_changed" displayName="Date Last Changed" description="Date that this store was last

changed" readOnly="true" displayByDefault="4" /> <property name="user_id_changed_by" displayName="Changed By" description="ID of the user that last changed this

store" readOnly="true"/> </displayArea> </profile>

Page 8: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

8

Virtual Earth Platform Developer Account Sign Up• http://go.microsoft.com/fwlink/?LinkId=1

33234

Page 9: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

9

Add Profile Objects1. Customer & Orders Manager

− AllowHTTP=true− http://localhost/DefaultSite_CatalogWebService/CatalogWebServic

e.asmx− http://localhost/DefaultSite_OrdersWebService/OrdersWebService.

asmx− http://localhost/DefaultSite_ProfilesWebService/ProfilesWebService

.asmx

2. Create Virtual Earth Configuration Object− Configuration ID: 1− Account ID: 139613− Password: Pass@word1− Data Source Name:

− DemoCSStore139613.139613

− Virtual Earth Token Staging Url:− https://staging.common.virtualearth.net/find-30/common.asmx

− Virtual Earth Token Production Url:− https://common.virtualearth.net/find-30/common.asmx

− MapPoint Find Service Staging Url:− https://findv3.staging.mappoint.net/Find-30/FindService.asmx

− MapPoint Find Service Production Url:− https://findv3.mappoint.net/Find-30/FindService.asmx

Page 10: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

10

Add Profile Objects

3.Create Store Objects

Contoso Store #1 Contoso Store #28867 161st Avenue NE 17667 NE 76th StRedmond, WA Redmond, WA 98052-

4994Latitude: 47.681093 Latitude: 47.6715205Longitude: -122.126543 Longitude: -122.1046301

Contoso Store #3 Contoso Store #415800 Redmond Way 15738 Redmond WayRedmond, WA 98052-3829 Redmond, WA 98052-

3830Latitude: 47.6745028 Latitude: 47.6743542Longitude: -122.1291042 Longitude: -122.1295989

Page 11: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

11

Upload Stores to Virtual Earth

CSStoreUpload /siteName/profileUrl

/userName /password/dataSource/environment/RejectAmbiguousGeocodes /WaitForJobCompletion /Verbose

%COMMERCE_SERVER_ROOT%\Microsoft Commerce Server 2007\Microsoft Commerce Server 2009\Site\Tools

DefaultSitehttp://localhost/DefaultSite_ProfilesWebService/ProfilesWebService.asmx

139613Pass@word1

DemoCSStore139613.139613staging

Page 12: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

12

Configure Store Locator Web Part1.Upload Contoso Store Logo Image to

SharePoint Publishing Images2.Update Store Locator web part

properties− "Store push-pin" image =

/PublishingImages/ContosoLogo.jpg− Search Radius = 10 miles

Page 13: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

Links and ResourcesCommerce Server on the Web:http://www.microsoft.com/commerceserver/default.mspx

Commerce Server Partner Portal: https://partner.microsoft.com/global/40013175

Commerce Server on TechNet: http://www.microsoft.com/technet/prodtechnol/comm/default.mspx

Commerce Server 2009 on MSDN: http://msdn.microsoft.com/en-us/library/aa286557.aspx

Commerce Server 2009 Forum on MSDN: http://social.msdn.microsoft.com/Forums/en-US/commserver2009/threads/

13

Page 14: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

14

Links and ResourcesCommerce Server 2009 – MSDN Subscriber Downloadshttp://msdn.microsoft.com/subscriptions

Commerce Server 2009 Readme and Installation Guidehttp://go.microsoft.com/fwlink/?LinkId=139462

Commerce Server 2009 Default SharePoint Site Performance Guide

http://go.microsoft.com/fwlink/?LinkId=140817 Commerce Server 2009 Multi-Channel Foundation Sampleshttp://go.microsoft.com/fwlink/?LinkId=144352

Commerce Server 2009 Partner Software Development Kit (SDK)

http://www.microsoft.com/downloads/details.aspx?FamilyID=4baddaf1-bd01-4131-bbbb-2e7db80b60d4

Page 15: Tom Schultz tschultz@microsoft.com Web Solutions Architect Microsoft Corporation Commerce Server 2009: Web Cast Using Store Locator Web Part.

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after

the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. 15