且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

创建和使用Web服务

更新时间:2023-08-31 21:18:40

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



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