Skip to main content

CommList

Returns a filtered list of communication channels based on type, key requirements, use type, and active status.

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

Method Signature

ArrayOfCommIDInfo CommList(string SessionID, NetworkGatewayCommChannel CommType, bool PrivateKeyRequired, UseType UseType, bool ShowInactive, bool WithCerts)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
CommTypeNetworkGatewayCommChannelYesFilter by protocol type; use none to return all types
PrivateKeyRequiredboolYesFilter to channels that require a private key
UseTypeUseTypeYesFilter by use type (Test, Production, or both)
ShowInactiveboolYesWhen true, includes suspended and terminated channels in results
WithCertsboolYesWhen true, includes certificate details in each result

Response Object — ArrayOfCommIDInfo

Returns an array of CommIDInfo objects. Each element contains:

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

ENUMs

NetworkGatewayCommChannel

ValueDescription
noneNo filter — return all types
ftpFTP
sftpSFTP
as2AS2
httpHTTP
oftpOFTP
x400X.400
gisbGISB
rnifRosettaNet
cxmlcXML
ftpsslimplicitFTP over SSL (implicit)
peppolPEPPOL
as4AS4
undefinedUndefined

UseType

ValueDescription
UndefinedNot specified
TestTest traffic only
ProductionProduction traffic only
TestAndProductionBoth test and production traffic

Code Examples

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

var client = new ECGridOSPortTypeClient();

// List all active SFTP production channels (no private key filter, no certs)
CommIDInfo[] channels = await client.CommListAsync(
sessionID,
CommType: NetworkGatewayCommChannel.sftp,
PrivateKeyRequired: false,
UseType: UseType.Production,
ShowInactive: false,
WithCerts: false);

foreach (var ch in channels)
{
Console.WriteLine($"CommID: {ch.CommID} | Mailbox: {ch.MailboxID} | Host: {ch.Identifier}");
}

REST Equivalent

See List CommsPOST /v2/comms/list.