PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

usage of %IntBroker_Fault is not working in custom method.

edited Jun 20, 2017 5:05AM in PeopleTools and Lifecycle Management - PSFT (MOSC) 1 commentAnswered

We have implemented a web service where I am returning my custom message using %IntBroker_Fault. But the response used is not the soap fault instead it is using soap response message.

Scenario is: when I a validate a request parameter I am using %IntBroker_Fault to return my custom fault message, but the response is not bundled in Fault String instead the response is bundled in soap-body.

Sample Pseudo code is:
&var1 = &msg.rootnode.getParameter("abc");
If None(&var1) then
return customerrormthd();
end-if;

method customerrormthd()
&resmsg = createmessage(Operation.msg,%Intbroker_Fault)
&resmsg.setxmldoc("Customstring");
return &resmsg;
end-method;

With the above code My response is like below:

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