SOAP Web服务/ VS2010添加服务引用 [英] SOAP Web Service / VS2010 Add Service Reference

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

问题描述

我有获得访问客户网站的在线服务的问题。

I am having problems gaining access to a clients web service online.

如果我有WSDL文件,我可以做VS2010东西与它,所以我可以将其添加为参照,并开始我的C#代码?

If I have the wsdl file, can I do "something" in VS2010 with it so I can add it as a reference and start my C# coding?

感谢保罗

推荐答案

当你进入添加服务引用,允许你输入一个URL文本框,也可以在你的本地文件系统到WSDL的路径。

When you go to "Add Service Reference", the textbox that allows you to enter a URL, can also take a path on your local filesystem to a wsdl.

此外,虽然不是最优的路线,你也可以使用Wsdl.exe用/ svcutil.exe的实用程序(与VS捆绑)来生成一个代理类。添加引用是更好的路要走,但是这是一个额外的选项。

Additionally, while not the optimal route, you can also use the wsdl.exe/svcutil.exe utility (bundled with VS) to generate a proxy class. Adding a reference is the better way to go, but this is an additional option.

这篇关于SOAP Web服务/ VS2010添加服务引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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