axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r467562 - /webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/AxisService.java
Date Wed, 25 Oct 2006 04:53:37 GMT
Author: chinthaka
Date: Tue Oct 24 21:53:36 2006
New Revision: 467562

URL: http://svn.apache.org/viewvc?view=rev&rev=467562
Log:
Trying to use the passed ip/host inforamtion while generating the wsdl, rather than re-computing
it.


Modified:
    webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/AxisService.java

Modified: webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/AxisService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/AxisService.java?view=diff&rev=467562&r1=467561&r2=467562
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/AxisService.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/AxisService.java
Tue Oct 24 21:53:36 2006
@@ -577,19 +577,22 @@
                 printWSDLError(out);
             }
         } else {
-            String[] eprArray = getEPRs();
+            String[] eprArray = getEPRs(requestIP);
             getWSDL(out, eprArray, servicePath);
         }
     }
 
     public String[] getEPRs() throws AxisFault {
-        //TODO: Chinthaka Handle the REST EPRs
         String requestIP;
         try {
             requestIP = HttpUtils.getIpAddress();
         } catch (SocketException e) {
             throw new AxisFault("Cannot get local IP address", e);
         }
+        return getEPRs(requestIP);
+    }
+
+    private String[] getEPRs(String requestIP) throws AxisFault {
         AxisConfiguration axisConfig = getAxisConfiguration();
         ArrayList eprList = new ArrayList();
         if (enableAllTransports) {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message