EDI Integrator 2016 PHP Edition
EDI Integrator 2016 PHP Edition
Questions / Feedback?

SetTPInfo Method

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

Object Oriented Interface

public function doSetTPInfo($profile);

Procedural Interface

inedi_as2receiver_do_settpinfo($res, $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.

An example usage scenario is shown below.

  AS2Receiver as2receiver = new AS2Receiver();
  
  Profilemgr mgr = new Profilemgr();
  mgr.DataDir = "C:\as2data";
  
  as2receiver.setTPInfo(mgr.getTPInfo("self"));
  as2receiver.readRequest();
  
  as2sender.setTPInfo(mgr.getTPInfo(as2receiver.getAS2From()));
  
  as2receiver.processRequest();
  as2receiver.sendResponse();

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
EDI Integrator 2016 PHP Edition - Version 16.0 [Build 7240]