java2db

Top down and Bottom up approach ( java web service )



Based on the requirement, a java programmer can use either Top down or Bottom up approach to develop a web service.

Difference of Top down and Bottom up approach :

Top down and Bottom up approach ( java web service )Top down approach:

Top down and Bottom up approach ( java web service )

In this approach ,we need to create a WSDL (contract) first .By using this WSDL , we can develop a java web service.

When to develop a web service using top down approach ?

If the  service which is not  implemented yet , in that case , use  the  top down approach.

 

Advantages & Disadvantages :

Top down and Bottom up approach ( java web service ) It easier to create a top down web service from a WSDL than a bottom up web service.

 Top down and Bottom up approach ( java web service ) Top down web services have the advantage that you can specify the XSD to use and import it from the WSDL file.

Top down and Bottom up approach ( java web service ) Defining your schema in a separate file allows you to reuse that file in different scenarios(Reusability ).

 

 

  Bottom up approach :

In this approach , first you create a Java bean or EJB bean and then use the web services wizard to create the WSDL file.

When to develop a web service using bottom up approach ?

For an existing (if the service already implemented ) Java class/method(s)  use the bottom up approach.

 

Advantages & Disadvantages :

  The bottom up Web service development bit  faster and easier.

  The initial stage is very easy to develop but the maintenance is hard.

 

create a servletWe still can use the top down approach even though the service implementation already existed.

Note : It is very easy to develop a web service (in any approach) by using java web IDEs like Eclipse , MyEclipse , NetBeans and so on.

 




Related Posts :
How to create WCF web service in C# .NET ( visual studio 2013 )
How to call java SOAP web service in php ( php web service client )
What is RESTful web service (Introduction to RESTful web services)
How to call a web service from another web service (web service chain)
How to provide security to SOAP web services ( JAX-WS )
How to handle custom exceptions using SOAP faults in web services
How to Create a java web service using bottom up approach
Create a java web service from WSDL (Top down approach) in Eclipse
   [will not be published]



^ <