B2B Integration 10.4 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | TPA Folder | Summary of Elements in this Folder | wm.tn.tpa:getTPA
 
wm.tn.tpa:getTPA
Retrieves a TPA. If no TPA is found, the service returns null. For other database or service invocation-related errors, it throws an exception.
Input Parameters
senderID
String The internal ID of the trading partner that has the sender role in the transaction the TPA governs. To specify the unknown partner, use Unknown.
receiverID
String The internal ID of the trading partner that has the receiver role in the transaction the TPA governs. To specify the unknown partner, use Unknown.
agreementID
String The agreement ID of the TPA.
direction
String (optional) Indicates whether the service searches for a TPA where the sender and receiver are switched, if a TPA with the sender/receiver does not exist. Valid values are:
*true - The service only looks for a TPA where the sender/receiver are as specified. If not, no TPA is returned.
*false - If a TPA with the specified sender/receiver does not exist, the service switches the specified sender/receiver and:
1. Searches for a TPA where the sender matches the specified receiver and the receiver matches the specified sender.
2. Returns the TPA if found.
Output Parameters
tpa
Document (optional) The retrieved TPA as an IData object that has the format defined by the wm.tn.rec:tpa IS document type.
error
Document The error reported by the service.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release