PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

Integration Broker REST OnErrorContentType property

edited Aug 11, 2017 10:27AM in PeopleTools and Lifecycle Management - PSFT (MOSC) 5 commentsAnswered ✓

Hello,

I try to create a REST webservice with Peopletools 8.55 by implementing RequestHandler class (PS_PT:Integration:IRequestHandler).

Right now the code generates an error with a "throw create Exception" but even if I set Error Message as text/xml, the result stays in text/plain :

The Peoplecode :

method OnError

   /+ &pRequestMsg as Message +/

   /+ Returns String +/

   /+ Extends/implements PS_PT:Integration:IRequestHandler.OnError +/

   Local Exception &exception = &pRequestMsg.IBException;

   Local XmlDoc &xmlout = CreateXmlDoc("<?xml version='1.0'?><RESULT/>");

   Local XmlNode &tempnode = &xmlout.DocumentElement.AddElement("ERROR_DESCR").AddText(&exception.DefaultText);

   &pRequestMsg.SetXmlDoc(&xmlout);

   Return &xmlout.GenXmlString();

end-method;

Result error message:

HTTP/1.1 409 Conflict

Date: Wed, 31 May 2017 12:35:17 GMT

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center