什么是Web服务及其类型 [英] What is a webservice and its types

查看:873
本文介绍了什么是Web服务及其类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是网络服务?



有些人,这是一种使用XML进行联系的形式。

有人说它是Backend服务。



我的项目经理让我用PHP编写一个web服务。我认为它很复杂,但它实际上是访问db for andriod的代码。



在magento webservices中很复杂。



总的来说,这个网络服务对我来说很困惑。



谢谢。

解决方案

在技术领域,服务是用于服务于服务等特定要求可用于支付服务或数据库等中的CRUD操作。



这些服务由客户消费。客户端可以是任何类型,如窗口客户端或基于Web的客户端。这些服务可以存在于不同的机器上,客户端可以存在于不同的机器上。



客户端只不过是使用这些服务的Web应用程序或窗口应用程序。 />


这些服务是写入程序,总是返回客户端使用的一些值。

要使用web服务,我们使用Proxy类,通过它我们可以访问服务中实现的方法。



在.net中我们有不同的服务开发技术,如企业服务,Dot net Remoting,Web服务和最新的一个WCF。



不同的服务技术有不同的数据传输格式,需要不同类型的客户端,例如Eg。 dot net Remoting技术以二进制格式传输数据并使用tcp协议,只有点网客户端可以使用此服务,因为Web服务通过http协议传输xml格式的数据,因此这些Web服务可以被任何类型的服务使用客户。



网络服务的优势在于这些是可互操作的服务。



每个服务都有基本结构称为ABC A-地址,B-绑定,C-合同

地址 - 它包含服务可用于服务此服务的完整地址,我们在客户端使用此地址。



Binding-它告诉将用于交换元数据和数据的协议。



合同 - 它告诉我们哪个班级可以在客户端使用。



在使用这些服务之前我们需要托管这些服务有不同类型的托管可用 - 安慰基于主机,基于Windows的托管,基于Windows服务的托管,IIS托管



托管此服务后我们只能在我们的应用程序中使用这些服务。







如果有人发现错误请评论并改进它。对于更深层次的Web服务,请使用以下链接。





http:// en。 wikipedia.org/wiki/Web_service [ ^ ]

What is a webservice?

Some people it is a form of coummunciation using XML.
Some say that it is Backend service.

My project manager asked me to write a webservice in PHP. I have thought it is complicated but it is actually a code to access the db for andriod.

In magento webservices is complicated.

Overall this webservice is confusing for me.

Thanks.

解决方案

In technology field the services are the written program that is used to serve the specific requirement like services can be used for payment service or for CRUD operation in the database etc.

these services is consumed by the client. client can be of any type like a window client or web based client. These services can be exist on different machine and the client can exist on different machine.

client is nothing but the web application or window application that consumed the services.

these services are the written program that always return some value that used by the client.
To consume the webservices we use the Proxy class through which we can access the methods that implemented in the services.

In .net we have the different technology for services development like Enterprise services, Dot net Remoting, web services and the latest one WCF.

Different service technology have different data transfer format and required different type of client like for Eg. dot net Remoting technology transfer the data in binary format and use tcp protocol and this services can be consumed by only dot net client wheres the web services transfer the data in xml format over the http protocol so these web services can be consumed by any type of client.

the advantage of web services is that these are interoperable services.

every services has the basic structure called as ABC A- addresss, B- Binding , C- contract
Address- its contains the complete address where the service will be available for consuming this service we use this address at the client side.

Binding- its tell the protocol that will be used for exchanging the metadata and data.

Contract- its tell that which class will be available for the use at the client.

before using these services we need to host these services there are different type of hosting available - console based hosting , windows based hosting ,windows service based hosting, IIS hosting

after hosting this services we can only use these services in our application.



if any one find the mistake please comment and improve it. and for more deeper of webservices use the below link.


http://en.wikipedia.org/wiki/Web_service[^]


这篇关于什么是Web服务及其类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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