You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2006/10/25 06:53:37 UTC

svn commit: r467562 - /webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/AxisService.java

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