在 .NET 中访问 UMLS UTS Web 服务时出现问题
我正在尝试编写一个使用 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
呃!票证按每次通话发出。一切都还好。
Duh! The ticket is issued per call. Everything is a-ok.