Thanks Brian for help!
I found a way without modifying AxisServlet.
For all which it interests, here is the (stupid) code of my handler:
public void invoke(MessageContext msgContext) throws AxisFault {
if (log.isDebugEnabled())
log.debug("Enter: MigrationHandler::invoke");
try {
AxisEngine engine = msgContext.getAxisEngine();
EngineConfiguration engineConfig = engine.getConfig();
ArrayList list = new ArrayList();
try {
Iterator iter = engineConfig.getDeployedServices();
while(iter.hasNext())
{
list.add((ServiceDesc) iter.next());
}
}
catch (ConfigurationException e) {
e.printStackTrace();
}
// Now I have the deployed services ...
}
catch (Exception e) {
log.error(Messages.getMessage("exception00"), e);
throw AxisFault.makeFault(e);
}
}
So far,
Chris
-----Urspr�ngliche Nachricht-----
Von: Brian Abbott [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 22. Februar 2004 12:16
An: [EMAIL PROTECTED]
Betreff: Re: How to get infos about the deployed Web Services
Oops, sorry, I think and, I volunteer that I could be wrong as there may
already be existing ways to do this, you need to modify AxisServlet in
the org.apache.axis.transport.http package, modify:
protected void reportAvailableServices(HttpServletResponse response,
PrintWriter writer,
HttpServletRequest request)
throws ConfigurationException, AxisFault {
}
To print the information you need.
Brian Abbott
Brian Abbott wrote:
> Hmm... I think you would need to modify
> org.apache.axis.transport.http.AxisServerServlet to do that.
>
> Brian Abbott
>
> Chris Aiken wrote:
>
>> Hi together!
>>
>> How can I realize a Web Service, Handler or AxisPlugin which is able
>> to list
>> all deployed Web Services of an Axis Environment. In addition, it
>> should be
>> possible to indicate all important infos about the deployed Web Services
>> (Path to Class files and so on).
>>
>> I need something like this, because I might access the deployed Web
>> Services
>> (also the code of them) with another application.
>>
>> I would be also thankful for some examples.
>>
>>
>> Thanks in advance,
>> Chris
>>
>>
>>
>> ____________
>> Virus checked by Antivirus-Profi-Paket
>> Version: AVK 14.0.350 from 11.02.2004
>> Virus news: www.antiviruslab.com
>>
>>
>>
>>
>
>
____________
Virus checked by Antivirus-Profi-Paket
Version: AVK 14.0.350 from 11.02.2004
Virus news: www.antiviruslab.com