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

查看:201
本文介绍了自上而下的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天全站免登陆