简体   繁体   English

C#VS2012必发网站对wsdl的引用

[英]C# VS2012 Betfair web reference to wsdl

I am trying to connect to the betfair API using this address: 我正在尝试使用以下地址连接到betfair API:

https://api.betfair.com/global/v3/BFGlobalService.wsdl https://api.betfair.com/global/v3/BFGlobalService.wsdl

I have successfully done this for another gambling exchange with no problem at all. 我已经成功地进行了另一场赌博交流,完全没有问题。

When I try and add the web reference VS tells me it is not found. 当我尝试添加Web参考时,VS告诉我找不到它。 When I put it in a browser, same thing (logged in or not logged in to betfair). 当我将其放在浏览器中时,会发生同样的事情(登录或未登录betfair)。

Can anyone tell me what I'm doing wrong?! 谁能告诉我我在做什么错?! Thanks 谢谢

UPDATE: I downloaded some sample code. 更新:我下载了一些示例代码。 I can see the web reference in VS, if I click on update I get the same message as when i try to add one myself (HTTP 401: Gone) 我可以在VS中看到Web参考,如果单击“更新”,则会收到与尝试添加自己的消息相同的消息(HTTP 401:已消失)

The wsdl interface is no more, as of a year or so ago. 大约一年之前,wsdl接口已不复存在。 Try the json interface now available from their API-NG. 尝试从其API-NG现在可以使用的json接口。 Overview here and cSharp sample code here . 概述这里和CSHARP示例代码在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM