Topic
  • 2 replies
  • Latest Post - ‏2013-07-08T19:16:12Z by bount
cantrellr
cantrellr
3 Posts

Pinned topic Calling Workplace Viewer from external web app

‏2009-01-03T01:30:47Z |
We are developing a .NET-based web application that includes components that query and retrieve content from a FileNET CE repository. We are attempting to leverage Workplace to provide our Document Viewing services. We issue URLs that look like:

http://hqdemo1:9080/Workplace/getContent?objectStoreName=EVTFS&objectType=document&id=%7b13397F89-64EB-4DCD-85A2-D44F94FC8D1E%7d

The first document the user attempts to display results in a Workplace sign-in challenge. We tried to modify our request to use the UserToken from the FileNet.Api.Util.UserContext.GetToken.ID. The resulting URL looks something like:

http://hqdemo1:9080/Workplace/getContent?objectStoreName=EVTFS&objectType=document&id=%7b13397F89-64EB-4DCD-85A2-D44F94FC8D1E%7d&ut=SecurityToken-2b69f612-8608-4380-badd-5481d830bdc3

Workplace is not happy with this token and throws a credentials exception (at com.filenet.wcm.toolkit.server.base.WcmSignInPolicy.encodeTokenException (WcmSignInPolicy.java:297).

Any help is greatly appreciated.
Updated on 2009-01-03T18:54:01Z at 2009-01-03T18:54:01Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    693 Posts

    Re: Calling Workplace Viewer from external web app

    ‏2009-01-03T18:54:01Z  
    Workplace user tokens are based on the 3.x Java API Session.getToken() call. They are completely unrelated to the SecurityToken used by the 4.x .NET API.
  • bount
    bount
    3 Posts

    Re: Calling Workplace Viewer from external web app

    ‏2013-07-08T19:16:12Z  
    Workplace user tokens are based on the 3.x Java API Session.getToken() call. They are completely unrelated to the SecurityToken used by the 4.x .NET API.

    Hi DW,

    Do have any idea how we can use gettoken api or similar api with FileNet p8 4.5x.  Actually we are forming a url from our custom application in order to open a document in workplace.

    Bascially just want to know how ti achive gettoken api with FileNet 4.5.x