File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCPJWSD) and the fly likes design for webservice publish Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Services Certification (SCDJWS/OCPJWSD)
Reply Bookmark "design for webservice publish" Watch "design for webservice publish" New topic
Author

design for webservice publish

vasu chowdary
Ranch Hand

Joined: Mar 15, 2008
Posts: 74
I have a question like,for web application we mostly follow three layere architecture jsp --->web--->service---->dao---DB,which is the mostly used architecture for webservice publish?any one explain clearly?
Gabor Kovesdan
Greenhorn

Joined: Mar 20, 2011
Posts: 27

vasu chowdary wrote:I have a question like,for web application we mostly follow three layere architecture jsp --->web--->service---->dao---DB,which is the mostly used architecture for webservice publish?any one explain clearly?


I don't know if I totally understand what kind of answer you expect but I would say it depends on the development model. If you have Java first, I'd create a Façade with a clear interface and coarse-grained methods and publish that as a Web Service endpoint. The rest of the system can be considered a black box. If you have WSDL first, then you generate the endpoint interface from WSDL. Then similarly, you implement the interface but how you do it internally is irrelevant. Use common best practices (layering, separation of concerns, proper encapsulation, etc.). If you have the meet-in-the-middle approach, then you will have a Java interface for your subsystem and an endpoint interface generated from WSDL. Use the GoF Adapter pattern to expose the subsystem with the proper interface.


Sun Certified Java SE 6 Programmer
Oracle Certified Professional, Java EE 5 Web Component Developer
Oracle Certified Professional, Java EE 5 Business Component Developer
Oracle Certified Professional, Java EE 5 Web Services Developer
Oracle Certified Professional, MySQL 5.0 Developer
Oracle Certified Professional, MySQL 5.0 Database Administrator
 
 
subject: design for webservice publish
 
Threads others viewed
Simple Web Service: What to call it?
WebService terminologies
web servicizing a servlet in WSAD 4.0
spring framework to write server side code
Calling .NET webservice from java client
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture