Export (0) Print
Expand All

Integrating BizTalk Server and Commerce Server: The Inventory Adapter

Abstract

In this lab, you will use the Microsoft Commerce Server 2007 Inventory adapter with Microsoft BizTalk Server 2006 to export inventory catalogs from the Commerce Server 2007 Starter Site to the same inventory catalogs within the CSharp Site.

Introduction starts here:

This lab will walk you through the use of the Microsoft® Commerce Server 2007 Inventory adapter to export inventory values from the Commerce Server 2007 Starter Site to the CSharp Site by using Microsoft BizTalk® Server 2006. After you complete the lab, you should have a good understanding of how to produce Web service messages and how to get these messages into the BizTalk Server message queue, into and out of an orchestration, and out to another Web service.

Specifically, you will perform the following tasks:

  • Verify the prerequisites
  • Rebuild the Commerce Server MessageSchemas project
  • Create a BizTalk orchestration project
  • Build, deploy, and configure the CSInventoryAdapterUsage BizTalk application
  • Configure the BizTalk application by using the BizTalk Administration console
  • Configure the Inventory adapter
  • Connect to the Starter Site and the CSharp Site by using Catalog Manager
  • Start the BizTalk application and verify the results

The instructions in this lab assume that you have a working knowledge of BizTalk Server 2006, Commerce Server 2007, the Commerce Server Starter Site, and Microsoft Visual Studio® 2005. For more information about concepts in this lab, see the appropriate product documentation.

This document assumes that you have the following installed on your system:

  • Microsoft Windows Server 2003 SP 1 or later
  • Microsoft Visual Studio 2005
  • Microsoft SQL Server™ 2005 SP1 or SQL Server 2000 SP4
  • Microsoft BizTalk Server 2006
  • Microsoft Commerce Server 2007
  • Microsoft Commerce Server 2007 SDK
  • Microsoft Commerce Server 2007 Starter Site
  • Microsoft Commerce Server 2007 CSharp Site
  • A Sample adventure works inventory catalog
Bb794702.note(en-US,BTS.10).gifNote
The CSharp Site comes with the default installation of Commerce Server 2007. However, you need to unpack and configure the site before running it. For information about unpacking and configuring the CSharp Site, use the instructions in the "Installation and Configuration Guide for Commerce Server 2007".

Bb794702.note(en-US,BTS.10).gifNote
For information about installing and configuring the Commerce Server 2007 Starter Site, see http://www.microsoft.com/commerceserver/.

Bb794702.note(en-US,BTS.10).gifNote
You will use the default message schemas included with Commerce Server 2007. These schemas are located within the Commerce Server 2007\Sdk\Samples\Adapters\MessageSchemas\Inventory directory.

Bb794702.note(en-US,BTS.10).gifNote
This document assumes that both Commerce Server 2007 and BizTalk Server 2006 are installed on the same machine.

This document also assumes that you have the following rights:

  • You are a member of the BizTalk Administrators and SSO Administrators groups.
  • The BizTalk Service account has full rights to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Commerce Server 2007 BizTalk Adapters registry key.
  • The c:\Labs\Output\ folder has Everyone Group permission.
Bb794702.note(en-US,BTS.10).gifNote
c:\Labs\Output\ is a folder that you need to create to store the acknowledgment and temporary messages.

On a 64-bit computer, you also need the following rights:

  • The BizTalk Service account has full rights to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wow6432Node\Commerce Server 2007 BizTalk Adapters registry key.

Before creating a BizTalk project that uses the Inventory adapter, you need to verify the following prerequisites:

  • The Commerce Server 2007 Inventory adapter is installed into the BizTalk Server 2006.
  • The Starter Site is up and running.
  • The CSharp Site is up and running.
  • The Catalog Web service for the Starter Site is available. This document assumes that you named the URL for the Profiles Web service for the Starter Site as https://localhost/ssCatalogWebService/CatalogWebService.asmx.
  • The Catalog Web service for the CSharp Site is available. This document assumes that you named the URL for the Catalog Web service for the CSharp Site as https://localhost/csCatalogWebService/CatalogWebService.asmx.

The following figure shows all the Web sites running on your system when the Starter Site and CSharp Site are up and running.

Bb794702.7d29b64b-34e6-4856-aa34-911742172400(en-US,BTS.10).gif

  1. Click Start, point to Programs, point to Microsoft BizTalk Server 2006, and then click BizTalk Server Administration.

  2. In the BizTalk Administration console, expand Console Root, expand BizTalk Server 2006 Administration, expand BizTalk Group, expand Platform Settings, and then expand Adapters.

    Ensure the CommerceServerInventoryAdapter is listed.

    Bb794702.7edd41b3-344c-43df-b084-bc36a80ede0f(en-US,BTS.10).gif

    If the Commerce Server Inventory adapter is not installed, do the following:

    • Right-click Adapters, point to New, and then click Adapters.
    • In the Adapter Properties dialog box, in the Name box, enter CommerceServerInventoryAdapter, and in the Adapter box, select Commerce Server Inventory.
      Note   You will have to restart the associated BizTalk Host Instance for the changes to take effect.

  1. In Internet Explorer, in the Address box, type http://localhost/startersite, and you should see the Adventure Works shopping site.

Bb794702.note(en-US,BTS.10).gifNote
If you do not see the shopping site, check the Commerce Server 2007 Starter Site Installation Guide at http://go.microsoft.com/fwlink/?LinkID=71818.

  1. In Internet Explorer, in the Address box, type http://localhost/csharpsite, and you should see an empty page.

Bb794702.note(en-US,BTS.10).gifNote
If you see anything other than an empty page, check the instructions in the “Installation and Configuration Guide for Microsoft Commerce Server 2007” at http://go.microsoft.com/fwlink/?LinkID=57268.

  1. In Internet Explorer, in the Address box, type http://localhost/sscatalogwebservice/catalogwebservice.asmx, and you should see a list of operations on the page.

Bb794702.note(en-US,BTS.10).gifNote
If you do not see any operations on the page, check the Commerce Server Starter Site Installation Guide at http://go.microsoft.com/fwlink/?LinkID=71818.

  1. In Internet Explorer, in the Address box, type http://localhost/cscatalogwebservice/catalogwebservice.asmx, you should see a list of operations on the page.

Bb794702.note(en-US,BTS.10).gifNote
If you do not see any operations on the page, check the instructions in the “Installation and Configuration Guide for Microsoft Commerce Server 2007” at http://go.microsoft.com/fwlink/?LinkID=57268.

Now you will create a strong name key and rebuild the Commerce Server message schemas project that was shipped with Commerce Server 2007.

  1. Click Start, point to Programs, point to Microsoft Visual Studio 2005, point to Visual Studio Tools, and then click Visual Studio 2005 Command Prompt.

  2. At the command prompt, change the current directory to c:\Labs.

  3. At the command prompt, type sn –k key.snk, and then press ENTER.

    Bb794702.e29d1ac3-b69b-462d-b0bc-f610f4f1bb9b(en-US,BTS.10).gif
  4. At the command prompt, type exit and then press ENTER to close the command prompt window.

  1. Click Start, point to Programs, point to Accessories, and then click Windows Explorer.

  2. In Windows Explorer, navigate to the C:\Program Files\Microsoft Commerce Server 2007\Sdk\Samples\Adapters\MessageSchemas directory, and then double-click CommerceServerAdapterSchemas.sln.

  3. In Solution Explorer, right-click CommerceServerAdapterSchemas, and then click Properties.

  4. In the left pane of the dialog box, under Common Properties, click Assembly. In the right pane, in the Assembly Key File box, type c:\Labs\key.snk, and then click OK.

    Bb794702.a8c77421-577d-4c99-bc2e-deba68696c65(en-US,BTS.10).gif
  5. Under Configuration Properties, click Deployment. In the right pane, in the Server box, type (Local), and then click OK.

  6. In Solution Explorer, right-click CommerceServerAdapterSchemas, click Rebuild, and then click Deploy.

  7. On the File menu, click Exit to close Visual Studio.

    Note   If you deploy the application to a deployment server, you need to provide the name of the deployment server in the Server box instead of (Local).

Bb794702.note(en-US,BTS.10).gifNote
If you have customized schemas for your Commerce Server 2007 site or require schemas for other systems to be connected with your Commerce Server 2007 site, you can use your own message schema file. You will need to build your customized schema file to be used with your orchestration.

Now you will create a BizTalk project in Visual Studio 2005 and design an orchestration to handle communication between the Starter Site and the CSharp Site. You will create a new BizTalk project, add an orchestration, create message variables, add Send and Receive shapes to the orchestration, and add logical ports to the orchestration. Finally, you will connect each logical port to the appropriate Send or Receive shape to complete the BizTalk orchestration project.

Creating a BizTalk Orchestration Project

Now you will create a BizTalk project in Visual Studio 2005, add a reference to Microsoft.CommerceServer.Adapter.MessageSchemas, and add an orchestration to the project.

  1. Click Start, point to Programs, point to Microsoft Visual Studio 2005, and then click Microsoft Visual Studio 2005.

  2. On the File menu, point to New, and then click Project.

  3. In the New Project dialog box, in the Project Types pane, click BizTalk Projects, and then in the Templates pane, click Empty BizTalk Server Project.

  4. In the Name box, type CSInventoryAdapterUsage.

  5. In the Location box, type C:\Labs, and then click OK. The CSInventoryAdapterUsage project should appear in Solution Explorer. If you do not see Solution Explorer, click Solution Explorer on the View menu.

    Bb794702.b7c026ba-2424-4f6b-b43c-0adb1f0d1b56(en-US,BTS.10).gif
  6. The new CSInventoryAdapterUsage project appears.

  1. In the Solution Explorer, right-click References, and then click Add Reference.

  2. Click Browse, change to <Commerce Server Installation Directory> (for example, C:\Program Files\Microsoft Commerce Server 2007)\Sdk\Samples\Adapters\MessageSchemas\bin\Deployment, double-click Microsoft.CommerceServer.Adapter.MessageSchemas.dll, and then click OK.

    Bb794702.001c0397-aa71-4c8b-a003-178301fef449(en-US,BTS.10).gif

    The following figure shows all the references in the project.

    Bb794702.92c2f34a-d87f-491f-9208-cf297fbfeb67(en-US,BTS.10).gif

  1. In Solution Explorer, right-click CSInventoryAdapterUsage, point to Add, and then click New Item.

  2. In the Add New Item dialog box, do the following:

    Bb794702.7fd3451c-bbf3-498a-9256-e34fb1233067(en-US,BTS.10).gif

    Use this To do this

    Categories

    Click Orchestration Files

    Templates

    Click BizTalk Orchestration

    Name

    Type InventoryBizTalkOrchestration.odx

  3. Click Add.

Creating Message Variables

Now you will create two message variables. They are InventoryMessage and InventoryAckMessage.

  1. In Solution Explorer, double-click InventoryBizTalkOrchestration.odx.

  2. In the Orchestration View window, right-click Messages, and then click New Message. If you do not see the Orchestration View window, click the View menu, point to Other Windows, and then click Orchestration View. Typically, the Orchestration View window is on the tab next to the Solution Explorer tab.

  3. In the Properties window, do the following:

    Bb794702.3918b114-ef88-4af1-b41c-69d26257aa66(en-US,BTS.10).gif

    Use this To do this

    Identifier

    Type InventoryMessage

    Message Type

    From the drop-down list, expand Schemas, and then click Select from referenced assembly.

    The Select Artifact Type dialog box appears.

    • In the Select Artifact Type dialog box, in the left pane, expand Microsoft.CommerceServer.Adapter.MessageSchemas, select Microsoft.CommerceServer.Adapter.MessageSchemas.Inventory1. In the right pane, select DefaultInventory.
      Bb794702.1fca6df6-d939-4cc8-9fc5-15e6550f739f(en-US,BTS.10).gif

  1. In the Orchestration View window, right-click Messages, and then click New Message.

  2. In the Properties window, do the following

    Use this To do this

    Identifier

    Type InventoryAckMessage

    Message Type

    From the drop-down list, expand Schemas, and then click Select from referenced assembly.

    The Select Artifact Type dialog box appears.

    • In the Select Artifact Type dialog box, in the left pane, expand Microsoft.CommerceServer.Adapter.MessageSchemas, select Microsoft.CommerceServer.Adapter.MessageSchemas.Catalog1. In the right pane, select InventoryResponseMessage.
      The following figure shows the messages in the orchestration.
      Bb794702.bf59bcad-49b7-4dd7-be87-e658ea98e4d3(en-US,BTS.10).gif

Adding Send and Receive Shapes to the Orchestration

Now you will add four shapes. They are a Receive shape called ReceiveInventory, a solicit-response send shape called SendInventory, another receive shape called ReceiveInventoryAck, and another send shape called SendInventoryAck.

  1. In Solution Explorer, double-click InventoryBizTalkOrchestration.odx to open the orchestration in the Visual Studio 2005 design surface.

  2. From the BizTalk Orchestration Toolbox, drag a Receive shape to just below the start of the orchestration (the green circle).

  3. Double-click the Receive shape, and in the Properties window, do the following:

    Bb794702.38268bd5-fdfa-43dc-a38b-d0d2fe265cfe(en-US,BTS.10).gif

    Use this To do this

    Activate

    Select True

    Message

    Select InventoryMessage

    Name

    Type ReceiveInventory

  1. From the BizTalk Orchestration Toolbox, drag a Send shape to just below ReceiveInventory shape.

  2. Double-click the Send shape, and in the Properties window, do the following:

    Use this To do this

    Message

    Select InventoryMessage

    Name

    Type SendInventory

  1. From the BizTalk Orchestration Toolbox, drag a Receive to just below the SendInventory shape.

  2. Double-click the Receive shape, and in the Properties window, do the following:

    Use this To do this

    Message

    Select InventoryAckMessage

    Name

    Type ReceiveInventoryAck

  1. From the BizTalk Orchestration Toolbox, drag a Send shape to just below ReceiveInventoryAck shape.

  2. Double-click the Send shape, and in the properties window, do the following:

    Use this To do this

    Message

    Select InventoryAckMessage

    Name

    Type SendInventoryAck

Adding Logical Ports to the Orchestration

Now you will create three logical ports. They are a receive port called InventoryReceivePort, a send port called InventorySendPort, and another send port called InventorySendAckPort.

  1. In Solution Explorer, double-click InventoryBizTalkOrchestration.odx to open the orchestration in the Visual Studio 2005 design surface.

  2. From the BizTalk Orchestration Toolbox, drag a Port shape onto the left Port Surface on the design surface.

  3. On the Welcome to the Port Configuration Wizard page, click Next.

    Bb794702.c552cb80-ce9d-4b86-9d3d-a3eba0935513(en-US,BTS.10).gif
  4. On the Port Properties page, in the Name box, type InventoryReceivePort, and then click Next.

  5. On the Select a Port Type page, in the Port Type Name box, type InventoryReceiveType.

    Bb794702.4486ee66-f07d-4a78-a963-0902990bdc96(en-US,BTS.10).gif
  6. Click Next.

  7. Click Next.

  8. On the Completing the Port Wizard page, click Finish to complete and close the wizard.

  1. From the BizTalk Orchestration Toolbox, drag a Port shape onto the right Port Surface on the design surface.

  2. On the Welcome to the Port Configuration Wizard page, click Next.

  3. On the Port Properties page, in the Name box, type InventorySendPort, and then click Next.

  4. On the Select a Port Type page, do the following:

    Use this To do this

    Port Type Name

    Type InventorySendType

    Communication Pattern

    Select Request-Reponse

  5. Click Next.

  6. On the Port Binding page, do the following:

    Use this To do this

    Port direction of communication

    Select I’ll be sending a request and receive a response.

    Port binding

    Select Specify later.

  7. On the Completing the Port Wizard page, click Finish to complete and close the wizard.

  1. From the BizTalk Orchestration Toolbox, drag a Port shape onto the right Port Surface on the design surface.

  2. On the Welcome to the Port Configuration Wizard page, click Next.

  3. On the Port Properties page, in the Name box, type InventorySendAckPort, and then click Next.

  4. On the Select a Port Type page, in the Port Type Name box, type InventorySendAckType.

  5. Click Next.

  6. On the Port Binding page, do the following:

    Use this To do this

    Port direction of communication

    Select I’ll be sending messages on this port.

    Port binding

    Select Specify later.

  7. Click Next.

  8. On the Completing the Port Wizard page, click Finish to complete and close the wizard.

Connecting the Logical Ports to the Send and Receive Shapes

Now you will connect each logical port to an appropriate Send or Receive shape.

  1. Connect the InventoryReceivePort port to the ReceiveInventory shape. (Drag the arrow to the right of the InventoryReceivePort port on the port surface to the box on the ReceiveInventory shape.)

  2. Connect the SendInventory shape to the Request of the InventorySendPort port.

  3. Connect the ReceiveInventoryAck shape to the Response of the InventorySendPort port.

  4. Connect the SendInventoryAck shape to InventorySendAckPort port.

    Your orchestration should look like the following figure.

    Bb794702.789f154a-8cde-4ceb-bb30-8f230c49c932(en-US,BTS.10).gif

Now you will build and deploy the BizTalk project in Visual Studio 2005.

  1. In Visual Studio 2005, in Solution Explorer, right-click the CSInventoryAdapterUsage project, and then click Properties.

  2. In the CSInventoryAdapterUsage Property Pages dialog box, expand the Common Properties, select Assembly. In the right pane, in the Assembly Key Name box, type c:\Lab\key.snk.

  3. In the CSInventoryAdapterUsage Property Pages dialog box, expand Configuration Properties, click Deployment. In the right pane, in the Application Name box, type CSInventoryAdapterUsage, in the Server box, type (Local), and then click OK.

  4. In Solution Explorer, right-click the CSInventoryAdapterUsage project, click Build, and then click Deploy.

  5. On the File menu, click Exit to close Visual Studio.

Bb794702.note(en-US,BTS.10).gifNote
You will have to refresh the view to be able to see the newly deployed application.

Bb794702.note(en-US,BTS.10).gifNote
If you deploy the application to a deployment server, you need to provide the name of the deployment server in the Server box instead of (Local).

Now you will configure and start the BizTalk application. To configure the application, you need to create send and receive physical ports, configure the Inventory adapter, and bind the logical ports to the physical ports. To start the application, you can use the BizTalk Administration console.

First, you create the following two folders to store appropriate messages:

  • c:\Labs\Output\AckMessages is to acknowledgement messages.
  • c:\Labs\Output\TempMessages is to temporary messages.
Bb794702.note(en-US,BTS.10).gifNote
Make sure that both folders have the Everyone Group permission.

Creating Physical Send and Receive Ports

Now you will create physical send and receive ports, and configure the Inventory adapter. You will configure the Inventory adapter to operate as a BizTalk Server one-way receive adapter to receive messages from the Starter Site into BizTalk Server. You will also configure the Inventory adapter as a BizTalk Server solicit-response send adapter to send solicit messages out of BizTalk Server to the CSharp Site, and to receive the response messages back from the CSharp Site into BizTalk Server.

  1. Right-click Receive Ports, point to New, and then select One-way Receive Port.

  2. In the Receive Port Properties dialog box, in the right pane, under General, in the Name box, type ReceiveInventoryPort. In the left pane of the dialog box, click Receive Locations.

  3. In the right pane, click New.

  4. In the Receive Location Properties dialog box, do the following:

    Bb794702.54e9688e-ac2b-4906-bc20-ca65db8e74cc(en-US,BTS.10).gif

    Use this To do this

    Name

    Type ReceiveInventoryLocation

    Transport Type

    Select CommerceServerInventoryAdapter

    Receive Handler

    Select the host you bound to the orchestration, BizTalkServerApplication by default.

    Receive Pipeline

    Select XMLReceive

  5. Click Configure, and on the CommerceServerInventoryAdapter properties page, do the following:

    Bb794702.4080564e-67c6-4106-9de0-6fd42bc3c113(en-US,BTS.10).gif

    Use this To do this

    Registry Subkey

    Type InventoryExport

    Web Service URL

    Type http://localhost/sscatalogwebservice.asmx/catalogwebservice.asmx

    Web Service Password

    Type user’s password

    Web Service User Name

    Type user name

    This account must have access to the Azman authorization store for the Catalog Web service. For more information about these access rights, see .

    Minutes

    Type 10

    The number 10 means that every 10 minutes the Web service will push out the new catalog.

    Site name

    StarterSite

  1. Right-click Send Ports, point to New, and then select Static Solicit-Response Send Port.

  2. In the Send Port Properties – General dialog box, do the following:

    Use this To do this

    Name

    Type SendInventoryPort

    Transport Type

    Select CommerceServerInventoryAdapter

    Send Handler

    Select the host you bound to the orchestration, BizTalkServerApplication by default.

    Send Pipeline

    Select XMLTransmit

    Receive Pipeline

    Select XMLReceive

  3. Click Configure, and on the CommerceServerInventoryAdapter properties page, do the following:

    Use this To do this

    Registry Subkey

    Type SendInventory

    Import Directory

    Type c:\Labs\Output\TempMessages directory

    Endpoint message type

    Make sure it is Inventory Import

    Web Service URL

    Type http://localhost/cscatalogwebservie/catalogwebservice.asmx

    Web Service Password

    Type the user’s password

    Web Service User Name

    Type the user name

    This account must have access to the Azman authorization store for the Catalog Web service. For more information about these access rights, see .

    Site name

    Type CSharpSite

  1. Right-click Send Ports, point to New, and then select Static One-way Send Port.

  2. In the Send Port Properties – General dialog box, do the following:

    Use this To do this

    Name

    Type SendInventoryAckPort

    Transport Type

    Select FILE

    Send Handler

    Select the host you bound to the orchestration, BizTalkServerApplication by default.

    Send Pipeline

    Select XMLTransmit

  3. Click Configure, in the File Transport Properties dialog box, in the Destination Folder box, type c:\Labs\Output\AckMessages

Binding the Logical Ports to the Physical Ports

Now you will bind each logical port to its corresponding physical port.

  1. In the BizTalk Administration console, under Applications, right-click CSInventoryAdapterUsage, and click Configure.

  2. In the Configure Application dialog box, in the left pane, click InventoryBizTalkOrchestration. In the right pane, in the Host box, select BizTalkServerApplication, and the bind the following ports.

    Bb794702.c16ad947-d224-4d3e-97c6-abf98168143f(en-US,BTS.10).gif

    Use this To do this

    InventoryReceivePort

    Select ReceiveInventoryPort

    InventorySendPort

    Select SendInventoryPort

    InventorySendAckPort

    Select SendInventoryAckPort

Now you will test the application that you have created and deployed. You will first connect to the Starter Site and the CSharp Site and import the inventory.xml file into the Starter Site. Then you will start the orchestration to receive inventory catalog from the Starter Site, send the inventory catalog to the CSharp Site, and receive acknowledgments in a file directory. Finally, you will verify that the Adventure Works Inventory is on the CSharp Site and an acknowledgment is in the c:\Labs\Output\AckMessages folder.

  1. Click Start, point to Programs, point to Microsoft Commerce Server 2007, and then click Catalog Manager.

  2. In the Commerce Server Catalog Manager dialog box, on the File menu, point to Open, and then click Connection.

  3. In the Site Connections dialog box, under Select a Connection, click New.

  4. Under the Settings, in the Name box, type CSharpSite, in the Catalog Web Service box, add the two characters cs after http://localhost/, making sure that the Catalog Web Service is http://localhost/cscatalogwebservice/catalogwebservice.asmx. Click OK, and then click OK again.

    Bb794702.cf266529-7e85-48ca-bd44-3c083d5c9c61(en-US,BTS.10).gif

  1. Click Start, point to Programs, point to Microsoft Commerce Server 2007, and then click Catalog Manager.

  2. In the Commerce Server Catalog Manager dialog box, on the File menu, point to Open, and then click Connection.

  3. In the Site Connections dialog box, under Select a Connection, click New.

  4. Under Settings, in the Name box, type StarterSite, in the Catalog Web Service box, add the two characters ss after http://localhost/, making sure the Catalog Web Service is http://localhost/sscatalogwebservice/catalogwebservice.asmx. Click OK, and then click OK again.

    Bb794702.81aa8a86-4b28-46ee-ba01-33492bfe1b22(en-US,BTS.10).gif

  1. In the Commerce Server Catalog Manager dialog box, on the File menu, click Import Inventory Catalog.

  2. On the Welcome to the Import Inventory Catalog Wizard page, click Next.

  3. On the File location page, in the Location box, type c:\Labs\inventory.xml, and then click Next.

  4. On the Import Catalog Summary page, click Create.

  5. On the Import errors page, click Next.

  6. On the Completing the Import Inventory Catalog Wizard page, click Finish.

    Bb794702.7735d377-9e73-4e4f-bb22-9cdfd14344fe(en-US,BTS.10).gif

  1. In the Commerce Server Catalog Manager dialog box, on the View menu, click Inventory Catalogs.

  2. You should see only Default.

    Bb794702.e3a31404-a1dc-46a7-a88b-1b5c4fed1431(en-US,BTS.10).gif

  1. In the BizTalk Administration console, under Applications, right-click CSInventoryAdapterUsage, and click Start.

  1. In the Commerce Server Catalog Manager dialog box, on the tool bar, click Inventory Catalogs.

  2. You should see Adventure Works Inventory

    Bb794702.d5465882-c635-4b72-9111-fc459ee14a3f(en-US,BTS.10).gif

  1. In File Explorer, go to c:\Labs\Output\AckMessages, and check if there is a {GUID}.xml file.

  2. A typical {GUID}.xml file contains the following content:

    <?xml version="1.0" encoding="utf-8" ?>
    <CommerceServerInventoryImportResponse />
    
Bb794702.note(en-US,BTS.10).gifNote
To stop receiving acknowledgment messages, you need to stop the BizTalk application. To stop the BizTalk application, do the following:

  • In the BizTalk Administration console, under Applications, right-click CSInventoryAdapterUsage, and then click Stop.

Congratulations! You have successfully used Commerce Server Inventory adapter with BizTalk Server 2006 to export inventory values from the Commerce Server Starter Site to the CSharp Site.

In this lab, you first verified the prerequisites and rebuilt the message schemas project that was shipped with the Commerce Server. Next you created a BizTalk orchestration project, added Receive and Send shapes, added logical receive and send ports, and built and deployed the BizTalk project. Then you configured the Inventory adapter as a receive adapter and a solicit-response send adapter. Finally, you tested the application. Specifically, you used Catalog Manager to connect to the Starter Site and the CSharp Site, imported the inventory.xml file to the Starter Site, started the BizTalk application, and verified that the inventory was exported from the Starter Site to the CSharp Site and that an acknowledgment was generated and was placed in the desired folder.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft