WS Validator - need help to implement

36 views
Skip to first unread message

Nicolas Micoud

unread,
Nov 21, 2022, 5:16:26 AM11/21/22
to iDempiere
Hi,

I'm trying to use WS Validators.
I've read https://wiki.idempiere.org/en/NF1.0_Web_Services_Improvements#WS_Validator but I think I've missed something as the validator is not called.

Here's what I've done :

Add a class which implements IWSValidator:
2022-11-21 11_10_42-deviDempiereTgi - eu.tgi.idempiere.base_src_org_tgi_factories_KunBudgetWebServic.png

Add a xml file in OSGI-INF folder, in order it will be loaded with others:
2022-11-21 11_12_22-.png
nb: I've set the WSType to GLOBAL


But when running, AbstractService.invokeWSValidator and invokeLoginValidator don't find anything and always return null.

I must miss something but I don't see what.

Any idea?

Thanks

Nicolas




Nicolas Micoud

unread,
Nov 21, 2022, 8:58:12 AM11/21/22
to iDempiere
Ok, found

I was using the wrong approach - the setup must be done in plugin.xml:

2022-11-21 14_57_26-Window.png
Reply all
Reply to author
Forward
0 new messages