on 06-23-2022 1:39 AM
Is there any way we can validate the XML fields of a SOAP Web service so that the client gets an error message if for example a mandatory field does not contain data and preferably processing is stopped unless they rectify the data?
Currently such messages are failing in PI if this happens but the client still gets a 200 OK. This is an asynchronous scenario so there is no way of validating in backend.
We are on PI 7.5 SP19
Thanks guys. In addition to setting the staging options and Schema Validation option in the ICO, I also had to enforce in the DT (in ESR) the minLength option. Previously I had only specified the Occurence as 1 but this seems not to be respected unless the XML tag being validated is completely missing from the payload. See screenshot.
So now everything is working. Thanks a lot for the contributions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the messaging is EO, then I guess it will not work. When you send data to soap sender adapter, you get 200/201 status as soon as message reaches pi. It does not matter if the message fails or succeeds. This is called decoupling.
Having said that, you can give a try to this note .I am not sure if this will work for EO. 2769880 - No Fault Response Back From SOAP Sender
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in ICO, in inbound processing, you will have schema validation. Just enable validation by adapter. Then ico will validate the xml against Message type/External defintion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Turn off message staging on BI and VI steps.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.