EDI Integrator 2016 .NET Edition
EDI Integrator 2016 .NET Edition
Questions / Feedback?

SetTPInfo Method

A convenient way to set AS2 communication parameters using XML strings.

Syntax

[VB.NET]
Public Sub SetTPInfo(ByVal Profile As String)
[C#]
public void SetTPInfo(string profile);

Remarks

SetTPInfo offers a convenient way to set AS2 communication parameters using XML strings. The format of the XML is the same as provided by the method GetTPInfo of ProfileMgr.

The "self" information should always precede the partner information as shown below.

  AS2Sender as2sender = new AS2Sender();
  
  Profilemgr mgr = new Profilemgr();
  mgr.DataDir = @"C:\as2data";
  
  as2sender.SetTPInfo(mgr.GetTPInfo("self"));
  as2sender.SetTPInfo(mgr.GetTPInfo("partnerOrg"));
  
  as2sender.EDIFile = @"C:\as2Data.x12";
  as2sender.Post();

 
 
Copyright (c) 2020 /n software inc. - All rights reserved.
EDI Integrator 2016 .NET Edition - Version 16.0 [Build 7362]