Skip to main content

CommPair

Returns the communication channels that are active between two trading partners identified by their ECGrid IDs.

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

Method Signature

ArrayOfCommIDInfo CommPair(string SessionID, int ECGridIDFrom, int ECGridIDTo)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
ECGridIDFromintYesECGrid ID of the sending trading partner
ECGridIDTointYesECGrid ID of the receiving trading partner

Response Object — ArrayOfCommIDInfo

Returns an array of CommIDInfo objects representing the comm channels connecting the two trading partners.

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>as2</CommType>
<Identifier>PARTNER-AS2-ID</Identifier>
<Status>Active</Status>
<UseType>Production</UseType>
<PrivateKeyRequired>true</PrivateKeyRequired>
<WithCerts>false</WithCerts>
</CommIDInfo>
</ArrayOfCommIDInfo>

Code Examples

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

var client = new ECGridOSPortTypeClient();

// Find comm channels between two trading partners
CommIDInfo[] pair = await client.CommPairAsync(
sessionID,
ECGridIDFrom: 1234567,
ECGridIDTo: 9876543);

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

REST Equivalent

See Comm PairPOST /v2/comms/pair.