CData BizTalk Adapter for FedEx 2019 - Online Help
Questions / Feedback?

Static Solicit-Response Send Port

CData BizTalk Adapter for FedEx 2019 - Build 19.0.7354

This section provides step-by-step instructions for creating, configuring, and testing a static solicit-response send port using the CData BizTalk Adapter for FedEx 2019.

Using Solicit-Response Send Ports

You can use a static solicit-response send port to execute commands and access the results in BizTalk. You can use send ports to execute updategram commands, SQL commands, and stored procedure operations.

Create and Configure the Send Port

Create a static solicit-response send port and configure it to use the FedEx adapter as its transport type.

  1. If you have not already done so, open your BizTalk application in the BizTalk Administration Console.
  2. In the node for your BizTalk application, right-click Send Ports and select New -> Static Solicit-Response Send Port. The Send Port Properties dialog is displayed.
  3. In the Send Port properties, enter a name for the receive port.
  4. In the Transport Type menu, select CData.FedEx.
  5. In the Send pipeline menu, select the default option, PassThruTransmit.
  6. In the Receive pipeline menu, select the default option, PassThruReceive.

Configure the Adapter

Define the command the adapter will execute in the Transport Properties dialog.

  1. In the send port properties, click the Configure button. The Adapter Transport Properties dialog is displayed.
  2. In the CommandType property, select the command type you want.
  3. If you want to execute an SQL command, enter the command in the SQL Command box.
Refer to FedEx Adapter for a description of the various properties and their functions.

Configure the Connection to FedEx

Configure credentials and other properties required to connect to FedEx in the Connection String Options dialog.

  1. In the send port properties, click Configure. The adapter properties dialog is displayed.
  2. Click the button in the Connection String property. The Connection String Options dialog is displayed.
  3. Enter the connection properties. A typical connection string is below:
    Server='https://gatewaybeta.fedex.com:443/xml';DeveloperKey='alsdkfjpqoewiru';Password='zxczxqqtyiuowkdlkn';AccountNumber='110371337';MeterNumber='240134349';
    PrintLabelLocation='C:\users\username\documents\mylabels';CacheLocation='C:\users\username\documents\fedexcache';
  4. Click Test Connection to verify the values and test connectivity.
Refer to Establishing a Connection for more information about the required connection properties. Refer to Connection String Options for a description of the various properties and their functions.

Create Filters to Route BizTalk Messages Through an Application

To use a solicit-response send port, you need to create another send port and associate it with the BizTalk messages created by the results of the command. To associate a send port with the messages you want, create a filter rule in the properties for that send port. See the following section for a walk-through of a simple application that uses a solicit-response send port and a one-way send port.

Example: Execute Updategrams with a Solicit-Response Send Port

In the example below, the application processes an incoming file that contains an updategram command, executes the command, and outputs the results to a file:

  1. A one-way receive location picks up the XML document containing the updategram.
  2. A solicit-response send port filters on the URI of the receive location. The document is routed to the solicit-response send port.
  3. The solicit-response send port executes the command.
  4. The response from FedEx goes to a one-way send port that writes to a file.

As in the example above, the steps below show how to execute an updategram command from a file and output the results to another send port:

  1. Create and configure a Static One-Way Receive Location. Use the File transport type. You can follow the same procedure to configure a FedEx adapter in Static One-Way Receive Location.
  2. Create a static solicit-response send port.
  3. In the Solicit-Response Send Port properties, click Filters.
  4. In an empty property, set the following values:

    PropertySelect BTS.InboundTransportLocation from the menu.
    ValueEnter the URI of the newly created one-way receive location.

  5. Follow the instructions to create and configure a Static One-Way Send Port.
  6. After the one-way send port is configured, click Filters in the properties for the One-Way Send Port.
  7. In an empty property, set the following values:

    PropertySelect BTS.SPName from the menu.
    ValueEnter the name (not URI) of the solicit-response send port.

 
 
Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 19.0.7354.0