在 .NET 中访问 UMLS UTS Web 服务时出现问题

发布于 2024-10-09 17:56:42 字数 865 浏览 7 评论 0原文

我正在尝试编写一个使用 .NET 中的 UMLS UTS Web 服务的小型测试应用程序 然而,UMLSKS 服务中的所有方法(例如 findCUIByNormWord、findCUIByNormString)似乎都返回 null。我已检查 CAS 身份验证服务是否返回了正确的代理票证。

        CASService.AuthorizationPortTypeClient CasClient = new AuthorizationPortTypeClient();
        UMLSKS.UMLSKSServicePortTypeClient UmlsKsClient = new UMLSKSServicePortTypeClient();
        string ticket = CasClient.getProxyGrantTicket("<my user name>", "<my password>");
        string proxyTicket = CasClient.getProxyTicket(ticket, "http://umlsks.nlm.nih.gov");
        string umlsVersion = UmlsKsClient.getCurrentUMLSVersion(new CurrentUMLSRequest() { casTicket = proxyTicket });
        ConceptIdGroup cidG = UmlsKsClient.findCUIByNormWord(new ConceptIdNormWordRequest() { casTicket = proxyTicket, release = umlsVersion, searchString = query }); 

谁能指出我哪里出错了?

I am trying to write a small test application that uses the UMLS UTS web services in .NET
However all the methods in the UMLSKS service such as findCUIByNormWord, findCUIByNormString seem to be returning null. I have checked that the correct proxy ticket is being returned by the CAS authentication service.

        CASService.AuthorizationPortTypeClient CasClient = new AuthorizationPortTypeClient();
        UMLSKS.UMLSKSServicePortTypeClient UmlsKsClient = new UMLSKSServicePortTypeClient();
        string ticket = CasClient.getProxyGrantTicket("<my user name>", "<my password>");
        string proxyTicket = CasClient.getProxyTicket(ticket, "http://umlsks.nlm.nih.gov");
        string umlsVersion = UmlsKsClient.getCurrentUMLSVersion(new CurrentUMLSRequest() { casTicket = proxyTicket });
        ConceptIdGroup cidG = UmlsKsClient.findCUIByNormWord(new ConceptIdNormWordRequest() { casTicket = proxyTicket, release = umlsVersion, searchString = query }); 

Can anyone point out where I am going wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落叶缤纷 2024-10-16 17:56:42

呃!票证按每次通话发出。一切都还好。

Duh! The ticket is issued per call. Everything is a-ok.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文