其中C#的SOAP客户端库是最容易使用? [英] Which C# SOAP Client Library is easiest to use?

查看:137
本文介绍了其中C#的SOAP客户端库是最容易使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用C#连接到SOAP Web服务。以前我跳权,尝试任何谷歌抛出我,我想问一下是什么做的干净,最好的办法,其中的大部分工作是为我做的。

I would like to connect to a SOAP web service using C#. Before I jump right in, trying anything Google throws at me I would like to ask what is the cleanest and best way to do it where most of the work is done for me.

我想一个较高水平的方法,在这里我给它一个WSDL,它基本上都会处理很多事情对我来说。当然,我不想做任何的XML,除了看它是什么做调试。

I would like a high level method, where I give it a WSDL and it will basically handle a lot of things for me. I of course don't want to have to do any of the XML, except to see what it is doing to debug.

什么是最好的最高档库/方法,微软已经这样做?请注意,我更关心的是优化开发时间超过性能,虽然有可能不是在这种情况下太大的差别。

What is the nicest fanciest library/method that Microsoft has for doing this? Notice that I'm more concerned with optimizing developer time over performance, though there probably isn't much difference in this situation.

推荐答案

什么阿萨夫说。您可以使用Web引用(约WSDL.EXE包装),并使用一个服务引用(约svcutil.exe的包装器)之间的选择。服务引用是.NET 3.0+和做事的WCF方式的一部分。

What Assaf said. You have the choice between using a Web reference (wrapper around WSDL.exe) and using a Service reference (wrapper around svcutil.exe). Service references are .NET 3.0+ and part of the WCF way of doing things.

我个人仍然使用的Web引用的大部分时间,但情况因人而异。

Personally I still use Web references most of the time, but YMMV.

编辑:<一href="http://andrewtokeley.net/archive/2008/07/10/the-difference-between-ldquoadd-web-referencerdquo-and-ldquoadd-service-referencerdquo.aspx"相对=nofollow>的两个菜单选项截图的:)

这篇关于其中C#的SOAP客户端库是最容易使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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