自顶向下的 Web 服务和自底向上的 Web 服务有什么区别? [英] What is the difference between a top-down web service and a bottom-up web service?

查看:23
本文介绍了自顶向下的 Web 服务和自底向上的 Web 服务有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Java 中,自顶向下的 Web 服务和自底向上的 Web 服务有什么区别?另外,SOAP 和 REST-ful Web 服务之间有什么区别?

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?

推荐答案

自顶向下意味着您从 WSDL 开始,然后一直向下创建所有必要的 Java 脚手架.

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

自下而上意味着您从 Java 方法开始,并从中生成 WSDL.

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

SOAP 意味着所有调用的 URL 都相同,只有 Java 方法的参数不同.REST 意味着 URL 加上对其调用的 HTTP 方法反映了要完成的操作.

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.

这篇关于自顶向下的 Web 服务和自底向上的 Web 服务有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆