PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

HTTPS status code for Fault message not displaying correctly

edited Dec 12, 2018 1:33PM in PeopleTools and Lifecycle Management - PSFT (MOSC) 8 commentsAnswered

Hi Team,

We have a custom web service where we have configured a fault message with https status code 400.   But we always get a status code 200 in response even for faulty input value.

Configuration:

Code:

import PS_PT:Integration:IRequestHandler;

class GetPymntDetails implements PS_PT:Integration:IRequestHandler

   method GetPymntDetails();

   method OnRequest(&_MSG As Message) Returns Message;

   property integer OnErrorHttpResponseCode;

end-class;

/* constructor */

method GetPymntDetails

end-method;

method OnRequest

   /+ &_MSG as Message +/

   /+ Returns Message +/

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

   Local Message &response;

   Local integer &x, &y, &cnt;

   Local boolean &Error = False;

   Local any &ret;

   Local Rowset &rs1;

   Local Compound &returnCom, &subdoc;

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