Question

I have several web services in the same package that throw a custom exception. The problem is that the generated exception class contains a reference to the web service that generated it, so I can't use the same exception name across multiple web services. Is there a way to make Axis2 generate the exception classes inside the web service classes, the same way it does for other objects? I'm using ADB. I suspect that maybe there's a -E parameter, but since those aren't all documented, it's hard to say.

Was it helpful?

Solution

Here's a very good guide about Axis 2 code-generation parameters. I have used it to a number of tasks like customizing the output packages names (that by default corresponds to the WSDL namespaces).

I hope this helps you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top