Omar Kooheji Omar Kooheji - 1 year ago 108
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.

Answer Source

I believe this will get you what you want.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download