English 中文(简体)
添加 wsdl Fedex 文件到 c#. Net
原标题:Adding wsdl Fedex file to c# .Net

我试图使用 FedEx 网络服务启动文件, 我下载了 wsdl 文件 。 我无法找到如何将此添加到工程中 。 MSDN 完全没有帮助 。 如果我尝试“ 添加引用 ”, 它将不允许. wsdl 文件 。 如果我尝试“ 添加服务引用 ”, 它也不允许. wsdl 文件 。 我正试图让 VS 找到 wsdl, 这样我就可以使用 intellisense 开始将 SOP 呼叫写入网络服务 。 我看到了其它问题的答案是简单的“ 添加网络引用 ”, 但这也不允许 Wsdl 文件 。

我知道有办法将.wsdl文件转换为 c#类,

最佳回答

添加 Web 引用只是如此。 它读读 wsdl & amp; 生成 stub 类

我刚刚在 VS2010 中尝试过这个。 将 WSDL 保存为 java 网络服务到磁盘 。 添加服务参考, 然后点击高级, 然后添加 Web 参考 。

在显示类型文件的框中 : 之后单击绿箭头 & amp; bingo, 添加了网络服务 。

也许WSDL是无效的 如果视觉工作室不会认出它?

问题回答

您为何要下载 WSDL 文件, 为什么不在“ 添加网页引用” 中将 URL 给 WSDL 文件? 我是不是漏掉了什么?

问题已经很老了,但我感到增加了更明确的步骤;

  • 登录到您的 Fedex 账户并下载 TrackServices Liz 文件 。

  • 这是一个 API 网络应用程序样本, 但是您只需要找到 TrackServiceDefisions. wsdl 文件链接并复制它 。

  • 一定要把那个链接留在记忆中

  • 在解决方案探索器中单击工程名称

  • Click on Add Web Reference button in Service Reference Settings





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签