내보내기(0) 인쇄
모두 확장

Step 6: Configure an XML One-Way Bridge

업데이트 날짜: 2014년 1월

This topic provides instructions on how to configure an XML 단방향 연결. As part of the XML 단방향 연결 configuration, we’ll do the following:

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

  • Configure the 연결 to use the Map.trfm 변환 we created earlier.

  • Configure the 연결 to track the messages it processes.

  1. Drag and drop an XML 단방향 연결 from toolbox to the 연결 구성 surface. For the Entity Name and Relative Address properties of the bridge, specify the value ProcessOrders.

  2. Double click the XML 단방향 연결 on the itinerary designer.

  3. On the 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 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.

      Tip
      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 연결 to use the 변환 created earlier. Within the 변환 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 변환s displayed in the dialog box, select Map.trfm. You created this 변환 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 연결 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 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 연결 configuration and go back to the 연결 구성 designer surface.

  10. Connect the FTP source component to the XML 단방향 연결 and the 연결 to the LOB 릴레이 entity.

  11. Set the filter condition on the connector between the 연결 and the LOB 릴레이 entity.

    1. Click the connector between XML 단방향 연결 and the 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 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 연결 구성 surface, click the connector between XML 단방향 연결 and the 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.

      Important중요
      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.

      Important중요
      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 BizTalk Services 프로젝트.

참고 항목

표시:
© 2014 Microsoft