Sei sulla pagina 1di 36

TWS –

TWS – Install and setup TWS EE

TEMENOS EDUCATION CENTRE


Warning
Warni ng:: Thi
Thiss do
docucumen
ment, t, is pr
prot
otec
ecte
tedd by co
copypyrig
right
ht la
laww an
andd in
inte
tern
rnat
atioiona
nall tre
treat
atie
ies.
s. No papart
rt of th
this
is do
docu
cume
mentnt
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, wiwith
thou
outt ththe
e ex
expr
pres
esss wriritt
tten
en perermi
miss
ssiion of TETEME
MENONOS S HE HEAD
ADQ QUA
UARTRTE ERS SA Un Una aut
utho
hori
rize
zedd
repr
reprod
oducucti
tion
on or di
diststri
ribu
buti
tion
on of ththis
is pr
pres
esen
enta
tati
tion
on or an
any y po
port
rtio
ion
n of it
it,, ma
mayy re
resu
sult
lt in se
seve
vere
re ci
civi
vill an
andd cr
crim
imin
inal
al
pena
pe nalt
ltie
ies,
s, an
andd wi
will
ll be pr
pros
osececut
uted
ed to ththe
e ma
maxiximu
mum m ex
extetent
nt po
possi
ssibl
ble
e un
undederr ap
appl
plic
icab
ablele la
law.
w.”” Info
Informa
rmatio
tion
n in thi
this
s
docum
do cumen entt is su
subj
bjec
ectt to ch
chanangege 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
4 Application
Server 

Developer 
1

2
TWS - Web Service Communication

External Interface

Certificate
Server 

1 4

T24
Application
Web Server 
Server 

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)

 XSD-based Temenos plug-in using “Code behind”


representation of the JAXB & AXIS to generate  packages are
T24 system calls T24 business services annotated classes. ready to
execute.

Web
T24 T24 Web Generated Web Deploy
Services
Server 
Service Services Annotated Services Annotated
Definitions Classes Classes Interfaces
Generator  Packages
(WSDL)
JAXB (JDK)
AXIS2 generic
Supporting Technologies Supporting Technologies

T24 provides the service Temenos Eclipse plug- Eclipse developer tool is used to
Deployment target
definitions to be deployed via a is coded to allow manually deploy the “code behind”
dependent on
number of core system calls using browsing of the T24 packages (java only) to the target
selected vendor &
the same meta data as the UI. business services, and runtime, which causes the runtime
configuration of JEE
generation of the “code to generate the WSDL. Otherwise
server.
behind” packages. incumbent tooling is used for
creation based on .XSD
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 > / <TWS Project n ame> 
 /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 Name the component !


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
Summary

 In this unit, you learnt to


 Install TWS Java
 Generate, test and deploy TWS JEE web service
 Use strong data type in TWS

Potrebbero piacerti anche