Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Install TWS EE
Generate web service
Deploy your application
Test your web service
Use strong data type in TWS EE
Objectives
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.
Platform independent
Ease of deployment
Software requirements for TWS EE
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
Install Eclipse (with web tools platform). j2EE projects should be available in
eclipse to support TWS (Java).
T24 Plugins for 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
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
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