middleware technology training lab course
DESCRIPTION
Middleware Technology Training Lab Course. Outline. Lab introduction Create Web services Business modeling Implement a business process Integrate services through ESB. Lab Scenario. A library application Book subscription service Query whether a book exists in a library - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/1.jpg)
Middleware Technology Training Lab Course
![Page 2: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/2.jpg)
Outline
Lab introduction
Create Web services
Business modeling
Implement a business process
Integrate services through ESB
![Page 3: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/3.jpg)
Lab Scenario
A library application
Book subscription service
– Query whether a book exists in a library
– If it exists, query whether it is allowed to lend out
– If it is allowed to lend, subscript the book
Book query service
– Domestic books and foreign books are in different libraries
– The foreign books is charged in USD
– When query a foreign book, its price should be converted from USD to RMB
![Page 4: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/4.jpg)
Lab Environment
Process modeling
– WebSphere Business Modeler (WBM)
Service integration development
– WebSphere Integration Developer (WID)
Runtime
– WebSphere Process Server (WPS)
– An integration test environment embedded into WID
![Page 5: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/5.jpg)
Outline
Lab introduction
Create Web services
Business modeling
Implement a business process
Integrate services through ESB
![Page 6: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/6.jpg)
Create Web services
Create a Web service from a Java Bean
– Create a Web project
– Generate a Web service
Create a Web service from a WSDL
Create a Web service from an abstract WSDL (SCA Interface)
– Obtain a concrete WSDL using WSDL Editor
– Export as a Web service
Test a Web service using Web service explorer
![Page 7: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/7.jpg)
Create a Web service from a Java Bean
![Page 8: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/8.jpg)
Create a Web service from an abstract WSDL (SCA Interface)
Create an SCA module and an SCA component
Export the SCA component and obtain a concrete WSDL
Generate a Web service from the concrete WSDL
Test the Web service
Monitor the SOAP request & response
![Page 9: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/9.jpg)
Create an SCA module
Create a temporary SCA module
Give a name of the temporary module
![Page 10: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/10.jpg)
Create an SCA componentNavigator or package
explorer view
Copy meta data to the TempMod
Create a SCA component
Select an interface for a SCA component
![Page 11: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/11.jpg)
Export the SCA component
Create a SCA export using Web service
bindingA concrete WSDL is
generated
![Page 12: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/12.jpg)
Generate and Test a Web service
![Page 13: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/13.jpg)
Monitor SOAP request & response (1)
TCP/IP monitor is in the Windows-> Preferences menu
Create a new TCP/IP monitor
Host name and port under monitor
1
2
Start the monitor after creating it
3
![Page 14: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/14.jpg)
Monitor SOAP request & response (2)
In Web Services Explorer, change the endpoint port to the local
monitor port (9085)
Monitored SOAP request and response
![Page 15: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/15.jpg)
Outline
Lab introduction
Create Web services
Business modeling
Implement a business process
Integrate services through ESB
![Page 16: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/16.jpg)
Top-Down or Bottom-Up
Create a Web service from a Java Bean
– Top-down?
– Bottom-up?
Create a Web service from a WSDL
– Top-down?
– Bottom-up?Top-down
Bottom-up
![Page 17: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/17.jpg)
Service identification and specification
For the book subscription service in slide 3
Service identification
– List candidate processes and services
Service specification
– Service exposure decisions
– Non-functional requirements
– Message specifications
– Other else?
![Page 18: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/18.jpg)
Create a process in WBM
Screen video
Please use a screen resolution over 1280*1024
– Create a business item
– Create a process
– Export the process to WPS
![Page 19: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/19.jpg)
Create a WBM project
WBM Project Name
Directory of business processes
Create a process when creating the project
![Page 20: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/20.jpg)
Create a business item
Create a business item to represent books
Specify book attributes
![Page 21: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/21.jpg)
Create a process (1)
Input to the process is a String (book name)
Query whether the book exists. Its output is a business item (book).
The probability of book found is 50%
Check whether the book is allowed to lend
The probability of book allowed is 50%
Preengage the book
Notify the reader that the book is not allowed to lend
Notify the reader that the book is not found
![Page 22: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/22.jpg)
Create a process (2)
Switch to WPS mode
1Select an output branch
2
Edit attributes of the output branch
3Edit a condition expression
4
![Page 23: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/23.jpg)
Export a process from WBM
Export the process model to WPS
Target directory to keep the exported project
A module project refers to a module library. A library keeps meta data, such as
interfaces, data types
Package the exported export to a zip file
![Page 24: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/24.jpg)
Import a process to WID
Select to import zip packaged projects
Import a SCA module and its library
![Page 25: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/25.jpg)
Simulate a process
![Page 26: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/26.jpg)
Outline
Lab introduction
Create Web services
Business modeling
Implement a business process
Integrate services through ESB
![Page 27: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/27.jpg)
Implement a business process
Import Web services
Implement Java components
Export the BPEL component
Test a SCA component
![Page 28: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/28.jpg)
Import Web services (1)
Copy the WSDL of the imported Web services into
the SCA module
The two WSDLs are for the Query service (AProject) and Notify
service (BProject)
![Page 29: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/29.jpg)
Import Web services (2)
Drag imported WSDLs to Assembly Diagram to generate Web service
imports
Adjust the assembly diagram, and wire to the Web service imports
![Page 30: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/30.jpg)
Implement Java Components (1)
Select Java implementation
Select Java package
![Page 31: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/31.jpg)
Implement Java Components (2)
Java implementation of the check component Java implementation of the
preengage component
![Page 32: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/32.jpg)
Export the business process
Select Web service binding
Select SOAP/HTTP
![Page 33: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/33.jpg)
Outline
Lab introduction
Create Web services
Business modeling
Implement a business process
Integrate services through ESB
![Page 34: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/34.jpg)
Implement a business process
Create a mediation module
– Create a mediation component
– Connect to target services
Create a mediation flow
– Create a filter mediation
– Create transformation mediations
Export the mediation component
Test the mediation component
![Page 35: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/35.jpg)
Create a mediation module (1)
Create a mediation module Add an SCA library
Add an import and a Java component
![Page 36: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/36.jpg)
Create a mediation module (2)
Java implementation of Component1
Create a new SDO from a Data Type
Set attributes of the SDO
![Page 37: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/37.jpg)
Create a mediation module (3)
Create a new interface as the unified interface of the mediation
1
The interface is completed2
Add the interface to the mediation component
2
![Page 38: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/38.jpg)
Create a mediation flow (1) Connect interface and references
Construct request flow
Construct response flow
![Page 39: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/39.jpg)
Create a mediation flow (2)
Two terminals are in the filter mediation primitive
If the input starts with E, route the message to match1 terminal
![Page 40: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/40.jpg)
Create a mediation flow (3)
Create a new XSLT mapping for a transformation mediation
primitive
Create a new XSLT mapping for a transformation mediation primitive
Define XSLT function
![Page 41: Middleware Technology Training Lab Course](https://reader031.vdocument.in/reader031/viewer/2022032016/56812b73550346895d8f934c/html5/thumbnails/41.jpg)
Test a mediationDelete emulators and use the
real services