What is WEX Component?


WEX is a secure data exchange layer that sends and receives data to third-party servers. Components developed with REST, Web Service, or EDI running on the WEX layer are called WEX components.


Coldfusion components and coldfusion pages that can run on WEX form the components of WEX. A WEX component technically works in two modes, processing incoming data and producing results.

Component Mode

The first mod aims to work as a coldfusion component. The targeted method in this mode is to use more than one functionality together. As is known, each WEX is called by a unique name. If this call is configured for a component, then the function name is added to allow branching to that function. Thus, more than one function will work over a single WEX record.

Document Mode

The second mode covers WEX recording on a coldfusion page. Coldfusion page can execute all request and response on itself. However, it is not suitable for multiple functions. If the incoming data is extremely complex and/or it is necessary to return a document (html etc.) as output, it may be necessary to process the request and response directly. In this case, using coldfusion page may be a practical solution.


Creating WEX

To register the WEX component, it is sufficient to enter the Dev Tools module and proceed from the WEX header. While you can access existing WEXs in the list under the WEX heading, it is possible to add a new WEX with the + symbol add button.

The following screen has Reconciliation running as a WEX component. Reconciliation is a reconciliation add-on that sends debit-credit results to the relevant current account to reconcile the current account, receives feedback and performs transactions according to this feedback, and works as a WEX component.

Areas that need special attention when registering WEX

Type: It determines the direction of operation of WEX. It determines whether a WEX aims to operate by receiving data or another system receives data from WEX.
Rest Name: It is the unique call name of WEX. With this name, calls are made in WEX url format.
Authentication: Provides the authorization level. There are two levels, Public and Private. Password-free WEX access is provided at the public level. If it is private, domain, IP, user name and password can be connected to the server to which the data is sent. In addition, it can provide access depending on subscriber management.
Time Plan: On Demand is suitable for services that are provided to run for each call. The periodic option provides data communication (bi-directional) by connecting WEX to an external system at certain periods.
File Path: Specifies the virtual file path of the WEX endpoint file (from Workcube home directory)

Other fields are done in the same way as WO registration.

Feedback

Did you find this content helpful?