<%@ page import="org.apache.axis.Constants, java.util.*, org.apache.axis.description.ServiceDescription, org.apache.axis.description.OperationDescription"%> <%-- /* * Copyright 2002,2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> List Services

Available services


Refresh
<%String IP=request.getRequestURL().toString(); int lastindex = IP.lastIndexOf('/'); IP = IP.substring(0,lastindex); String prifix = IP + "/services/"; %> <% HashMap serviceMap = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP); Hashtable errornessservice =(Hashtable)request.getSession().getAttribute(Constants.ERROR_SERVICE_MAP); boolean status = false; if (serviceMap!=null && !serviceMap.isEmpty()){ HashMap operations; String serviceName = ""; Collection servicecol = serviceMap.values(); Collection operationsList; for (Iterator iterator = servicecol.iterator(); iterator.hasNext();) { ServiceDescription axisService = (ServiceDescription) iterator.next(); operations = axisService.getOperations(); operationsList = operations.values(); serviceName = axisService.getName().getLocalPart(); %>

<%=serviceName%>

Service Description : <%=axisService.getServiceDescription()%>

<% if (operationsList.size() > 0) { %>Available operations<% } else { %> There are no any opeartions specified<% } %> <% status = true; } } if(errornessservice != null){ if(errornessservice.size() > 0){ request.getSession().setAttribute(Constants.IS_FAULTY,Constants.IS_FAULTY); %>

Faulty Services

<% Enumeration faultyservices = errornessservice.keys(); while (faultyservices.hasMoreElements()) { String faultyserviceName = (String) faultyservices.nextElement(); %>

<%=faultyserviceName%>

<% } } request.getSession().removeAttribute(Constants.SERVICE_MAP); status = true; }if(!status){ %> There seems to be no services listed! Try hitting refresh <% } %>