Title: Web Service ??
1Web Service ??
2?? ??
3Real World
- ??? ???
- ?? ??? ???
- ??? ???
- ??(C, C, Java, C, VB, COBOL, Perl, )? ???
- OS System(Windows(es), Solaris, AIX, HP_UX,
Linux(es), Mainframe(s) )? ??? - ???(C, .Net, Java) ???
4??? ?? ??
- ?? ??? ??? - ????? ??? ??.
- ?? ??? ??? ?? ?? ?????.
- ?? ??? ???? ?? ??? ?? ????? ??? ?????.
- ?? ?? ?? ??
- ??? ?? ?? - Java, XML, (??, ??????, )
- ???? ??? ?? java(VM), .Net(CLR),
- ?? ??? ???? ??? ???? ??? ???. HTTP, SOAP
5DEVELOPER EUTOPIA
- ??? ??? ?? ??? ?? ???? ?? ???? ??? ?? ??, ??,
???? ??? ????. - ??? ??? ?? ?? ??? ?? ??, ??? ???? ?? ??/??? ????
?? ?? ?? ??? ???? ??. - ???? ?? ??? ? ??? ?? ?? ???.
6Welcome to EUTOPIA
- SOA(Service-Oriented Architecture)
- ?? SOA? ?? CORBA, DCOM, DCE, RMI,
- ?? SOA? ?? ??/???? ??? ??
- ???? SOA? ???? ???? ??? ??? ?? ? ?? ?? ?? ????
??. - Service
- work done by one person or group that benefits
another(WordNet) - ??? ?? ??? ???? ??
- Loose-Coupling(??(tightly coupled)? ??)
- Architecture
- the principles of design and construction and
ornamentation of fine buildings - ???? ??? ????? ???? ??
7SOA? ??
Service Broker
Find
Publish
Service Contract
Service Provider
Service Consumer
Interact
Client
Server
8? ?? ??
- (????)?? ?? ??/??/?? ?? ?? ??? ?? ???? ??
- (??? ???)??? ???? ????? ??? ??? ???.
- (?? ??)???? ???? ??? ??? ?? ???.
- (??? ???)?? ??? ??? ??? ??? ?? ?, ??? ?? ???
????. - (?? ??)?? ???? ?? ???? ??? ??? ??.
- (??? ??)?? ??? ?? ??? ??? ????? ???? ??.
- (????)?? ?? ??/??/?? ?? ?? ??? ?? ??? ??? ??? ??.
- (?? ??)??? ??? ?? ?? ?? ??? ?? ???.
- (?? ??)?? ???? ?? ???? ??? ??? ??.
- (??? ??)???? ??.
9SOA? ??
- Infra.
- ?? ?? ?? ??? ??
- ?? ????? ??
- ?? ??
- Internet WEB
- ????
- ?? ???? ??
- ?????
- ?? ???? ???? ??
- ????/??
- HTTP/SMTP
- XML
10Web SOA Web Services
Service Registry
??(Find) UDDI_find_xxx
??(Publish) UDDI_save_xxx
WSDL
Service Provider
Service Requestor
??(Bind) XML
11? ??? ?? ??? ??
- SOAP, WSDL, UDDI, WSEL, WSFL,
- ??? ??? ???? , ??? ???? ?? ?? ? ?? ??
- Wire Stack
- Data format XML, URL encoding
- Data format definition XML Schema
- Wire format
- XML Protocol XML-RPC, SOAP
- Transfer protocol HTTP, SMTP, FTP, Jabber,
- Description Stack
- WSDL What, How, Where
- ?? ??? Interface ??(semantics)? ??? ?? ?????
??? ??? ?? - Discovery Stack
- UDDI service type, service provider,
categorization - Discovery/Publish mechanism is also Web Services
12Web Services
- Web???? XML????? ???? ????, ?? ??? ???? ???? ???
?? ??? ?? - ?? ??? ???? RPC? ?? ??
- HTTP? SMTP?? ?? ??? ?????? ?? ??
- ?????? ??? ??? ???? ??? ??? ??
- ?? ???? ??? ???, e-Business ?????? ??? ????? ?
???? ?? ??
13? ???? ??
- ???? ??? ??? ???
- ???,??? ??/??
- ?? ??? ???? ???
- ?? ??? ???
- XML ??? SOAP? ????
- ???/??
- ??? ?? ????? ??? ?? ???? ??? ???? ? ??
- ??????? ?? ???? ????
- ??? ??
- ??? ??? ??
14Web Applications vs Web Services
Web Applications Web Services ??
Interaction ?? lt-gt ?? ?? lt-gt ?? ???
Protocol HTTP XMLP HTTP, SMTP, FTP, Jabber
??? ?? HTML XML
GUI HTML? Script N/A
Client Browser(??) ??????
15RPC vs Web Services
RPC Web Services ??
coupling tight loose Connection-oriented
dependency Platform/Language N/A
?? RPC RPC, ???
?? ?? ??
???? ?? ?? ?? ?? Stateless
Protocol ?? HTTP, SMTP, FTP, Jabber
Internet Service ??? ??
16Link
- http//wwws.sun.com/
- http//wwws.sun.com/software/learnabout/webservice
s/index.html - http//msdn.microsoft.com/
- http//www-106.ibm.com/developerworks/
- http//www.alphaworks.ibm.com/
- http//www.netegrity.com/solutions/solutions.cfm?p
agewsOverview - http//www.w3c.org
- http//www.oasis-open.org/home/index.php
- http//www.ws-i.org/
- http//www.ietf.org/
- http//www.xmethods.com/
- http//www.webservices.org/
- http//www.apache.org