Share via


How do you create a Commerce Server 2007 BizTalk Orchestration using your customized product catalog

Listed below are the steps you need to perform to successfully export your catalog to a directory.

1. You will need to export your catalog schema using the Commerce Server Export Catalog tool

a. Open a command prompt

b. Go to the Program Files\Microsoft Commerce Server 2007\Tools directory

c. Enter the command “exportcatalog.exe /s:<site name> /w:<url to catalog web service> /Xsd DefaultCatalog.xsd

d. You should see the specified (DefaultCatalog.xsd) file created successfully

2. Now you need to create a Message Schema containing your exported schema file (xsd)

a. Copy the Program Files\Microsoft Commerce Server 2007\SDK\Samples\Adapters\MessageSchemas directory to a directory of your choice

b. Open the Visual Studio solution

c. Replace the original DefaultCatalog.xsd under the catalog folder with your DefaultCatalog.xsd file

d. Ensure you provide an “Assembly Key File” to the project properties to build the Message Schema library

e. Build the MessageSchemas file

f. Deploy the MessageSchemas to BizTalk Server

3. Open the BizTalk Server Administrator to ensure that your MessageSchemas have successfully been deployed

4. Add the Microsoft.CommerceServer.Adapter.GlobalPropertySchemas.dll to your BizTalk Application

a. Right-Click your BizTalk Application à Add à BizTalk Assembly

b. Click the Add button

c. Go to the Program Files\Microsoft Commerce Server 2007\BizTalk Adapters directory

d. Select the Microsoft.CommerceServer.Adapter.GlobalPropertySchemas.dll file and click the Open button

e. Select the “Add to the global assembly cache on add resource (gacutil)” option along with the “Add to the global assembly cache on MSI file install” option

f. Click the OK button

g. You can verify that it has been loaded successfully by examining the Schemas within the BizTalk Administrator

5. Now you need to create your BizTalk Orchestration project with Visual Studio

a. Ensure that you add a reference to your MessageSchema file created in step 1

b. Once again, ensure that you provide an “Assembly Key File” to build the file

c. Successfully build and deploy your orchestration

6. Within the BizTalk Administrator, define the necessary Send and Receive Ports/Locations defining the Catalog Web service as the source for your Receive Port

7. Ensure that for the Send Port you provide a Filter (Property: BTS.ReceivePortName, Operator: ==, Value: Name of your Receive Port)

8. Enable/Start the Ports and Orchestration

9. Verify that your catalog export has been delivered to the location specified by the Send Port