Web Service Implementation Maitreya, Kishore, Jeff.
-
Upload
quentin-lamb -
Category
Documents
-
view
222 -
download
0
Transcript of Web Service Implementation Maitreya, Kishore, Jeff.
![Page 1: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/1.jpg)
Web Service Implementation
Maitreya, Kishore, Jeff
![Page 2: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/2.jpg)
Objective
Creating a web-service to exploit and get a better understanding of the Web Service Architecture
Learn the usage of SOAP, WSDL and UDDI Perform coordination among parallel services Exploit the feature of parallel processing to
simplify an otherwise very time-taking task of running “phrap” on a chicken EST file
![Page 3: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/3.jpg)
Why Web-Services?
Interoperability Reuse Ubiquitous Flexibility of wrapping the service to
customize as per needs Easy application integration
![Page 4: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/4.jpg)
Tools in WebSphere for Web Services development Discover. Browse the UDDI Business Registries to locate existing
Web services for integration. Create or Transform. Create Web services from existing artifacts,
such as Java beans, enterprise beans. Build. Wrap existing artifacts as SOAP and HTTP GET/POST
accessible services and describe them in WSDL. Assists in generating a Java client proxy to Web services described in WSDL
Deploy. Deploy Web services into the WebSphere Application Server.
Test. Test Web services running locally or remotely in order to get instant feedback.
Publish. Publish Web services to a UDDI v2 Business Registry.
![Page 5: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/5.jpg)
Supported Specifications
Web Services Definition Language (WSDL) Version 1.1
Apache SOAP Version 2.3 Universal Description, Discovery, and
Integration Version 2.0
![Page 6: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/6.jpg)
Web services on WebSphere (WoW)
Service Provider
Service Broker Service Requestor
publish bind
find
![Page 7: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/7.jpg)
Web services on WebSphere (WoW)
Service Provider
Service Broker Service Requestor
publish bind
find
PublishUses IBM’s UDDI 4J
EnquiryUses IBM’s UDDI 4JDiscovery
![Page 8: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/8.jpg)
Web services on WebSphere (WoW)
Service Provider
Service Broker Service Requestor
bind
find
Description WSTK’s java2wsdl
Generate Stub WSTK’s wsdl2javaDescription
publish
![Page 9: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/9.jpg)
Web services on WebSphere (WoW)
Service Provider
Service Broker Service Requestor
bind
find
Request-Response
publish
Apache ProxyGenerated from WSDL
Apache SOAPrpc router
Message router
Apache SOAP 4JJava based SOAP API
![Page 10: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/10.jpg)
Purposed Architecture
Web ServiceProvider
(WebSphereAppication server)
UDDI RegistryContaining service
Description of PhrapWeb service
Web BrowserContaining Client Stub
Of the Web service
Phrap WebService
Phrap WebService
Phrap WebService
* * *
Service Registration
ServiceDiscovery
Service RequestResponse
ParallelInstances
![Page 11: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/11.jpg)
Implemented Architecture
Web ServiceProvider
(WebSphereAppication server)
UDDI RegistryContaining service
Description of PhrapWeb service
Web BrowserContaining Client Stub
Of the Web service
Phrap Service
Phrap Service
WSDL Document
Soap RequestResponse
SocketCommunication
Strauss server
UDDIRequest WSDL
Document
![Page 12: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/12.jpg)
Problem Encountered Software Unavailability
Websphere Server – Unix versionPhrap – Windows Version
Implementation problemsCommunication between Windows and Unix
using SocketsResource constraints on strauss Inability to do socket communication between
ece/eecis machines and localhost
![Page 13: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/13.jpg)
Phrap Execution Time
No. of input ESTs
No. of output ESTs
(contigs + singlets)
Execution time (min)
2,000 1,441 1.5
5,000 3,277 3.25
10,000 5,076 15
20,000 9,405 ~50
50,000 … 150
![Page 14: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/14.jpg)
ServiceProvider
PhrapService
PhrapService
PhrapService
PhrapService
***
ServiceProvider
23 instances Phraping
20,000 ESTs each
ServiceProvider
ServiceProvider
23 chunks of20,000 ESTs
23 chunks of~12,000 ESTs
23 instances Phraping~12,000
ESTs each
PhrapService
PhrapService
PhrapService
PhrapService
***
23 chunks of~5,000 ESTs
PhrapService
PhrapService
PhrapService
PhrapService
**
13 instances Phraping
10,000 ESTs each
…
~50 mins ~25 mins ~15 mins …
∑ = ~200mins
![Page 15: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/15.jpg)
Conclusions
We could substantially reduce the time required to phrap a chicken EST file, by parallel execution of multiple instances of phrap Web Service.
Web Service interface provides an easy, interoperable and reusable application
User is unaware of the underlying complexity of the architecture involved
![Page 16: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/16.jpg)
![Page 17: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/17.jpg)
![Page 18: Web Service Implementation Maitreya, Kishore, Jeff.](https://reader030.fdocuments.net/reader030/viewer/2022032600/56649da85503460f94a95a99/html5/thumbnails/18.jpg)