Omar Kooheji Omar Kooheji - 3 months ago 17
Java Question

Getting the endpoint URL from an Axis2 generated Stub

I've generated a web service stub using wsdl2java on Axis2 1.5.6 and I'm creating the Stub and injecting it into my code in my Spring context.

I'd like to log the endpoint URL that the stub is using, but I can't seem to find a way to access it.

The closest I can find is:


But that throws a null pointer exception.


I believe this will get you what you want.