Step 3: Creating the Contoso LOB Application Maps for the Price and Availability Project Using BizTalk Mapper
In this step, you create two maps that define the transformation required to successfully exchange messages between the two trading partners. For this scenario, the Contoso ERP system has already standardized on a message format for a Price and Availability request. The two maps will map the request and response messages from the trading partner, Fabrikam, to and from those internally defined Contoso messages, respectively.
To add a reference for the 3A2 PriceAndAvailability Request schema
In Solution Explorer, right-click the ContosoPriceAndAvailability project, and then click Add Reference.
In the Add Reference dialog box, click Browse.
Move to the folder <drive>:\Program Files\Microsoft BizTalk <version> Accelerator for RosettaNet\Bin, and then select the Microsoft.Solutions.BTARN.Schemas.RNPIPs.dll assembly.
Click Add, and then click OK.
To create the 3A2 PriceAndAvailability request to Contoso PriceAndAvailability request map
In Solution Explorer, right-click the ContosoPriceAndAvailability project, point to Add, and then click New Item.
In the Add New Item - ContosoPriceAndAvailability dialog box, select Map Files in the Categories pane, and then select Map in the Templates pane. In the Name box, type PIP3A2RequestToContosoPriceRequest, and then click Add.
To associate the schemas for the PIP3A2RequestToContosoPriceRequest map
In BizTalk Mapper (with PIP3A2RequestToContosoPriceRequest.btm displayed), in the Source Schema pane, click Open Source Schema.
In the BizTalk Type Picker dialog box, expand ContosoPriceAndAvailability, expand References, expand Microsoft.Solutions.BTARN.Schemas.RNPIPs, and then expand Schemas.
Select Microsoft.Solutions.BTARN.Schemas.RNPIPs.
_3A2PriceAndAvailabilityQueryMessageGuideline_v1_3, and then click OK.
In the Destination Schema pane, click Open Destination Schema.
In the BizTalk Type Picker dialog box, expand ContosoPriceAndAvailability, and then expand Schemas.
Select the ContosoPriceAndAvailability.ContosoPriceSchema schema, and then click OK.
In the Root Node for Target Schema dialog box, select the rootPriceRequest schema, and then click OK.
To link schema fields in the PIP3A2RequestToContosoPriceRequest map
In the Destination Schema pane, right-click the <Schema> node, and then click Expand Tree Node.
In the Source Schema pane, right-click the <Schema> node, and then click Expand Tree Node.
Drag the GlobalProductIdentifier field to the ProductID field in the Destination Schema pane.
Note
You can find the GlobalProductIdentifier field in the node Pip3A2PriceAndAvailabilityQuery/ProductPriceAndAvailabilityQuery/
ProductPriceAndAvailability/ProductLineItem/productUnit/
ProductPackageDescription/ProductIdentification.
On the File menu, click Save All to save your changes.