Hi,
How to throw custom soap fault messages from the class mediators.
I have the code like below.
if (ome.getLocalName().equalsIgnoreCase("groupid")){
if (ome.getText() != null){
String soapUserid = ome.getText();
if (!soapUserid.equalsIgnoreCase(groupId)){
logger.debug("Groupid from Session object and SOAPXML not valid");
// TODO: soap fault //here I need to throw soap fault and it will
be captured at the client side.
//return false; <this will stop the message mediation alone>
}
}
This email is confidential. If you are not the addressee tell the sender
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries ("SCGroup")
do not accept liability for
damage caused by this email and may monitor email traffic.