50 likes | 142 Vues
Enterprise Applications WS2003/04 Assignment-II. Team: Shashikanth. D Bharath Kumar. P Gopi Kishore. D. Web Service for Spices Information . The Business Logic for EJB-Application Developing Web Service Integrating Security in Web service. The Business Logic. Creating CMP Entity Bean
E N D
Enterprise ApplicationsWS2003/04Assignment-II Team:Shashikanth. DBharath Kumar. PGopi Kishore. D
Web Service for Spices Information • The Business Logic for EJB-Application • Developing Web Service • Integrating Security in Web service
The Business Logic • Creating CMP Entity Bean • Connecting CMP Entity Bean with MySQL database using mysql.xml EJBComponents Database RMI SpicesInfo CMP EJB SpicesInfo Java Client
Web Service Database • Creating a serializable Java Bean • Creating Stateless Session Bean • Mapping CMP Entity Bean with java Bean using Session Bean • Deploy Web service using deployment descriptor file web-service.xml • Testing Web service with SOAP Client SpicesInfo Java Client SOAP over HTTP SpicesInfo CMP EJB Apache-AXIS Pea17_SpicesInfo?wsdl Stateless Session EJB Web Components EJB Components
Web Service Security • Generating keys and certificates for client and service • Writing Handlers for Client and Server • Specifying the service handler in Web service deployment descriptor file • Redeploying the Web service • Creating a Deployment descriptor for Client • Creating a SOAP Client • Monitoring encrypting and decrypting in TCP Monitor handleRequest(){ verify(cl_pubk); decrypt(sr_prvk); cleanup(); } handleRequest(){ sign(cl_prvk); encrypt(sr_pubk); } Session EJB service Java client client.ks server.ks cl_prvk, cl_pubk sr_prvk, sr_pubk AXIS server.ts client.ts Service Handler sr_pubk cl_pubk Client Handler Service JVM Client JVM handleResponse(){ verify(sr_pubk); decrypt(cl_prvk); cleanup(); } handleResponse(){ sign(sr_prvk); encrypt(sr_pubk); }