Skip to main content

CommAdd

Creates a new communication channel for the specified mailbox with the given protocol type and identifier.

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

Method Signature

CommIDInfo CommAdd(string SessionID, int MailboxID, NetworkGatewayCommChannel CommType, string Identifier, UseType UseType, bool PrivateKeyRequired)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
MailboxIDintYesMailbox to associate with the new comm channel
CommTypeNetworkGatewayCommChannelYesProtocol type for the new channel (SFTP, AS2, FTP, etc.)
IdentifierstringYesProtocol-specific identifier (hostname, AS2 ID, URL, etc.)
UseTypeUseTypeYesWhether the channel handles test, production, or both
PrivateKeyRequiredboolYesSet to true if a private key is required for authentication

Response Object — CommIDInfo

Returns the newly created CommIDInfo object.

FieldTypeDescription
CommIDintUnique identifier assigned to the new comm channel
MailboxIDintMailbox associated with this comm channel
CommTypeNetworkGatewayCommChannelProtocol type
IdentifierstringProtocol-specific identifier
StatusStatusInitial status (typically Active)
UseTypeUseTypeTest, production, or both
PrivateKeyRequiredboolWhether a private key is required
WithCertsboolWhether certificate details are included
<!-- Example response XML -->
<CommIDInfo>
<CommID>4530</CommID>
<MailboxID>100</MailboxID>
<CommType>sftp</CommType>
<Identifier>sftp.newpartner.com</Identifier>
<Status>Active</Status>
<UseType>Production</UseType>
<PrivateKeyRequired>false</PrivateKeyRequired>
<WithCerts>false</WithCerts>
</CommIDInfo>

ENUMs

NetworkGatewayCommChannel

ValueDescription
noneNo channel configured
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();

// Add a new SFTP production comm channel for mailbox 100
CommIDInfo newComm = await client.CommAddAsync(
sessionID,
MailboxID: 100,
CommType: NetworkGatewayCommChannel.sftp,
Identifier: "sftp.newpartner.com",
UseType: UseType.Production,
PrivateKeyRequired: false);

Console.WriteLine($"Created CommID: {newComm.CommID}");
Console.WriteLine($"Status: {newComm.Status}");

REST Equivalent

See Create CommPOST /v2/comms/create.