如何仅使用物理 wsdl 文件生成服务引用 [英] How to generate service reference with only physical wsdl file

查看:35
本文介绍了如何仅使用物理 wsdl 文件生成服务引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我多年来一直在创建和使用 Web 服务,并且始终能够使用 Visual Studio 从客户端创建服务引用.我有一个需要使用的第三方服务,他们拒绝打开他们的安全性,所以我可以看到 wsdl 并进行服务参考.这是一项面向公众的服务,所以我认为不需要这种级别的安全性,但它就是这样.

I have been creating and consuming web services for years and always have been able to use Visual Studio to create a service reference from the client. I have a third party service I need to work with and they refuse to open their security so I can see the wsdl and make the service reference. It's a public facing service so I don't see the need for that level of security but it is what it is.

我知道这是一个 n00b 问题,我很惭愧提出这个问题,但是当我可用的只是客户端 wsdl 的物理副本时,我该如何在我的客户端中创建等效的服务参考信息给我发了电子邮件?web.config 更改、SOAP 数据上的对象层等.就像使用自动化服务引用一样,我只想打开与服务的连接并开始将它与定义的对象一起使用.

I know this is a n00b question and I'm ashamed to be asking it, but how do I do create the equivalent Service Reference information in my client when all I have available to me is a physical copy of the wsdl the client emailed me? The web.config changes, the object layer over the SOAP data, etc. Just like with an automated Service Reference I just want to open a connection to the service and start using it with the defined objects.

据我所知,第三方服务不是 WCF,而是 SOAP.顺便说一句,我正在使用 VS 2010.提前致谢,肯

The third party service is not WCF as far as I can tell but is SOAP. I'm using VS 2010 btw. Thanks in advance, Ken

推荐答案

这可能是最简单的方法

  • 右键单击项目并选择添加服务引用..."
  • 在地址:框中,输入下载/修改的 wsdl 的物理路径 (C: estproject....).
  • 点击开始

这篇关于如何仅使用物理 wsdl 文件生成服务引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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