<%@
page contentType="text/html;charset=UTF-8" language="java"%><%@
page
	import="org.apache.axis2.Constants,org.apache.axis2.description.AxisOperation,org.apache.axis2.description.AxisService,java.util.Collection,java.util.HashMap,java.util.Iterator"%><html>
	<head>
		<title>List Services</title>
		<style>
BODY {
	background-color: "#FFFFFF";
	leftmargin: "0";
	topmargin: "0";
	font-family: Arial;
	font-size: 11pt;
}

h1 {
	font-family: Arial;
	font-size: 16pt;
	font-weight: bold
}

h2 {
	font-family: Arial;
	font-size: 13pt;
	font-weight: bold;
	color: #5D0D7D
}

ul {
	font-family: Arial;
	font-size: 11pt
}

input {
	font-family: Arial;
	font-size: 8pt;
	font-weight: bold
}

td {
	font-family: Arial;
	font-size: 10pt
}

h3 {
	font-family: Arial;
	font-size: 12pt;
	font-weight: bold
}

TABLE.FULL_BLANK {
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0;
}

TABLE.LOG_IN_FORM {
	height: 200px %;
	border: 1px solid #000000;
	width: 300px %;
	cellspacing: 1px;
	cellpadding: 1px;
	background-color: #f7f7f7;
}

UL.loginUL LI {
	padding: 10pt;
}
</style>
	</head>
	<body>
		<h1>
			Available Services
		</h1>
		<%
			HashMap serviceMap = (HashMap) request.getSession().getAttribute(
					Constants.SERVICE_MAP);
			Collection servicecol = serviceMap.values();
			if (servicecol.size() == 0) {
		%>Available services is Empty.<%
			}
			for (Iterator iterator = servicecol.iterator(); iterator.hasNext();) {
				AxisService axisService = (AxisService) iterator.next();
				Iterator opItr = axisService.getOperations();
				String serviceName = axisService.getName();
		%>
		<div align="left"> 
			<strong><font color="blue"><a href="<%=serviceName%>?wsdl" target="_blank"><%=serviceName%></a> </font></strong></div><h2> 
		</h2>
		<i>Available Operations</i>
		<ul>
			<%
				while (opItr.hasNext()) {
						AxisOperation axisOperation = (AxisOperation) opItr.next();
			%><li><%=axisOperation.getName().getLocalPart()%></li>
			<%
				}
			%>
		</ul>
		<%
			}
		%>
	</body>
</html>