创建和使用Web服务 [英] Creating and consuming web services

查看:87
本文介绍了创建和使用Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开展项目,我需要在web和FORM应用程序之间共享数据库。从我的导游我发现我需要使用网络服务来做同样的事情。所以,我开始在互联网上找到它,但我更深入,更多我感到困惑。

>所以请大家解释一下如何创建WEB服务以及如何使用它。

P.S.如果可能的话,请给我一个图的例子。

I'm working on project in which i need to share database between web and FORM application. From my guide i found that i need to use web service to do same.So, I started to finding on internet about it but deeper i go, more i got confused.
> so guys please explain me about creating of WEB SERVICES and how to consume it.
P.S. If possible then give me example with figure.

推荐答案

非常好。你可以通过它实现。



W eb服务是以独立于平台的方式工作的网络组件。如果您正在使用.NET框架,那么您可能会在其中找到2种服务。

1.)ASP .NET服务(.asmx)

2.) WCF服务(.svc)



以下描述ASMX和WCF服务之间的主要区别(您可以谷歌):

消息结构和序列化

SOAP扩展

传输协议

安全

异常处理

州管理



您可以通过这里 [ ^ ]和此处 [ ^ ]。



我建议你 您的第一个C#Web服务 [ ^ ]

了解Windows Communication Foundation(WCF)初学者教程 [ ^ ]

WCF:从初学者的角度来看&安培;教程 [ ^ ]



-KR
Very well. You can achieve through it.

Web Services are the web components which works in platform independent manner. If you're using .NET framework, then you may find 2 kind of services in it.
1.) ASP .NET Service (.asmx)
2.) WCF Service (.svc)

The following describes the major differences between ASMX and WCF services (you may Google it):
Message Structure and Serialization
SOAP Extensions
Transport Protocols
Security
Exception Handling
State Management

You may find the comparison between ASMX and WCF over here[^] and here[^].

I would suggest you to look at
Your first C# Web Service[^]
A Beginner's Tutorial for Understanding Windows Communication Foundation (WCF)[^]
WCF: From a Beginner's perspective & a Tutorial[^]

-KR


这篇关于创建和使用Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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