Exporter (0) Imprimer
Développer tout

Step 6: Configure an XML One-Way Bridge

Mis à jour: janvier 2014

This topic provides instructions on how to configure an Pont unidirectionnel XML. As part of the Pont unidirectionnel XML configuration, we’ll do the following:

  • Configure the pont to process the flat-file message of the type we created earlier.

  • Through promoted properties, extract the value of the OrderId record (before message transformation) and TotalAmount (after message transformation). We’ll track the values for these two as the message gets processed by the pont.

  • Configure the pont to use the Map.trfm Transformation we created earlier.

  • Configure the pont to track the messages it processes.

To configure an Pont unidirectionnel XML

  1. Drag and drop an Pont unidirectionnel XML from toolbox to the Configuration de pont surface. For the Entity Name and Relative Address properties of the bridge, specify the value ProcessOrders.

  2. Double click the Pont unidirectionnel XML on the itinerary designer.

  3. On the Pont unidirectionnel XML design surface, within the Message Types box, click the add icon [ Icône Ajouter ] to open the Message Type Picker dialog box.

  4. In the Message Type Picker dialog box, from the Available message types box, select the PurchaseOrder message type, click the right arrow icon [ Icône de flèche ] to associate the request schema with the Pont unidirectionnel XML, and then click OK. The schema that you selected should now be listed under the Request Message Type section.

  5. Configure the pre-transform Enrich stage to extract the value of the OrderId element in the source schema.

    1. Within the Enrich stage, select the Enrich activity, and then from the Properties pane click the ellipsis button (…) against the Properties property to open the Property Definition dialog box.

    2. In the Property Definitions dialog box, click Add to open the Add Property dialog box. In the Add Property dialog box, do the following:

       

      Section Field Name Description

      Source (Read From)

      Type

      Select Xpath from the drop-down list.

      Identifier

      Specify the Xpath query to extract the value of the OrderId from the request schema.

      TipConseil
      You can get the Xpath query from the schema editor. Select the OrderId element in the schema editor, and in the Properties window look for the value of the Instance Xpath property. That should be the Xpath query for the node.

      Message Type

      Select the schema pertaining to PurchaseOrder.

      Property (Write To)

      Property Name

      Specifies the name of the property that you are defining. For this tutorial, specify OrderId.

      Data Type

      Specifies the data type for the property. For this tutorial, specify string.

    3. Click OK in the Add Property dialog box and then click OK in the Property Definition dialog box.

  6. Configure the pont to use the Transformation created earlier. Within the Transformation stage, select the Xml Transform activity, and then from the Properties window click the ellipsis button (…) against the Maps property to open the Map Selection dialog box.

    From the list of Transformations displayed in the dialog box, select Map.trfm. You created this Transformation in the previous steps.

  7. Configure the post-transform Enrich stage to extract the value of the TotalAmount element in the source schema.

    1. Within the Enrich stage, select the Enrich activity, and then from the Properties pane click the ellipsis button (…) against the Properties property to open the Property Definition dialog box.

    2. In the Property Definitions dialog box, click Add to open the Add Property dialog box. In the Add Property dialog box, do the following:

       

      Section Field Name Description

      Source (Read From)

      Type

      Select Xpath from the drop-down list.

      Identifier

      Specify the Xpath query to extract the value of the TotalAmount from the request schema.

      Message Type

      Select the schema pertaining to Insert.

      Property (Write To)

      Property Name

      Specifies the name of the property that you are defining. For this tutorial, specify TotalAmount.

      Data Type

      Specifies the data type for the property. Specify long.

    3. Click OK in the Add Property dialog box and then click OK in the Property Definition dialog box.

    4. Save changes to the project.

  8. Configure the pont to track message properties and other data, for the OrderId and TotalAmount properties you just promoted.

    1. Go back to the MessageFlowItinerary.bcs file, select the Pont unidirectionnel XML, and from the Properties window, click the ellipsis (…) against Track Properties.

    2. Select the Track message processing events check box to track detailed information such as when a stage starts, completes, or faults; when an activity within a stage starts, completes, or faults; whether an artifact gets retrieved, etc.

    3. Optional. Select the Track all message properties check box, and then select the properties you want to track. Note that the dialog box lists the properties that you promoted within any of the Enrich stages in a bridge.

      For this tutorial, select OrderId and TotalAmount.

    4. Click OK.

  9. Save the pont configuration and go back to the Configuration de pont designer surface.

  10. Connect the FTP source component to the Pont unidirectionnel XML and the pont to the Relais LOB entity.

  11. Set the filter condition on the connector between the pont and the Relais LOB entity.

    1. Click the connector between Pont unidirectionnel XML and the Relais LOB entity.

    2. In the Properties window, click the ellipsis (…) button for Filter Condition.

    3. In the Route Filter Configuration dialog box, set the filter condition to Match All.

    4. Click OK.

  12. Set the Route action so that the outgoing message to the LOB application has a SOAP action header.

    1. Open Server Explorer and navigate to the SQL Server Relais LOB we created earlier. Right click the relay, click Properties, and for the Operations property, copy the value of the first operation.

    2. On the Configuration de pont surface, click the connector between Pont unidirectionnel XML and the Relais LOB entity.

    3. In the Properties window, click the ellipsis (…) button for Route Action. In the Route Actions dialog box, click Add to open the Add Route Action dialog box. In the Add Route Action dialog box, do the following:

    4. Under Property (Read From) section, select Expression, and then paste the value that you copied.

      ImportantImportant
      You must always specify the value for an expression within single quotes.

    5. Under Destination (Write To) section, set the Type to SOAP and the Identifier to Action.

      ImportantImportant
      You must always specify the value for an expression within single quotes.

    6. Click OK in the Add Route Action dialog box to add the route action. Click OK in the Route Actions dialog box and then click Save to save changes to a Projet de service BizTalk.

Voir aussi

Ajouts de la communauté

AJOUTER
Microsoft réalise une enquête en ligne pour recueillir votre opinion sur le site Web de MSDN. Si vous choisissez d’y participer, cette enquête en ligne vous sera présentée lorsque vous quitterez le site Web de MSDN.

Si vous souhaitez y participer,
Afficher:
© 2014 Microsoft