1 / 41

Middleware Technology Training Lab Course

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

louis-gill
Download Presentation

Middleware Technology Training Lab Course

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Middleware Technology Training Lab Course

  2. Outline • Lab introduction • Create Web services • Business modeling • Implement a business process • Integrate services through ESB

  3. 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

  4. 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

  5. Outline • Lab introduction • Create Web services • Business modeling • Implement a business process • Integrate services through ESB

  6. 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

  7. Create a Web service from a Java Bean

  8. 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

  9. Create an SCA module Create a temporary SCA module Give a name of the temporary module

  10. Create an SCA component Navigator or package explorer view Create a SCA component Select an interface for a SCA component Copy meta data to the TempMod

  11. Export the SCA component Create a SCA export using Web service binding A concrete WSDL is generated

  12. Generate and Test a Web service

  13. Monitor SOAP request & response (1) 1 TCP/IP monitor is in the Windows-> Preferences menu 3 Start the monitor after creating it 2 Create a new TCP/IP monitor Host name and port under monitor

  14. Monitor SOAP request & response (2) In Web Services Explorer, change the endpoint port to the local monitor port (9085) Monitored SOAP request and response

  15. Outline • Lab introduction • Create Web services • Business modeling • Implement a business process • Integrate services through ESB

  16. 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? Bottom-up Top-down

  17. 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?

  18. 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

  19. Create a WBM project WBM Project Name Directory of business processes Create a process when creating the project

  20. Create a business item Create a business item to represent books Specify book attributes

  21. Create a process (1) Preengage the book Check whether the book is allowed to lend Query whether the book exists. Its output is a business item (book). The probability of book allowed is 50% Input to the process is a String (book name) Notify the reader that the book is not allowed to lend The probability of book found is 50% Notify the reader that the book is not found

  22. Create a process (2) 2 Select an output branch 1 Switch to WPS mode 4 3 Edit a condition expression Edit attributes of the output branch

  23. Export a process from WBM Target directory to keep the exported project Export the process model to WPS 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

  24. Import a process to WID Select to import zip packaged projects Import a SCA module and its library

  25. Simulate a process

  26. Outline • Lab introduction • Create Web services • Business modeling • Implement a business process • Integrate services through ESB

  27. Implement a business process • Import Web services • Implement Java components • Export the BPEL component • Test a SCA component

  28. Import Web services (1) The two WSDLs are for the Query service (AProject) and Notify service (BProject) Copy the WSDL of the imported Web services into the SCA module

  29. 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

  30. Implement Java Components (1) Select Java implementation Select Java package

  31. Implement Java Components (2) Java implementation of the check component Java implementation of the preengage component

  32. Export the business process Select SOAP/HTTP Select Web service binding

  33. Outline • Lab introduction • Create Web services • Business modeling • Implement a business process • Integrate services through ESB

  34. 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

  35. Create a mediation module (1) Add an SCA library Create a mediation module Add an import and a Java component

  36. Create a mediation module (2) Java implementation of Component1 Create a new SDO from a Data Type Set attributes of the SDO

  37. Create a mediation module (3) 2 The interface is completed 1 Create a new interface as the unified interface of the mediation 2 Add the interface to the mediation component

  38. Create a mediation flow (1) Connect interface and references Construct request flow Construct response flow

  39. 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

  40. 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

  41. Delete emulators and use the real services Test a mediation

More Related