Home » Java » web services – Java API for a dynamic Soap WSDL-Exceptionshub

web services – Java API for a dynamic Soap WSDL-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

My Java SaaS application uses a soap webservice.

So far I was using Axis2 maven plugin to generate a Java api from the WSDL at compile time.

Now each customer will be able to provide its own WSDL. So the Api depends on the Tenant

Since its a shared SaaS application, I cant generate java classes at compile time anymore.

Are there any well-known solutions to easily build a SOAP message at runtime, validated by a WSDL?
Maybe building the message using strings as we do for JSON??

How to&Answers: