Skip to main content

CommSetPair

Assigns a specific communication channel to a trading partner pair, establishing the preferred channel for EDI exchange between two ECGrid IDs.

:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::

Method Signature

ArrayOfCommIDInfo CommSetPair(string SessionID, int ECGridIDFrom, int ECGridIDTo, int CommID)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
ECGridIDFromintYesECGrid ID of the sending trading partner
ECGridIDTointYesECGrid ID of the receiving trading partner
CommIDintYesCommID of the channel to assign to this trading partner pair

Response Object — ArrayOfCommIDInfo

Returns an array of CommIDInfo objects reflecting the updated comm channel pairing.

FieldTypeDescription
CommIDintUnique identifier of the comm channel
MailboxIDintMailbox associated with this comm channel
CommTypeNetworkGatewayCommChannelProtocol type
IdentifierstringProtocol-specific identifier
StatusStatusCurrent status of the comm channel
UseTypeUseTypeTest, production, or both
PrivateKeyRequiredboolWhether a private key is required
WithCertsboolWhether certificate details are included
<!-- Example response XML -->
<ArrayOfCommIDInfo>
<CommIDInfo>
<CommID>4521</CommID>
<MailboxID>100</MailboxID>
<CommType>sftp</CommType>
<Identifier>sftp.tradingpartner.com</Identifier>
<Status>Active</Status>
<UseType>Production</UseType>
<PrivateKeyRequired>false</PrivateKeyRequired>
<WithCerts>false</WithCerts>
</CommIDInfo>
</ArrayOfCommIDInfo>

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
using ECGridOSClient;

var client = new ECGridOSPortTypeClient();

// Assign comm channel 4521 to the pair (ECGridIDFrom → ECGridIDTo)
CommIDInfo[] result = await client.CommSetPairAsync(
sessionID,
ECGridIDFrom: 1234567,
ECGridIDTo: 9876543,
CommID: 4521);

foreach (var ch in result)
{
Console.WriteLine($"CommID: {ch.CommID} | Type: {ch.CommType} | Status: {ch.Status}");
}

REST Equivalent

See Set PairPOST /v2/comms/set-pair.