You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2006/03/17 06:57:13 UTC
svn commit: r386549 - in /webservices/axis2/trunk/java/modules:
core/src/org/apache/axis2/transport/http/ListingAgent.java
webapp/listSingleService.jsp
Author: deepal
Date: Thu Mar 16 21:57:11 2006
New Revision: 386549
URL: http://svn.apache.org/viewcvs?rev=386549&view=rev
Log:
-axis2/services/foo in jsps
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java
webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java?rev=386549&r1=386548&r2=386549&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java Thu Mar 16 21:57:11 2006
@@ -487,6 +487,8 @@
} else {
req.getSession().setAttribute(Constants.SINGLE_SERVICE, serviceObj);
}
+ } else {
+ req.getSession().setAttribute(Constants.SINGLE_SERVICE, null);
}
}
String URI = req.getRequestURI();
Modified: webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp?rev=386549&r1=386548&r2=386549&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp Thu Mar 16 21:57:11 2006
@@ -1,11 +1,21 @@
<%@ page import="org.apache.axis2.Constants,
java.util.Hashtable"%>
+<%@ page import="org.apache.axis2.description.AxisService"%>
+<%@ page import="java.util.Iterator"%>
+<%@ page import="org.apache.axis2.description.AxisOperation"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
- <head><title>List Services</title>
+ <head><title>List Single service</title>
<link href="css/axis-style.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <jsp:include page="include/header.inc"></jsp:include>
+ <jsp:include page="include/link-footer.jsp"></jsp:include>
+ <%String IP=request.getRequestURL().toString();
+ int lastindex = IP.lastIndexOf('/');
+ IP = IP.substring(0,lastindex);
+ String prifix = IP + "/services/";
+ %>
<%
String isFault = (String)request.getSession().getAttribute(Constants.IS_FAULTY);
String servicName = request.getParameter("serviceName");
@@ -17,11 +27,42 @@
<%
}else {
- %>
- Oh! this place seems to be empty!!!</body>
+
+ AxisService axisService =
+ (AxisService) request.getSession().getAttribute(Constants.SINGLE_SERVICE);
+ if(axisService!=null){
+ Iterator opItr = axisService.getOperations();
+ //operationsList = operations.values();
+ String serviceName = axisService.getName();
+ %><h2><font color="blue"><a href="<%=prifix + axisService.getName()%>?wsdl"><%=serviceName%></a></font></h2>
+ <font color="blue">Service EPR : <font color="black"><%=prifix + axisService.getName()%></font>
+ <h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></h4>
+ <%
+ if (opItr.hasNext()) {
+ %><i>Available operations</i><%
+ } else {
+ %><i> There are no Operations specified</i><%
+ }
+ opItr = axisService.getOperations();
+ %><ul><%
+ while (opItr.hasNext()) {
+ AxisOperation axisOperation = (AxisOperation) opItr.next();
+ %><li><%=axisOperation.getName().getLocalPart()%></li>
+<%-- <br>Operation EPR : <%=prifix + axisService.getName().getLocalPart() + "/"+ axisOperation.getName().getLocalPart()%>--%>
+ <%
+ }
+ %></ul>
+ <%
+ } else{
+ %>
+ <h3><font color="red" >No service found in this location</h3>
+ <jsp:include page="include/footer.inc"></jsp:include>
+ </body>
<%
+ }
+
}
%>
-
+<jsp:include page="include/footer.inc"></jsp:include>
</body>
</html>