Frage

Ich versuche eine kleine Testanwendung zu schreiben, die die UTS -Webdienste von UMLS in .NET verwendet. Ich habe überprüft, ob das korrekte Proxy -Ticket vom CAS -Authentifizierungsdienst zurückgegeben wird.

        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 }); 

Kann jemand darauf hinweisen, wo ich falsch gehe?

War es hilfreich?

Lösung

DUH! Das Ticket wird pro Anruf ausgestellt. Alles ist A-OK.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top