I have a working solution for the requirement as stated below. However, I am NOT convinced that it is cleanly implemented. There are a lot of configuration options in DataPower that I am fuzzy on and though the response comes back, I am not confident about it. Can I get some help on how this should be implemented to avoid any quirky behavior.
Requirement When a SOAP client sends a request that fails schema validation rule in the inbound client->server policy (before going to backend server), our system needs to respond with custom SOAP Fault message and skip backside processing.
Current Solution
My MPG has the following rule configuration:
Client to Server. . .
matches all->sets on-error to call error rule->Validation Action-> . . .
Error rule . . .
matches validation error->sets skip-backside to true->transformation building custom SOAPFault message->results action->sets Content Type header
Any help on this or suggestions for a better way to do this would be helpful. I would like to do the schema validation inside the MPG and not a separate WS Firewall.