TWS – TWS – Install and setup TWS EE
TEMENOS EDUCATION CENTRE Warning Warni ng:: Thi This s do docu cumen ment, t, is pr prot otec ecte ted d by co copy pyrig right ht la law w an and d in inte tern rnat atio iona nall tre treat atie ies. s. No pa part rt of th this is do docu cume ment nt m ay ay be reproduced or transm ititted in any form or by any means, electronic or m ec echanical, for any purp pu rpos ose, e, wi with thou outt th the e ex expr pres ess s wri ritt tten en per ermi miss ssiion of TE TEME MENO NOS S HE HEAD ADQ QUA UART RTE ERS SA Un Una aut utho hori rize zed d repr re prod oduc ucti tion on or di dist stri ribu buti tion on of th this is pr pres esen enta tati tion on or an any y po port rtio ion n of it it,, ma may y re resu sult lt in se seve vere re ci civi vill an and d cr crim imin inal al pena pe nalt ltie ies, s, an and d wi will ll be pr pros osec ecut uted ed to th the e ma maxi ximu mum m ex exte tent nt po possi ssibl ble e un unde derr ap appl plic icab able le la law. w.”” Info Informa rmatio tion n in thi this s docum do cumen entt is su subj bjec ectt to ch chan ange ge wi with thou outt no noti tice ce
Objectives
At the end of the session, you will be able to:
Install TWS EE
Generate web service
Deploy your application
Test your web service
Use strong data type in TWS EE
Objectives
At the end of the session, you will be able to:
Install TWS EE
Generate web service
Deploy your application
Test your web service
Use strong data type in TWS EE
What is a Web Service?
TWS - Web Service Creation
Web Server Certificate Server
T24 Application Server
4
Developer
1 3 2
TWS - Web Service Communication External Interface
Certificate Server
1
4
T24 Application Server
Web Server 2
3
Why TWS?
TWS is a tool to expose Service Landscape as web APIs using JCA connectivity.
Compliant to industry standard tools and technology
Minimum dependent on T24 code and vendor specific components
Platform independent
Ease of deployment
Software requirements for TWS EE
Eclipse : requires JDK 6 or above
Ensure that the JAVA_HOME environment variable is set
Ensure that JAVA_HOME\bin folder is appended to PATH variable
Eclipse Juno with Web Tools Platform (WTP)
TWS (EE) Eclipse plug-in (TWS-PLUGIN)
T24 Web Services Composer (Java)
T24 system calls
T24 Server
T24 provides the service definitions to be deployed via a number of core system calls using the same meta data as the UI.
XSD-based representation of the T24 business services
T24 Service Definitions
Temenos plug-in using JAXB & AXIS to generate annotated classes.
Web Services Generator
Temenos Eclipse plugis coded to allow browsing of the T24 business services, and generation of the “code behind” packages.
Generated Annotated Classes
“Code behind”
packages are ready to execute.
Web Services Packages
Web Services Interfaces (WSDL)
Deploy Annotated Classes
JAXB (JDK) AXIS2
generic
Supporting Technologies
Supporting Technologies
Eclipse developer tool is used to manually deploy the “code behind” packages (java only) to the target runtime, which causes the runtime to generate the WSDL. Otherwise incumbent tooling is used for creation based on .XSD
Deployment target dependent on selected vendor & configuration of JEE server.
T24 setup to support TWS
Product required:
WS
Application to be used:
OFS.SOURCE
PW.ACTIVITY
EB.SERVICE
TWS - Service Definition
OFS.SOURCE
‘Attributes’ field should be left blank to receive OFS Response from the ‘callOFS’ method as native OFS response as shown below
The first time you start Eclipse
Install Eclipse (with web tools platform). j2EE projects should be available in eclipse to support TWS (Java).
T24 Plugins for Eclipse
Download T24Plugins and copy it to the dropins folder
Creating TWS project using Eclipse
Creating TWS project using Eclipse
Creating TWS project using Eclipse
Creating TWS project using Eclipse
Creating TWS project using Eclipse
Click here to create the service
Exporting the Web Service using Eclipse
Exporting the Web Service using Eclipse
Strong Typed WSDL
Strong Typed WSDL
Deploy the service created tws.properties
Data type mapping
The T24 data types are: String, Currency, Date, Recurrence, Frequency, Password, Amount, BlockText and imUpload
The Java types that are getting mapped with the fields in XSD as:
String – for T24 types string like Currency, BlockText, imUpload, Recurrence, Frequency, Password
Date - for T24 type Date
Decimal - for T24 type Amount
Mapping with specific data type
This is an example to show that the date is passed as string data in the earlier TWS java version.
With the new TWS java version, the data type of the field is read from the SS and the schema are mapped to the specific data type as shown below:
This ensures that only the valid data can be passed through the web service.
Restricting the data entered
You know that the CURRENCY field holds data of three character length. Earlier it was allowed to enter any three characters input f or the CURRENCY field.
But the new TWS java applies restrictions and hence the web service will accept only three alphabets as an input.
Accessing the service
Start the application server (Run the run.bat in your jboss) Test whether the web services are successfully deployed by browsing to the following URL: http://< h o s t > :< h t t p p o r t > / /services E.g. http://localhost:9089/TEMService/services
Testing Web Service with soap UI
Create a new project in soap UI and load the ‘wsdl’ l ink which was created under jBoss
Testing the web service using soap UI tool
Testing the web service using SOAP UI tool
Web service response in jBoss console
You can see the request and the response in the jboss running terminal.
Sample FT
Try-it-out
Create a Version for Account application
Create a web service for ACCOUNT version(that you have created) using TWS Eclipse tool..
Use the SOAPUI tool to input record.
Note: Create the Web Service with strong data types and check the schema that got generated and create a new web service without strong data type and check the schema that got generated.
Quiz
Description
Tool to expose existing T24 functionality via SOAP web services. Tool which can be used to test the WSDL schema published by TWS Mandatory products that should be available in T24 installation to enable TWS
Name the component !
Summary
In this unit, you learnt to
Install TWS Java
Generate, test and deploy TWS JEE web service
Use strong data type in TWS