Way to validate my XML catalog

329 views
Skip to first unread message

Om Namah Sivayah

unread,
Mar 8, 2021, 2:37:34 AM3/8/21
to Kill Bill users mailing-list

Hi -

Is there a way to validate my XML catalog before I upload it?
When I upload it using KUI, it yields htpp/400 not tell me what the offensive element is in my catalog.

Is looking through logs the only way to debug a rejected catalog? Btw, I am running KillBill locally using docker compose and the logs are not very helpful.

Thanks,

Rk

Pierre-Alexandre Meyer

unread,
Mar 8, 2021, 4:40:23 AM3/8/21
to Om Namah Sivayah, Kill Bill users mailing-list
Hello,

We have an online catalog validator at cloud.killbill.io. Take a look at https://killbill.io/blog/kill-bill-cloud-subscription-billing-testing-made-easy/ for more details.

Hope this helps!


--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/0834405b-cdab-48a1-a083-c2031749e46an%40googlegroups.com.


--
Pierre

Om Namah Sivayah

unread,
Mar 8, 2021, 12:09:11 PM3/8/21
to Pierre-Alexandre Meyer, Kill Bill users mailing-list
Thanks. Perhaps you are referring to the catalog editor? I read the description but I do not see a link to it.

Furthermore, I was hoping to automate the validation and include the step in our CI/CD pipeline.
Is there a REST API or some such that I could POST my catalog to and obtain a validation status with syntax errors, if any?
I can subsume this in a simple Maven plugin.

Thanks,

Rk

Om Namah Sivayah

unread,
Mar 8, 2021, 5:29:22 PM3/8/21
to Kill Bill users mailing-list
Hello...

My attempt to register into KillBill cloud failed with http/500. I used my work email address and a simple password.
It appears that I need to register in order to use the online validator.

Could you please suggest how I could workaround this problem?

Regards,

Rk

Pierre-Alexandre Meyer

unread,
Mar 9, 2021, 4:53:59 AM3/9/21
to Om Namah Sivayah, Kill Bill users mailing-list
Hi,

You can automate the validation using our load-tool jar, see https://docs.killbill.io/latest/userguide_subscription.html#components-catalog-overview

Hope this helps,
--
Pierre

S Ramakrishnan

unread,
Aug 28, 2024, 3:47:58 PM8/28/24
to Kill Bill users mailing-list
I am willing to wrap this up in a Maven plugin so its easier to validate the catalogs during build.
May I contribute this Maven plugin?

Rk

Pierre-Alexandre Meyer

unread,
Aug 28, 2024, 4:17:15 PM8/28/24
to S Ramakrishnan, Kill Bill users mailing-list
Hi Rk,

This sounds like a great addition! We do not maintain a public repository of custom Maven plugins, but if you were to share on this group a link to your GitHub repository, I'm sure this would help the community!

Kind regards,

Reply all
Reply to author
Forward
0 new messages