Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a top-down web service and a bottom-up web service?

In Java, what is the difference between a top-down web service and a bottom-up web service? Also, what is the difference between a SOAP and a REST-ful web service?

like image 346
Maverick Avatar asked May 04 '11 22:05

Maverick


People also ask

What are the two basic Web service design approaches?

Web services can be created using two methods: top-down development and bottom-up development.

What is binding in Web service?

A binding, as defined by Web Services Description Language (WSDL), is similar to an interface, in that it defines a concrete set of operations. Each XML Web service method is an operation within a particular binding.

What is a WSDL file?

WSDL is an XML format for describing network services as a set of endpoints operating on messages containing either document-oriented or procedure-oriented information. The operations and messages are described abstractly, and then bound to a concrete network protocol and message format to define an endpoint.


1 Answers

Top-down means you start with a WSDL and then create all the necessary scaffolding in Java all the way down.

Bottom-up means you start with a Java method, and generate the WSDL from it.

SOAP means that the URL is the same for all invocations, and only the parameters to the Java method differs. REST means that the URL plus the HTTP method invoked on it reflects the operation to be done.

like image 186
Thorbjørn Ravn Andersen Avatar answered Oct 01 '22 16:10

Thorbjørn Ravn Andersen