tomj        2002/06/11 07:32:03

  Modified:    java/src/org/apache/axis/transport/http
                        SimpleAxisWorker.java
  Log:
  Set the local IP address of the server host as the address to use in the WSDL.
  This replaces the (wrong) localhost hardwiring.
  
  Revision  Changes    Path
  1.4       +2 -1      
xml-axis/java/src/org/apache/axis/transport/http/SimpleAxisWorker.java
  
  Index: SimpleAxisWorker.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis/java/src/org/apache/axis/transport/http/SimpleAxisWorker.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SimpleAxisWorker.java     9 Jun 2002 02:01:10 -0000       1.3
  +++ SimpleAxisWorker.java     11 Jun 2002 14:32:03 -0000      1.4
  @@ -71,6 +71,7 @@
   
   import java.io.OutputStream;
   import java.net.Socket;
  +import java.net.InetAddress;
   
   public class SimpleAxisWorker implements Runnable {
       protected static Log log =
  @@ -276,7 +277,7 @@
                   //  String hostname = socket.getInetAddress().getHostName();
                   // This works for 99% of the uses of SimpleAxisServer,
                   // but is very stupid
  -                String hostname = "localhost";
  +                String hostname = InetAddress.getLocalHost().getHostAddress();
                   // !!! Fix string concatenation
                   String url = "http://"; + hostname + ":" +
                           server.getServerSocket().getLocalPort() + "/" +
  
  
  


Reply via email to