Академический Документы
Профессиональный Документы
Культура Документы
Objectives
Install TWS EE
Generate web service
Deploy your application
Test your web service
Use strong data type in TWS EE
Slide 2
Slide 3
Web
Server
Certificate
Server
T24
Application
Server
Developer
1
3
2
Slide 4
Certificate
Server
4
T24
Application
Server
Web
Server
2
Slide 5
Why TWS?
TWS is a tool to expose Service Landscape as web APIs using JCA connectivity.
Platform independent
Ease of deployment
Slide 6
Slide 7
T24
Server
XSD-based
representation of the
T24 business services
T24
Service
Definitions
Web
Services
Generator
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
Deployment target
dependent on
selected vendor &
configuration of JEE
server.
Slide 8
04 February 2016
Product required:
WS
Application to be used:
OFS.SOURCE
PW.ACTIVITY
EB.SERVICE
Slide 9
Slide 10
OFS.SOURCE
Slide 11
Install Eclipse (with web tools platform). j2EE projects should be available in
eclipse to support TWS (Java).
Slide 12
Slide 13
Slide 14
Slide 15
Slide 16
Slide 17
Click here
to create
the service
Slide 18
Slide 19
Slide 20
Slide 22
Slide 23
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
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.
You know that the CURRENCY field holds data of three character length. Earlier it was
allowed to enter any three characters input for the CURRENCY field.
But the new TWS java applies restrictions and hence the web service will accept only three
alphabets as an input.
Test whether the web services are successfully deployed by browsing to the
following URL:
http://<host>:<http port>/<TWS Project name>/services
E.g. http://localhost:9089/TEMService/services
Slide 28
Create a new project in soap UI and load the wsdl link which was created under
jBoss
Slide 29
Slide 30
Slide 31
You can see the request and the response in the jboss running terminal.
Slide 32
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.
Slide 34
Quiz
Description
Slide 35
Summary
Slide 37
Thank You