0

我必须使用 Web 服务,在我自己的网络服务器上,脚本应该定期发出 GET 请求。存在一个包含多个 C# 示例的文档。这应该可以工作(我无法让它在我的 Windows 电脑上运行)。


https://integration.questback.com/integration.svc

您已经创建了一个服务。

要测试此服务,您需要创建一个客户端并使用它来调用该服务。您可以使用命令行中的 svcutil.exe 工具执行此操作,语法如下:

svcutil.exe https://integration.questback.com/Integration.svc?wsdl

这将生成一个配置文件和一个包含客户端类的代码文件。将这两个文件添加到您的客户端应用程序并使用生成的客户端类来调用服务。例如:

C#

class Test
{
    static void Main()
    {
        QuestBackIntegrationLibraryClient client = new QuestBackIntegrationLibraryClient();

        // Use the 'client' variable to call operations on the service.

        // Always close the client.
        client.Close();
    }
}

由于服务器是基于 linux 的,我不知道 C# + XML,我想问是否有办法让它在 linux 服务器上运行,最好使用 Python(我知道这个问题很模糊,我对不起)。

谢谢!

4

0 回答 0