This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes design for webservice publish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
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: 89
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: design for webservice publish