You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Martin Craig <m....@rl.ac.uk> on 2004/11/23 17:25:02 UTC

Getting service endpoint

Hi,

Is there a good way to get the endpoint URL of a service?

Currently we are using:

String url =
(String)MessageContext.getCurrentContext().getProperty("transport.url");
but this fails when the request has come through TCPmon. I have also
tried other possibilities, e.g.

MessageContext.getCurrentContext().getService().getServiceDesc().getEndpointURL();

But this (and similar methods) always return null.

Can anyone help?

Thanks,

Martin.