Web服务,Web方法与放大器之间的区别;服务器端code? [英] Difference between webservice, web methods & server side code?

查看:126
本文介绍了Web服务,Web方法与放大器之间的区别;服务器端code?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

若干问题困惑我的家伙,我只是新来完全的Web服务。


  

      
  1. 之间有什么区别
      Web服务,Web方法和服务器
      侧面code?


  2.   
  3. 在哪里Web服务
      preferred过服务器端的方法呢?


  4.   
  5. 在哪里Web方法preferred
      要使用?


  6.   
  7. 如何Web服务
      从服务器端回发有什么区别?


  8.   
  9. 是Web服务重量轻?
      它们可以用来保存网页长
      形式呢?


  10.   
  11. 在企业
      网络应用程序,这些其中之一
      我要经常和为什么使用?

  12.   


解决方案

  

什么是网站之间的区别
  服务,Web方法和服务器端
  code?


一个web服务是通常用作一个API,或者换句话说其端用户通常另一个应用程序,而不是一个用户界面的暴露终点。 Web方法是暴露在Web服务的具体方法。

在另一方面,服务器端code适用于任何ASP.NET网页,Web服务,或一般执行其功能的其他技术。


  

在哪里Web服务preferred过
  服务器端的方法呢?


Web服务擅长提出申请与其他编程平台或AJAX请求提供了一个网页兼容。还有许多其他的用途,但典型地使用WCF或HttpHandlers的是在这些情况下更好的选择。


  

在哪里Web方法preferred是
  使用?


Web方法可以在任何.aspx页被使用或者更典型地在一个的.asmx(Web服务)的文件。


  

如何网络服务有所不同
  服务器端回发?


在网页的帖子数据发送到服务器进行处理时服务器端回发。 Web服务是完全不同的。 - 它是由另一个应用程序暴露消耗(或同一应用程序内)的端点


  

是Web服务质量轻?能够
  它们被用来长期保存网页形式
  呢?


没有,Web服务是重量不轻,其实他们是完全相反的,因为他们普遍接受和使用XML(一个庞大的格式)的数据作出反应。然而,这使得他们很容易与其他编程语言来使用。


  

在一个企业的Web应用程序,
  这其中的一个,我应该使用
  频繁为什么?


这是一个非常主观的问题。在.NET框架,每种技术都有一套它擅长,通常可以做其他一些事情(但不是很好)的特点。每个工具都有它的位置,它只是一个配套工具,你的项目的要求,使用的问题。

不过,您提问的其余部分来看,这听起来像你只是组建一个典型的网站,不需要API,在这种情况下,这将是最好用的.aspx页面和code背后

Some questions confusing me guys, I'm just new to web services altogether.

  1. What is the difference between web service, web methods and server side code ?

  2. Where is web service preferred over server side methods?

  3. Where are web methods preferred to be used ?

  4. How does web service differ from server side post back ?

  5. Are web services light weight ? Can they be used to save long web forms as well ?

  6. In an enterprise web application, which one of these should I use frequently and why?

解决方案

What is the difference between web service, web methods and server side code ?

A web service is an exposed end point that is normally used as an API, or in other words its end user is typically another application rather than a user interface. A web method is a particular method that is exposed over a web service.

On the other hand, server-side code applies to any ASP.NET web page, web service, or other technology for general implementation of its functionality.

Where is web service preferred over server side methods?

Web services excel at making an application compatible with other programming platforms or for serving up AJAX requests to a web page. There are many other uses, but typically using WCF or HttpHandlers are better options in those cases.

Where are web methods preferred to be used ?

Web methods can be used in any .aspx page or more typically in a .asmx (web service) file.

How does web service differ from server side post back ?

A server-side postback occurs when a web page posts data to the server for processing. A web service is completely different - it is an endpoint that is exposed for consumption by another application (or within the same application).

Are web services light weight ? Can they be used to save long web forms as well ?

No, web services are not light weight, in fact they are quite the opposite because they generally receive and respond to data using XML (a bulky format). However, this makes them very easy to use with other programming languages.

In an enterprise web application, which one of these should I use frequently and why?

This is a highly subjective question. Each technology in the .NET framework has a set of features that it excels at and can usually do several other things (but not very well). Each tool has its place, it is just a matter of matching the tools to use with the requirements of your project.

However, judging by the rest of your questioning, it sounds like you are just putting together a typical website that doesn't require an API, in which case it would be best to use .aspx pages and code behind.

这篇关于Web服务,Web方法与放大器之间的区别;服务器端code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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