VENDAS: 1-800-867-1389

Step 6: Configure an XML One-Way Bridge

Atualizado: janeiro de 2014

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

  • Configure the ponte 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 ponte.

  • Configure the ponte to use the Map.trfm Transformação we created earlier.

  • Configure the ponte to track the messages it processes.

  1. Drag and drop an Ponte unidirecional XML from toolbox to the Configuração da ponte surface. For the Entity Name and Relative Address properties of the bridge, specify the value ProcessOrders.

  2. Double click the Ponte unidirecional XML on the itinerary designer.

  3. On the Ponte unidirecional XML design surface, within the Message Types box, click the add icon [ ] 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 [ ] to associate the request schema with the Ponte unidirecional 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.

      TipDica
      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 ponte to use the Transformação created earlier. Within the Transformação 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 Transformaçãos displayed in the dialog box, select Map.trfm. You created this Transformação 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 ponte 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 Ponte unidirecional 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 ponte configuration and go back to the Configuração da ponte designer surface.

  10. Connect the FTP source component to the Ponte unidirecional XML and the ponte to the Retransmissão de LOB entity.

  11. Set the filter condition on the connector between the ponte and the Retransmissão de LOB entity.

    1. Click the connector between Ponte unidirecional XML and the Retransmissão de 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 Retransmissão de 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 Configuração da ponte surface, click the connector between Ponte unidirecional XML and the Retransmissão de 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.

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

      ImportantImportante
      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 Projeto do Serviço BizTalk.

Consulte também

Isso foi útil para você?
(1500 caracteres restantes)
Agradecemos os seus comentários
Mostrar:
© 2014 Microsoft