E-IB: Meaning of "The GetURIDocument Method can only be used by REST-based Service Operations. (2,1108)" (Doc ID 2121497.1)

Last updated on MARCH 29, 2016

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.52 and later
Information in this document applies to any platform.

Goal

On PeopleTools 8.52 or later release, an application class implements PS_PT:Integration:IRequestHandler, and is associated to a REST synchronous service operation as its OnRequest handler.

The OnRequest method code of that class has a call to Message class method GetURIDocument(), to retrieve the PeopleSoft Document template that correspondents to that service operation.

When the class object is created in an Application Engine program's PeopleCode step or an online event PeopleCode, and the OnRequest method is invoked, and the below error is triggered:

The GetURIDocument Method can only be used by REST-based Service Operations. (2,1108)

What does this error message mean, why does it happen despite being called from a REST OnRequest handler implementation, and how to prevent it?
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms