> Hi everybody,
>
>
>
> I need to write a webservice that returns the list of the services
> deployed on the same axis2.
>
> To do that, I need to access the AxisConfiguration somehow.
>
> One way to do it, would be by having AxisServlet in which the
> webService is deployed.
>
You can easily do that by using the following code in side your service
class.
public Class MyService {
public list getServiceList(){
MessageContext msgCtx = MessageContext.getCurrentMessageContext();
AxisConfiguration axisConfig =
msgCtx.getConfigurationContext().getAxisConfiguration();
}
}
Once you have the AxisConfiguration you can do whatever you want to do.
In the meantime have a look at WSO2 WSAS [1] , and the SVN [2], it has
implemented this and some more cool stuff , which you will need in the
future.
[1] : http://wso2.org/projects/wsas/java
[2] : https://wso2.org/repos/wso2/trunk/wsas/java
Thanks
Deepal
>
>
>
> If this is possible, the code will be;
>
>
>
> AxisServlet servlet=//This is what I am looking for, a way to have
> this instance
>
> AxisConfiguration config=servlet.configContext;
>
> Map ListOfServices=config.getServices();
>
>
>
> Since the webService is executed in the context of the AxisServlet,
> then it should be possible that he access the
>
> Does any body know how to do that?
>
> If you have any other way to get the services list or the
> AxisConfiguration instance, I would be thankful..
>
>
>
> Any help is appreciated,
>
> Thanks
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]