Export (0) Print
Expand All

Integrating BizTalk Server and Commerce Server: The Profiles Adapter

Abstract

In this lab, you will use the Microsoft Commerce Server 2007 Profiles adapter with Microsoft BizTalk Server 2006 to export new user profiles from the Commerce Server 2007 Starter Site to the CSharp Site.

Introduction starts here:

This lab will walk you through the use of the Microsoft® Commerce Server 2007 Profiles adapter to export user profiles from the Commerce Server 2007 Starter Site to the CSharp Site. After 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 2006 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 and deploy the CSProfilesAdapterUsage BizTalk application
  • Configure the BizTalk application by using the BizTalk Administration console
  • Configure the Profiles adapter
  • Connect to the Starter Site and the CSharp Site by using Customer and Orders 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 Starter Site
  • Microsoft Commerce Server CSharp Site
Bb794704.note(en-US,BTS.10).gifNote
   The CSharp Site comes with the default installation of the Microsoft Commerce Server 2007. However, you need to unpack and configure the site before running it. For information about unpacking and configuring CSharp Site, use the instructions in the "Installation and Configuration Guide for Commerce Server 2007".

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

Bb794704.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\Profiles directory.

Bb794704.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.
Bb794704.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 Profiles adapter, you need to verify the following prerequisites:

  • The Commerce Server 2007 Profiles adapter is installed in BizTalk Server 2006.
  • The Starter Site is up and running.
  • The CSharp Site is up and running.
  • The Profiles 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/ssProfileWebService/ProfileWebService.asmx.
  • The Profiles Web service for the CSharp Site is available. This document assumes that you named the URL for the Profiles Web service for the CSharp Site as https://localhost/csProfileWebService/ProfileWebService.asmx.

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

Bb794704.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 that the CommerceServerProfilesAdapter is installed and on the list.

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

    If the Commerce Server Profiles 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 CommerceServerProfilesAdapter, and in the Adapter box, select Commerce Server Profiles.
      Note   You will have to restart the associated host instances 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.

Bb794704.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.

Bb794704.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 https://localhost/ssprofilewebservice/profilewebservice.asmx, and you should see a list of operations on the page.

Bb794704.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 https://localhost/csprofilewebservice/profilewebservice.asmx, you should see a list of operations on the page.

Bb794704.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 the 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.

    Bb794704.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.

    Bb794704.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.

Bb794704.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).

Bb794704.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, 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 CSProfilesAdapterUsage.

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

    Bb794704.b9c97383-590f-4ad2-9618-3ee8a2706dc3(en-US,BTS.10).gif
  6. The new CSProfilesAdapterUsage project appears.

  1. In 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.

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

    The following figure shows all the references in the project.

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

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

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

    Bb794704.cbf2c1d2-1108-4f05-b318-5a0337841225(en-US,BTS.10).gif

    Use this To do this

    Categories

    Click Orchestration Files

    Templates

    Click BizTalk Orchestration

    Name

    Type ProfilesBizTalkOrchestration.odx

  3. Click Add.

Creating Message Variables

Now you will create two message variables. They are NewProfileMessage and ProfileImportAckMessage.

  1. In Solution Explorer, double-click ProfilesBizTalkOrchestration.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:

    Bb794704.be0705b6-a7c8-4a86-abb8-8093ea793abe(en-US,BTS.10).gif

    Use this To do this

    Identifier

    Type NewProfileMessage

    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.Profile1, in the right results pane, and then select ProfileDocument.
      Bb794704.4ce1f2dd-931d-49a0-91a6-72ddced11fa3(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 ProfileImportAckMessage

    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, and then select Microsoft.CommerceServer.Adapter.MessageSchemas.Profile1.ProfilesImportResponse. In the right results pane, select CommerceServerProfilesImportResponse.
      The following figure shows the two messages in the orchestration.
      CSAdapters_11_4#f3ee14d7-d556-457a-bce3-77eb75b1db10

Adding Send and Receive Shapes to the Orchestration

Now you will add four shapes. They are a Receive shape called ReceiveNewProfile, a Send shape called SendNewProfile, another Receive shape called ReceiveProfileAck, and another Send shape called SendProfileAck.

  1. In Solution Explorer, double-click ProfilesBizTalkOrchestration.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:

    Bb794704.bb6af02a-2a34-4f32-8285-0f2e1efee941(en-US,BTS.10).gif

    Use this To do this

    Activate

    Select True

    Message

    Select NewProfileMessage

    Name

    Type ReceiveNewProfile

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

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

    Use this To do this

    Message

    Select NewProfileMessage

    Name

    Type SendNewProfile

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

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

    Use this To do this

    Message

    Select ProfileImportAckMessage

    Name

    Type ReceiveProfileAck

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

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

    Use this To do this

    Message

    Select ProfileImportAckMessage

    Name

    Type SendProfileAck

Adding Logical Ports to the Orchestration

Now you will add three logical ports. They are a receive port called NewProfileReceivePort, a send port called NewProfileSendPort, and another send port called ProfileAckSendPort.

  1. In Solution Explorer, double-click ProfilesBizTalkOrchestration.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 on the Welcome page, click Next.

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

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

    Bb794704.abe17265-7957-4396-b3d2-9aaddb3b4b14(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 NewProfileSendPort, and then click Next.

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

    Use this To do this

    Port Type Name

    Type NewProfileSendPortType

    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 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 ProfileAckSendPort, and then click Next.

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

  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 NewProfileReceivePort port to the ReceiveNewProfle shape. (Drag the arrow to the right of NewProfileReceivePort port on the port surface to the box on the ReceiveNewProfile shape.)

  2. Connect the SendNewProfile shape to the Request of the NewProfileSendPort port.

  3. Connect the ReceiveProfileAck shape to the Response of the NewProfileSendPort port.

  4. Connect the SendProfileAck shape to the ProfileAckSendPort port.

  5. Your orchestration should look like the following figure:

    Bb794704.b0cfeb30-1043-4da3-a17d-48c3dd8a27f2(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 CSProfilesAdapterUsage project, and then click Properties.

  2. In the CSProfilesAdapterUsage 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 CSProfilesAdapterUsage Property Pages dialog box, expand Configuration Properties, click Deployment. In the right pane, in the Application Name box, type CSProfilesAdapterUsage, in the Server box, type (Local), and then click OK.

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

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

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

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).

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

First, you create two folders:

  • c:\Labs\Output\AckMessages is to store acknowledgement messages.
  • c:\Labs\Output\TempMessages is to store temporary messages.
Bb794704.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 Profiles adapter. You will configure the Profiles adapter to operate as a BizTalk Server one-way receive adapter to receive messages from Starter Site into BizTalk Server. You will also configure the Profiles adapter as a BizTalk Server solicit-response send adapter to send solicit messages out of BizTalk Server to CSharp Site, and to receive the response messages from CSharp Site back into the 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 ReceiveNewProfilePort. In the left pane, click Receive Locations.

  3. In the right pane, click New.

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

    Bb794704.bfe3a13d-c3f2-4720-a0c2-5c63bb01d939(en-US,BTS.10).gif

    Use this To do this

    Name

    Type ReceiveNewProfileLocation

    Transport Type

    Select CommerceServerProfilesAdapter

    Receive Handler

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

    Receive Pipeline

    Select XMLReceive

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

    Bb794704.10ca53a8-b8f0-4923-b812-70f595f452fd(en-US,BTS.10).gif

    Use this To do this

    Registry Subkey

    Type ReceiveNewProfiles

    Web Service URL

    Type https://localhost/ssprofileswebservice/profileswebservice.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 Profiles 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 user profile.

    Site name

    Type 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 SendNewProfilePort

    Transport Type

    Select CommerceServerProfilesAdapter

    Send Handler

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

    Send Pipeline

    Select XMLTransmit

    Receive Pipeline

    Select XMLReceive

  3. Click Configure, on the CommerceServerProfilesAdapter Properties page, do the following:

    Use this To do this

    Web Service URL

    Type https://localhost/csprofileswebservice/profilewebservice.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 Profiles 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 SendNewProfileAckPort

    Transport Type

    Select FILE

    Send Handler

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

    Send Pipeline

    Select XMLTransmit

  3. Click Configure, and 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 CSProfilesAdapterUsage, and then click Configure.

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

    Bb794704.43385aa8-0303-4ae3-b19e-36ff814a1fbd(en-US,BTS.10).gif

    Use this To do this

    NewProfileReceivePort

    Select ReceiveNewProfilePort

    NewProfileSendPort

    Select SendNewProfilePort

    ProfileAckSendPort

    Select SendNewProfileAckPort

Now you will test the application that you have created and deployed. You will first shop at the Starter Site and connect to the Starter Site and the CSharp Site by using Customer and Orders Manager. Then you will start the orchestration to receive user profiles from the Starter Site, send user profiles to the CSharp Site, and receive acknowledgments in a file directory. Finally, you will verify the results. You should see the user profile created on the Starter Site appear on the CSharp Site and find an XML-based acknowledgment file in the c:\Labs\Output\AckMessages folder.

  1. In Internet Explorer, in the Address box, type http://localhost/startersite.

  2. Click Products, and in the Product list, click Venus.

  3. On the Venus product information page, click Add to Cart.

  4. On the shopped product list page, click Checkout.

  5. If you have an account, in the E-mail address box, type your e-mail address, in the Password box, type your password, and then click Continue. Proceed to step 9.

  6. If you do not have an account, select I do not have an account, and you will be sent to the Sign Up for Your New Account page.

  7. On the Sign Up for Your New Account page, type the relevant information, and then click Create Account.

  8. On the verification page, click Continue.

  9. On the Enter or update Shipping address information page, type the relevant information, and then click Next.

  10. On the Shipping page, select the relevant information, and click Save, and then click Next.

  11. On the Payment page, select the relevant information, and click Save, and then click Next.

  12. On the Confirmation page, click Next, and then click Submit Order.

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

  2. In the Customer and Orders 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 StarterSite, and in the Profiles Web Service box, add the two characters ss after https://localhost/, making sure the Profiles Web Service is https://localhost/ssProfileswebService/ProfilesWebService.asmx, click OK, and then click OK.

    Bb794704.e6f43c63-e157-4b6f-a3b2-a30d63175194(en-US,BTS.10).gif

  1. Click Start, point to Programs, point to Microsoft Commerce Server 2007, and then click Customer and Orders 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 CSharpSite, and in the Catalog Web Service box, add the two characters cs after https://localhost/, making sure the Profiles Web Service is https://localhost/csprofileswebservice/profilewebservice.asmx, click OK, and then click OK again.

    Bb794704.0e616336-8aad-49e9-b43d-f50d2837761b(en-US,BTS.10).gif

  1. In the Customer and Orders Manager dialog box, on the View menu, click Profiles.

  2. In the Search Profiles dialog box, click the Search tab, in the Look in box, select User Object, in the Look for box, select Account status, in the keyword box, select Active Account. You should see no active account.

    Bb794704.fb992032-6c4f-4f76-a433-4c66d4b33478(en-US,BTS.10).gif

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

  1. In the Customer and Orders Manager dialog box, on the tool bar, click the Search button.

  2. In the Search Order dialog box, on the Search tab, in the Look in box, select User Object, in the Look for box, select Account status, and in the keyword box, select Active Account. You should now see an active account similar to this:

    Bb794704.c86c58fd-5768-4e2f-812e-d0a0619a333e(en-US,BTS.10).gif

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

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

    <?xml version="1.0" encoding="utf-8"?><CommerceServerProfilesImportResponse><UserObject GeneralInfo.user_id="{6e55eff0-841e-45bb-b912-6dda9a632281}" /></CommerceServerProfilesImportResponse>
    
Bb794704.note(en-US,BTS.10).gifNote
To stop receiving acknowledgement 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 CSProfilesAdapterUsage, and then click Stop.

Congratulations! You have successfully used Commerce Server Profiles adapter with BizTalk Server 2006 to export orders 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 Profiles adapter as a receive adapter and a solicit-response send adapter. Finally, you tested the BizTalk application. Specifically, you used Customer and Orders Manager to connect to the Starter Site and the CSharp Site, shopped at the Starter Site, and verified that a user profile was successfully exported from the Starter Site to the CSharp Site, and that an acknowledgment message was generated and was placed in the expected folder.

Show:
© 2014 Microsoft