My final year project topic is Web-services using SOA. In this we were planning 开发者_Go百科to build individual components like Login, Profile Page, Captcha, etc.. We will then build a demo web application using those components.
I have two questions :
Do these components(Login, Profile Page, Captcha) qualify as services?
Can these components be built using Java Beans?
They can be services, although almost anything request-able could be considered a service. You could implement it RESTfully and you could send the form in any format such as form-data(easiest), xml, or json.
Yes, especially from the standpoint of the data model. The data sent in can be populated into a java bean which is then processed.
With an SOA you tend to write services such as Login etc and then write applications that leverage the services. Profile Page doesn't sound like a service to me. You could have a User Profile service and then a web application could use this service to build a profile page.
精彩评论