简体   繁体   中英

Get user name from its id..?

I have to communicate with OpenText LiveLink via its WCF interface.

I am using the GetNode function to which I pass a node ID and it returns information about the document.

One of the field returned is "CreatedBy": 797207

I would require to get a user name instead of an ID...How is that feasible?

You can use the getMemberByID method of MemberService WS interface, whose XML request is the following:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:api.ecm.opentext.com" xmlns:urn1="urn:MemberService.service.livelink.opentext.com">
   <soapenv:Header>
      <urn:OTAuthentication>
         <!--Optional:-->
         <urn:AuthenticationToken>?</urn:AuthenticationToken>
      </urn:OTAuthentication>
   </soapenv:Header>
   <soapenv:Body>
      <urn1:GetMemberById>
         <urn1:memberID>?</urn1:memberID>
      </urn1:GetMemberById>
   </soapenv:Body>
</soapenv:Envelope>

In general MemberService (available at http://your-OTCS-server/cws/MemberService.svc ) provides you a lot of other user-related functions:

MemberService的可用方法

You can easily import the WSDL into, say, applications like SoapUI and perform all the testing you may need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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