perfsonar-dev - perfsonar: r4380 - trunk/geant2-java-sql-ma/conf/axis-1.4
Subject: perfsonar development work
List archive
- From:
- To:
- Subject: perfsonar: r4380 - trunk/geant2-java-sql-ma/conf/axis-1.4
- Date: Fri, 22 Aug 2008 05:51:53 -0400
Author: roman
Date: 2008-08-22 05:51:53 -0400 (Fri, 22 Aug 2008)
New Revision: 4380
Modified:
trunk/geant2-java-sql-ma/conf/axis-1.4/testdepl.jsp
Log:
hardcoded port numbers removed
Modified: trunk/geant2-java-sql-ma/conf/axis-1.4/testdepl.jsp
===================================================================
--- trunk/geant2-java-sql-ma/conf/axis-1.4/testdepl.jsp 2008-08-22 09:45:05
UTC (rev 4379)
+++ trunk/geant2-java-sql-ma/conf/axis-1.4/testdepl.jsp 2008-08-22 09:51:53
UTC (rev 4380)
@@ -25,16 +25,18 @@
rootPath = sc.getRealPath("/");;
if( (parm=request.getParameter("testit")) != null &&
parm.equals("true") )
{
+ String requestURL =
request.getRequestURL().toString();
+ String requestURI = request.getRequestURI();
+ String baseURL = requestURL.substring(0,
requestURL.indexOf(requestURI)) + "/";
-
String
- endpoint = "http://127.0.0.1:8080/" +
perfSONARWebAdmin.admin.service.soapclient.SoapClient.
+ endpoint = baseURL +
perfSONARWebAdmin.admin.service.soapclient.SoapClient.
guessWebServiceUrl(rootPath) , /* this path */
filein = rootPath +
"/WEB-INF/samples/requests/EchoRequest.xml",
fileout= rootPath +
"/WEB-INF/samples/responses/EchoResponse.xml";
int ret = 0;
- if( endpoint.equals("http://127.0.0.1:8080/") ==
false )
+ if( endpoint.equals(baseURL) == false )
{
// out.println("<br/><br/>Root path:" +
(new java.io.File(rootPath)).getCanonicalPath() );
- perfsonar: r4380 - trunk/geant2-java-sql-ma/conf/axis-1.4, svnlog, 08/22/2008
Archive powered by MHonArc 2.6.16.