简体   繁体   English

将C#机器人与网络服务连接

[英]Connect C# bot with a web service

I have a bot on Visual Studio with C# and I need connect it with a web service. 我在Visual Studio上使用C#编写了一个漫游器,需要将其与Web服务连接。 I found this article and followed all the steps, but changing the URL of the step 3 for the URL of the web service that I need ( http://fx.currencysystem.com/webservices/CurrencyServer4.asmx ). 我找到了这篇文章,并按照所有步骤进行操作,但是将步骤3的URL更改为所需的Web服务的URL( http://fx.currencysystem.com/webservices/CurrencyServer4.asmx )。 This doesn't generate any error but I don't know how make calls from the bot to the web service or test if the connection was successful. 这不会产生任何错误,但是我不知道如何从机器人到网络服务进行呼叫或测试连接是否成功。

Can anyone help me or tell me how make it? 谁能帮我或告诉我怎么做? I searched a lot but I can't find documentation to do it. 我进行了很多搜索,但找不到相关文档。

In step 3, the only thing you did was add a reference (download the dll containing all methods and objects needed for your tests). 在第3步中,您所做的唯一一件事就是添加引用(下载包含测试所需的所有方法和对象的dll)。

Now you need to call those methods in your main program 现在您需要在主程序中调用这些方法

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

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