building web service using bpws4j 徐天送 2004/7/14. references suhayi masud, “building a...
Post on 20-Dec-2015
217 views
TRANSCRIPT
![Page 1: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/1.jpg)
Building Web Service using BPWS4J
徐天送2004/7/14
![Page 2: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/2.jpg)
References
Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003
![Page 3: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/3.jpg)
Outline
Web Service Overview BPEL & its Components BPEL Activities Example Conclusion
![Page 4: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/4.jpg)
Web Service Overview Evolution of the Web
Generation 1
Static HTML
HTML
Generation 2
Web Applications
HTMLHTML, XML
HTML, XML
Generation 3
Web Services
![Page 5: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/5.jpg)
Web Service OverviewService-Oriented Architure (SOA)
ServiceRequestor
ServiceDirectory
ServiceProvider
PUBLISH
1
FIND
2
BIND3
![Page 6: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/6.jpg)
Web Service OverviewUnderlying Technology
Ubiquitous Communications: Internet
Universal Data Format: XML
Wire Format: Service Interactions: SOAP
Description: Formal Service Descriptions: WSDL
Directory: Publish & Find Services: UDDI
![Page 7: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/7.jpg)
Web Service OverviewProblem
However, just use Web Service doesn’t support E Business Dialogue
Because Web Service is … Stateless Unreliable
![Page 8: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/8.jpg)
Ubiquitous Communications: Internet
Universal Data Format: XML
Wire Format: Service Interactions: SOAP
Description: Formal Service Descriptions: WSDL
Directory: Publish & Find Services: UDDI
Process: Services Interoperation: BPEL
![Page 9: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/9.jpg)
BPEL
Choreography languages are built on top of the WSDL, it focus on composing stateless Web Services into state-aware e-businessine dialogues.
BPEL defines the choreography of Web Services and the role of the business partners involved in the process.
And the BPWS4J implements BPEL, developed by IBM,
![Page 10: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/10.jpg)
BPEL
![Page 11: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/11.jpg)
BPEL Activities
Basic activities
Invoke Receive Reply
Assign EmptyWait
Throw
!
Sequence Switch While
Structured activities
Flow Pick
Scope
![Page 12: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/12.jpg)
BPEL Activities
Structured Activities Ordinary Sequential Control
sequence, switch, while Concurrency and Synchronization
flow Nondeterministic Choice
pick
![Page 13: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/13.jpg)
Example
Example 1: Authentication
Environment: Tomcat + BPWS4J Test Client: Use Axis SOAP API
![Page 14: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/14.jpg)
Example 1
Web Server(Tomcat)
Id, password
OK or FailureBrowser
Service Provider(BPWS4J)
Call Web Service
Process
receive
invoke
reply
![Page 15: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/15.jpg)
Authentication.bpel
<receive>
<invoke>
<reply>
WSDL
WSDL
Java App
LookupUserService.java
lookupUser.wsdl
Authentication.wsdl
Java App
Client
SOAP
![Page 16: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/16.jpg)
Partner
Variables
![Page 17: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/17.jpg)
Process
![Page 18: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/18.jpg)
Deploy
![Page 19: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/19.jpg)
Deploy OK
![Page 20: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/20.jpg)
Client
![Page 21: Building Web Service using BPWS4J 徐天送 2004/7/14. References Suhayi Masud, “Building a Real-World Web Service” part 1~part4, XML Journal, Feb~May 2003](https://reader034.vdocuments.us/reader034/viewer/2022051516/56649d425503460f94a1e23c/html5/thumbnails/21.jpg)
Conclusion
Web Service is Stateless, Unreliable, so the BPEL support Process into Web Service.