1 | <%--
|
---|
2 | ~ Licensed to the Apache Software Foundation (ASF) under one
|
---|
3 | ~ or more contributor license agreements. See the NOTICE file
|
---|
4 | ~ distributed with this work for additional information
|
---|
5 | ~ regarding copyright ownership. The ASF licenses this file
|
---|
6 | ~ to you under the Apache License, Version 2.0 (the
|
---|
7 | ~ "License"); you may not use this file except in compliance
|
---|
8 | ~ with the License. You may obtain a copy of the License at
|
---|
9 | ~
|
---|
10 | ~ http://www.apache.org/licenses/LICENSE-2.0
|
---|
11 | ~
|
---|
12 | ~ Unless required by applicable law or agreed to in writing,
|
---|
13 | ~ software distributed under the License is distributed on an
|
---|
14 | ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
---|
15 | ~ KIND, either express or implied. See the License for the
|
---|
16 | ~ specific language governing permissions and limitations
|
---|
17 | ~ under the License.
|
---|
18 | --%>
|
---|
19 |
|
---|
20 | <%@ page import="org.apache.axis2.Constants,
|
---|
21 | org.apache.axis2.description.AxisOperation"%>
|
---|
22 | <%@ page import="org.apache.axis2.description.AxisService"%>
|
---|
23 | <%@ page import="java.util.Hashtable"%>
|
---|
24 | <%@ page import="java.util.Iterator"%>
|
---|
25 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
---|
26 | <html>
|
---|
27 | <head>
|
---|
28 | <jsp:include page="include/httpbase.jsp"/>
|
---|
29 | <title>List Single service</title>
|
---|
30 | <link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css">
|
---|
31 | </head>
|
---|
32 | <body>
|
---|
33 | <jsp:include page="include/header.inc"></jsp:include>
|
---|
34 | <jsp:include page="include/link-footer.jsp"></jsp:include>
|
---|
35 | <%
|
---|
36 | String prifix = request.getAttribute("frontendHostUrl") + (String)request.getSession().getAttribute(Constants.SERVICE_PATH) +"services/";
|
---|
37 | %>
|
---|
38 | <%
|
---|
39 | String isFault = (String)request.getSession().getAttribute(Constants.IS_FAULTY);
|
---|
40 | String servicName = request.getParameter("serviceName");
|
---|
41 | if(Constants.IS_FAULTY.equals(isFault)){
|
---|
42 | Hashtable errornessservices =(Hashtable)request.getSession().getAttribute(Constants.ERROR_SERVICE_MAP);
|
---|
43 | %>
|
---|
44 | <h3>This Web axisService has deployment faults</h3><%
|
---|
45 | %><font color="red" ><%=(String)errornessservices.get(servicName) %></font>
|
---|
46 | <%
|
---|
47 |
|
---|
48 | }else {
|
---|
49 |
|
---|
50 | AxisService axisService =
|
---|
51 | (AxisService) request.getSession().getAttribute(Constants.SINGLE_SERVICE);
|
---|
52 | if(axisService!=null){
|
---|
53 | Iterator opItr = axisService.getOperations();
|
---|
54 | //operationsList = operations.values();
|
---|
55 | String serviceName = axisService.getName();
|
---|
56 | %><h2><font color="blue"><a href="<%=prifix + axisService.getName()%>?wsdl"><%=serviceName%></a></font></h2>
|
---|
57 | <font color="blue">Service EPR : </font><font color="black"><%=prifix + axisService.getName()%></font><br>
|
---|
58 | <h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></font></h4>
|
---|
59 | <i><font color="blue">Service Status : <%=axisService.isActive()?"Active":"InActive"%></font></i><br>
|
---|
60 | <%
|
---|
61 | if (opItr.hasNext()) {
|
---|
62 | %><i>Available operations</i><%
|
---|
63 | } else {
|
---|
64 | %><i> There are no Operations specified</i><%
|
---|
65 | }
|
---|
66 | opItr = axisService.getOperations();
|
---|
67 | %><ul><%
|
---|
68 | while (opItr.hasNext()) {
|
---|
69 | AxisOperation axisOperation = (AxisOperation) opItr.next();
|
---|
70 | %><li><%=axisOperation.getName().getLocalPart()%></li>
|
---|
71 | <%
|
---|
72 | }
|
---|
73 | %></ul>
|
---|
74 | <%
|
---|
75 | } else{
|
---|
76 | %>
|
---|
77 | <h3><font color="red" >No services found in this location.</font></h3>
|
---|
78 | <%
|
---|
79 | }
|
---|
80 |
|
---|
81 | }
|
---|
82 | %>
|
---|
83 | <jsp:include page="include/footer.inc"></jsp:include>
|
---|
84 | </body>
|
---|
85 | </html>
|
---|