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 "Alexander Stockinger (JIRA)" <ji...@apache.org> on 2008/06/06 12:52:45 UTC

[jira] Created: (AXIS2-3843) httpFrontendHostUrl does not affected auto-generated WSDL

httpFrontendHostUrl does not affected auto-generated WSDL
---------------------------------------------------------

                 Key: AXIS2-3843
                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.4
         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
            Reporter: Alexander Stockinger


Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Neil Youngman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709764#action_12709764 ] 

Neil Youngman commented on AXIS2-3843:
--------------------------------------

What I now have locally is patched as follows:

*** SimpleHTTPServer.java.~1~	2008-08-06 17:12:26.000000000 +0100
--- SimpleHTTPServer.java	2009-05-15 09:29:33.000000000 +0100
*************** public class SimpleHTTPServer implements
*** 251,268 ****
       * @see org.apache.axis2.transport.TransportListener#getEPRForService(String,String)
       */
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
          //if host address is present
          if (hostAddress != null) {
              if (embedded != null) {
!                 String endpointRefernce = hostAddress ;
                  if(configurationContext.getServiceContextPath().startsWith("/")){
!                     endpointRefernce =  endpointRefernce +
!                             configurationContext.getServiceContextPath() + "/" + serviceName;
                  } else {
!                     endpointRefernce = endpointRefernce + '/' +
!                             configurationContext.getServiceContextPath() + "/" + serviceName;
                  }
!                 return new EndpointReference[]{new EndpointReference(endpointRefernce + "/")};
              } else {
                  throw new AxisFault("Unable to generate EPR for the transport : http");
              }
--- 251,275 ----
       * @see org.apache.axis2.transport.TransportListener#getEPRForService(String,String)
       */
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
+         Parameter frontEndHostParam = configurationContext.getAxisConfiguration().getParameter(
+             Constants.HTTP_FRONTEND_HOST_URL);
+         if (frontEndHostParam != null) {
+             return new EndpointReference[]
+             {new EndpointReference((String) frontEndHostParam.getValue() + "/" + serviceName + "/")};
+         }
+ 
          //if host address is present
          if (hostAddress != null) {
              if (embedded != null) {
!                 String endpointReference = hostAddress ;
                  if(configurationContext.getServiceContextPath().startsWith("/")){
!                     endpointReference =  endpointReference +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
                  } else {
!                     endpointReference = endpointReference + '/' +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
                  }
!                 return new EndpointReference[]{new EndpointReference(endpointReference + "/")};
              } else {
                  throw new AxisFault("Unable to generate EPR for the transport : http");
              }
*************** public class SimpleHTTPServer implements
*** 277,302 ****
                      localAddress = HttpUtils.getIpAddress(configurationContext.getAxisConfiguration());
                  }
                  if (localAddress == null) {
!                    ipAddress = "127.0.0.1";
!                  } else {
                      ipAddress = localAddress;
!                  }
              } catch (SocketException e) {
                  throw AxisFault.makeFault(e);
              }
          }
          if (embedded != null) {
!             String endpointRefernce = "http://" + ipAddress + ":" + embedded.getPort() ;
              if(configurationContext.getServiceContextPath().startsWith("/")){
!                 endpointRefernce =  endpointRefernce +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
              } else {
!                 endpointRefernce = endpointRefernce + '/' +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
              }
  
! 
!             return new EndpointReference[]{new EndpointReference(endpointRefernce + "/")};
          } else {
              throw new AxisFault("Unable to generate EPR for the transport : http");
          }
--- 284,308 ----
                      localAddress = HttpUtils.getIpAddress(configurationContext.getAxisConfiguration());
                  }
                  if (localAddress == null) {
!                     ipAddress = "127.0.0.1";
!                 } else {
                      ipAddress = localAddress;
!                 }
              } catch (SocketException e) {
                  throw AxisFault.makeFault(e);
              }
          }
          if (embedded != null) {
!             String endpointReference = "http://" + ipAddress + ":" + embedded.getPort() ;
              if(configurationContext.getServiceContextPath().startsWith("/")){
!                 endpointReference =  endpointReference +
!                     configurationContext.getServiceContextPath() + "/" + serviceName;
              } else {
!                 endpointReference = endpointReference + '/' +
!                     configurationContext.getServiceContextPath() + "/" + serviceName;
              }
  
!             return new EndpointReference[]{new EndpointReference(endpointReference + "/")};
          } else {
              throw new AxisFault("Unable to generate EPR for the transport : http");
          }


*** AxisServlet.java.~1~	2008-08-06 17:12:26.000000000 +0100
--- AxisServlet.java	2009-05-15 09:18:37.000000000 +0100
*************** public class AxisServlet extends HttpSer
*** 566,596 ****
      }
  
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
!         //RUNNING_PORT
!         String port = (String) configContext.getProperty(ListingAgent.RUNNING_PORT);
!         if (port == null) {
!             port = "8080";
!         }
!         if (ip == null) {
!             try {
!                 ip = HttpUtils.getIpAddress(axisConfiguration);
!                 if (ip == null) {
!                     ip = "localhost";
                  }
-             } catch (SocketException e) {
-                 throw AxisFault.makeFault(e);
              }
-         }
  
!         String endpointRefernce = "http://" + ip + ":" + port;
!         if (configContext.getServiceContextPath().startsWith("/")) {
!             endpointRefernce = endpointRefernce +
                      configContext.getServiceContextPath() + "/" + serviceName;
!         } else {
!             endpointRefernce = endpointRefernce + '/' +
                      configContext.getServiceContextPath() + "/" + serviceName;
          }
!         EndpointReference endpoint = new EndpointReference(endpointRefernce + "/");
  
          return new EndpointReference[]{endpoint};
      }
--- 566,605 ----
      }
  
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
!         String endpointReference;
!         Parameter frontEndHostParam = configContext.getAxisConfiguration().getParameter(
!             Constants.HTTP_FRONTEND_HOST_URL);
!         if (frontEndHostParam != null) {
!             endpointReference = (String) frontEndHostParam.getValue() + "/" + serviceName;
!         } else {
!             //RUNNING_PORT
!             String port = (String)
!                 configContext.getProperty(ListingAgent.RUNNING_PORT);
!             if (port == null) {
!                 port = "8080";
!             }
!             if (ip == null) {
!                 try {
!                     ip = HttpUtils.getIpAddress(axisConfiguration);
!                     if (ip == null) {
!                         ip = "localhost";
!                     }
!                 } catch (SocketException e) {
!                     throw AxisFault.makeFault(e);
                  }
              }
  
!             endpointReference = "http://" + ip + ":" + port;
!             if (configContext.getServiceContextPath().startsWith("/")) {
!                 endpointReference = endpointReference +
                      configContext.getServiceContextPath() + "/" + serviceName;
!             } else {
!                 endpointReference = endpointReference + '/' +
                      configContext.getServiceContextPath() + "/" + serviceName;
+             }
          }
! 
!         EndpointReference endpoint = new EndpointReference(endpointReference + "/");
  
          return new EndpointReference[]{endpoint};
      }

It seems to work as I would expect, but it hasn't been extensively tested.

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Philip Williams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680878#action_12680878 ] 

Philip Williams commented on AXIS2-3843:
----------------------------------------

Dennis: are you sure that it doesn't work for you as a natural result of auto-detection of your hostname, or the use of <parameter name="hostname"> ? That parameter does affect the WSDL, but doesn't allow for more advanced URL options. In fact, it will insert the $hostname you specify into the middle of http://$hostname:80/ without regard to non-hostname characters.

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIS2-3843.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

Neil, I finally rewrote the code in AxisServlet#getEPRsForService and SimpleHTTPServer#getEPRsForService and merged it into a single method. Note that  your patch isn't entirely correct. The following piece of code is wrong:

(String) frontEndHostParam.getValue() + "/" + serviceName

The reason is that httpFrontendHostUrl is the replacement for the context path (/axis2), not the service context path (/axis2/services). This is consistent with the usage of the parameter in the JSPs and also with the sample/default axis2.xml files.

I tested this with an Apache ProxyPass configuration and it works for WSDLs and for the user interface.

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>            Assignee: Andreas Veithen
>             Fix For: 1.6
>
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Dobri Kitipov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732502#action_12732502 ] 

Dobri Kitipov commented on AXIS2-3843:
--------------------------------------

Hi Andreas,
I would like to share some thoughts about the current fix we have. I have observed the code and it seems to me that introducing new field for the TransportInDescription into the SimpleHTTPServer is redundant:

  private TransportInDescription trpInDesc;

If we have a closer look into the code we can see that when SimpleHTTPServer is initialized it always invokes its public SimpleHTTPServer(HttpFactory httpFactory) constructor. In it we have the following lines of code here (excerpt):

        TransportInDescription httpDescription =
                new TransportInDescription(Constants.TRANSPORT_HTTP);
        httpDescription.setReceiver(this);
        trpInDesc = httpDescription;
        httpFactory.getListenerManager().addListener(httpDescription, true);

In the end when ListenreManager#addListener(httpDescription, true); is invoked it sets the TransportIn Desc to the axis2 configuration object:

   configctx.getAxisConfiguration().addTransportIn(trsIn);

Here I am not 100% that this is correct, since it causes the replacement of the original http transportIn (if any at all) set into the axis2.xml. But I cannot  think of a use case that may really cause a problem. And AxisConfiguration object in fact is not a static representation of the axis2.xml. So let's say there is no problem. If you can think of any, please share it.

Let;s go back to the main topic. 
So at the end when HTTPTransportUtils#getEPRsForService method is invoked we can just retrieve the transportIn description calling:

  TransportInDescription trpInDescAxis = axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTP);

In the end we get rid of all the redundant code we have if introducing with the new private TransportInDescription trpInDesc; field of the SimpleHTTPServer. 

If you think that this concept is ok I can commit the patches into the Axis2 trunk with my committer's account.

Thanks,
Dobri



> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>            Assignee: Andreas Veithen
>             Fix For: 1.6
>
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Neil Youngman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709750#action_12709750 ] 

Neil Youngman commented on AXIS2-3843:
--------------------------------------

The code from the JSP (modules/webapp/src/main/webapp/axis2-web/include/httpbase.jsp) handling httpFrontendHostUrl is:

    if (frontendHostUrl != null) {
      stringBuffer.append(frontendHostUrl);
    } else {
      String scheme = aRequest.getScheme();
      stringBuffer.append(scheme);
      stringBuffer.append("://");
      stringBuffer.append(aRequest.getServerName());
      if (("http".equalsIgnoreCase(scheme) && aRequest.getServerPort() != 80) || "https".equalsIgnoreCase(scheme) && aRequest.getServerPort() != 443)
      {
        stringBuffer.append(":");
        stringBuffer.append(aRequest.getServerPort());
      }
      // I think i saw web containers return null for root web context
      if (aRequest.getContextPath() != null) {
        stringBuffer.append(aRequest.getContextPath());
      }
    }

I'm not too sure of the terminology, it seems to substitute everything from the http at the start, right through to the context path, e.g.
  <parameter name="httpFrontendHostUrl">https://someotherhost/context</parameter>
changes
  http://10.20.30.40:50/axis2/services/
to
  https://someotherhost/context/services

Is that what you would call the service path?

As an aside, shouldn't the examples use example.com, example.net, etc, per the RFCs rather than things like myhost.com?

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen reassigned AXIS2-3843:
--------------------------------------

    Assignee: Andreas Veithen

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>            Assignee: Andreas Veithen
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Boris Milanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681812#action_12681812 ] 

Boris Milanov commented on AXIS2-3843:
--------------------------------------

On the other hand, the "hostname" parameter is used only for the wsdl generation, the admin page EPR is not changed.

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen updated AXIS2-3843:
-----------------------------------

    Component/s:     (was: wsdl)
                 transports

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>            Assignee: Andreas Veithen
>             Fix For: 1.6
>
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709614#action_12709614 ] 

Andreas Veithen commented on AXIS2-3843:
----------------------------------------

Looking at the implementations of getEPRsForService in AxisServlet and SimpleHTTPServer, it is clear that only "hostname" is used, but not "httpFrontendHostUrl". This should be easy to fix, but we need to reverse engineer the JSP to determine what is the exact definition of the "httpFrontendHostUrl" parameter (does it map to the root, the context path or the service path?).

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Dennis Kieselhorst (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667070#action_12667070 ] 

Dennis Kieselhorst commented on AXIS2-3843:
-------------------------------------------

Still occurs in 1.4.1.

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Dennis Kieselhorst (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Kieselhorst updated AXIS2-3843:
--------------------------------------

    Comment: was deleted

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Alexander Stockinger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Stockinger updated AXIS2-3843:
----------------------------------------

    Summary: httpFrontendHostUrl does not affect auto-generated WSDL  (was: httpFrontendHostUrl does not affected auto-generated WSDL)

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Issue Comment Edited: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Philip Williams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680878#action_12680878 ] 

Philip Williams edited comment on AXIS2-3843 at 3/13/09 7:34 AM:
-----------------------------------------------------------------

If someone thinks this parameter works for them: please first see if it's working for you only as a natural result of auto-detection of your hostname (which, by the way, also doesn't seem to work properly either!), or the use of <parameter name="hostname"> ? That parameter does affect the WSDL, but doesn't allow for more advanced URL options. In fact, it will insert the $hostname you specify into the middle of http://$hostname:80/ without regard to non-hostname characters.

[Apologies to Dennis, I misinterpreted the JIRA changelog and thought he was saying it worked for him.]

      was (Author: unordained):
    Dennis: are you sure that it doesn't work for you as a natural result of auto-detection of your hostname, or the use of <parameter name="hostname"> ? That parameter does affect the WSDL, but doesn't allow for more advanced URL options. In fact, it will insert the $hostname you specify into the middle of http://$hostname:80/ without regard to non-hostname characters.
  
> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Dennis Kieselhorst (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667068#action_12667068 ] 

deki edited comment on AXIS2-3843 at 1/25/09 2:11 AM:
--------------------------------------------------------------------

Works for me in 1.4.1, but I specified
<parameter name="httpFrontendHostUrl">https://myhostname </parameter>
and the result in the auto-generated WSDL is without https and with port 80:
<soap:address location="http://myhostname:80/....

      was (Author: deki):
    Works for me in 1.4.1, but I specified
<parameter name="httpFrontendHostUrl">https://myhostname</parameter>
and the result in the auto-generated WSDL is without https and with port 80:
<soap:address location="http://myhostname:80/....
  
> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Dennis Kieselhorst (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667068#action_12667068 ] 

Dennis Kieselhorst commented on AXIS2-3843:
-------------------------------------------

Works for me in 1.4.1, but I specified
<parameter name="httpFrontendHostUrl">https://myhostname</parameter>
and the result in the auto-generated WSDL is without https and with port 80:
<soap:address location="http://myhostname:80/....

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Dobri Kitipov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733150#action_12733150 ] 

Dobri Kitipov commented on AXIS2-3843:
--------------------------------------

Thank you for the reply. I will try to spend some more time on this and suggest a solution. But for the time being we will leave it as it is.

Thanks,
Dobri

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>            Assignee: Andreas Veithen
>             Fix For: 1.6
>
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Dennis Kieselhorst (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681004#action_12681004 ] 

Dennis Kieselhorst commented on AXIS2-3843:
-------------------------------------------

My problem is that I need https:// in the URL. SSL is done by a load balancer so the tomcat doesn't recognize it. 

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Philip Williams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681730#action_12681730 ] 

Philip Williams commented on AXIS2-3843:
----------------------------------------

Looking through the source for 1.4.1, the only place I see httpFrontendHostUrl being used is in a .jsp (one of the admin pages?) I also saw documentation that seemed to indicate this was supposed to have some effect on the WSDL, but source-wise, I'm just not seeing it.

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732672#action_12732672 ] 

Andreas Veithen commented on AXIS2-3843:
----------------------------------------

Storing the reference to the TransportInDescription is simply a convenient way to make sure that the code always uses the right TransportInDescription object, i.e. the one used to initialize the transport. Note that this is only redundant until somebody decides to implement HTTPS support in SimpleHTTPServer. I'm actually more worried about the redundancy between the SimpleHTTPServer(HttpFactory) constructor and the main method (which also creates a TransportInDescription object).

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>            Assignee: Andreas Veithen
>             Fix For: 1.6
>
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Boris Milanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681811#action_12681811 ] 

Boris Milanov commented on AXIS2-3843:
--------------------------------------

Hi,

I checked Axis2 trunk, as well as the transports module, but the httpFrontendHostUrl parameter does not seem to be used anywhere. My tests confirm that only the service EPR in the admin page is affected, but not the wsdl.

> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (AXIS2-3843) httpFrontendHostUrl does not affect auto-generated WSDL

Posted by "Neil Youngman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709764#action_12709764 ] 

Neil Youngman edited comment on AXIS2-3843 at 5/15/09 1:58 AM:
---------------------------------------------------------------

What I now have locally is patched as follows:

*** SimpleHTTPServer.java.~1~	2008-08-06 17:12:26.000000000 +0100
--- SimpleHTTPServer.java	2009-05-15 09:29:33.000000000 +0100
*************** public class SimpleHTTPServer implements
*** 251,268 ****
       * @see org.apache.axis2.transport.TransportListener#getEPRForService(String,String)
       */
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
          //if host address is present
          if (hostAddress != null) {
              if (embedded != null) {
!                 String endpointRefernce = hostAddress ;
                  if(configurationContext.getServiceContextPath().startsWith("/")){
!                     endpointRefernce =  endpointRefernce +
!                             configurationContext.getServiceContextPath() + "/" + serviceName;
                  } else {
!                     endpointRefernce = endpointRefernce + '/' +
!                             configurationContext.getServiceContextPath() + "/" + serviceName;
                  }
!                 return new EndpointReference[]{new EndpointReference(endpointRefernce + "/")};
              } else {
                  throw new AxisFault("Unable to generate EPR for the transport : http");
              }
--- 251,275 ----
       * @see org.apache.axis2.transport.TransportListener#getEPRForService(String,String)
       */
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
+         Parameter frontEndHostParam = configurationContext.getAxisConfiguration().getParameter(
+             Constants.HTTP_FRONTEND_HOST_URL);
+         if (frontEndHostParam != null) {
+             return new EndpointReference[]
+             {new EndpointReference((String) frontEndHostParam.getValue() + "/" + serviceName + "/")};
+         }
+ 
          //if host address is present
          if (hostAddress != null) {
              if (embedded != null) {
!                 String endpointReference = hostAddress ;
                  if(configurationContext.getServiceContextPath().startsWith("/")){
!                     endpointReference =  endpointReference +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
                  } else {
!                     endpointReference = endpointReference + '/' +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
                  }
!                 return new EndpointReference[]{new EndpointReference(endpointReference + "/")};
              } else {
                  throw new AxisFault("Unable to generate EPR for the transport : http");
              }
*************** public class SimpleHTTPServer implements
*** 277,302 ****
                      localAddress = HttpUtils.getIpAddress(configurationContext.getAxisConfiguration());
                  }
                  if (localAddress == null) {
!                    ipAddress = "127.0.0.1";
!                  } else {
                      ipAddress = localAddress;
!                  }
              } catch (SocketException e) {
                  throw AxisFault.makeFault(e);
              }
          }
          if (embedded != null) {
!             String endpointRefernce = "http://" + ipAddress + ":" + embedded.getPort() ;
              if(configurationContext.getServiceContextPath().startsWith("/")){
!                 endpointRefernce =  endpointRefernce +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
              } else {
!                 endpointRefernce = endpointRefernce + '/' +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
              }
  
! 
!             return new EndpointReference[]{new EndpointReference(endpointRefernce + "/")};
          } else {
              throw new AxisFault("Unable to generate EPR for the transport : http");
          }
--- 284,308 ----
                      localAddress = HttpUtils.getIpAddress(configurationContext.getAxisConfiguration());
                  }
                  if (localAddress == null) {
!                     ipAddress = "127.0.0.1";
!                 } else {
                      ipAddress = localAddress;
!                 }
              } catch (SocketException e) {
                  throw AxisFault.makeFault(e);
              }
          }
          if (embedded != null) {
!             String endpointReference = "http://" + ipAddress + ":" + embedded.getPort() ;
              if(configurationContext.getServiceContextPath().startsWith("/")){
!                 endpointReference =  endpointReference +
!                     configurationContext.getServiceContextPath() + "/" + serviceName;
              } else {
!                 endpointReference = endpointReference + '/' +
!                     configurationContext.getServiceContextPath() + "/" + serviceName;
              }
  
!             return new EndpointReference[]{new EndpointReference(endpointReference + "/")};
          } else {
              throw new AxisFault("Unable to generate EPR for the transport : http");
          }


*** AxisServlet.java.~1~	2008-08-06 17:12:26.000000000 +0100
--- AxisServlet.java	2009-05-15 09:18:37.000000000 +0100
*************** public class AxisServlet extends HttpSer
*** 566,596 ****
      }
  
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
!         //RUNNING_PORT
!         String port = (String) configContext.getProperty(ListingAgent.RUNNING_PORT);
!         if (port == null) {
!             port = "8080";
!         }
!         if (ip == null) {
!             try {
!                 ip = HttpUtils.getIpAddress(axisConfiguration);
!                 if (ip == null) {
!                     ip = "localhost";
                  }
-             } catch (SocketException e) {
-                 throw AxisFault.makeFault(e);
              }
-         }
  
!         String endpointRefernce = "http://" + ip + ":" + port;
!         if (configContext.getServiceContextPath().startsWith("/")) {
!             endpointRefernce = endpointRefernce +
                      configContext.getServiceContextPath() + "/" + serviceName;
!         } else {
!             endpointRefernce = endpointRefernce + '/' +
                      configContext.getServiceContextPath() + "/" + serviceName;
          }
!         EndpointReference endpoint = new EndpointReference(endpointRefernce + "/");
  
          return new EndpointReference[]{endpoint};
      }
--- 566,605 ----
      }
  
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
!         String endpointReference;
!         Parameter frontEndHostParam = configContext.getAxisConfiguration().getParameter(
!             Constants.HTTP_FRONTEND_HOST_URL);
!         if (frontEndHostParam != null) {
!             endpointReference = (String) frontEndHostParam.getValue() + "/" + serviceName;
!         } else {
!             //RUNNING_PORT
!             String port = (String)
!                 configContext.getProperty(ListingAgent.RUNNING_PORT);
!             if (port == null) {
!                 port = "8080";
!             }
!             if (ip == null) {
!                 try {
!                     ip = HttpUtils.getIpAddress(axisConfiguration);
!                     if (ip == null) {
!                         ip = "localhost";
!                     }
!                 } catch (SocketException e) {
!                     throw AxisFault.makeFault(e);
                  }
              }
  
!             endpointReference = "http://" + ip + ":" + port;
!             if (configContext.getServiceContextPath().startsWith("/")) {
!                 endpointReference = endpointReference +
                      configContext.getServiceContextPath() + "/" + serviceName;
!             } else {
!                 endpointReference = endpointReference + '/' +
                      configContext.getServiceContextPath() + "/" + serviceName;
+             }
          }
! 
!         EndpointReference endpoint = new EndpointReference(endpointReference + "/");
  
          return new EndpointReference[]{endpoint};
      }

It seems to work as I would expect, but it hasn't been extensively tested.

Note that some of the changes are simply a spelling correction from endpointRefernce to endpointReference

      was (Author: swordfish):
    What I now have locally is patched as follows:

*** SimpleHTTPServer.java.~1~	2008-08-06 17:12:26.000000000 +0100
--- SimpleHTTPServer.java	2009-05-15 09:29:33.000000000 +0100
*************** public class SimpleHTTPServer implements
*** 251,268 ****
       * @see org.apache.axis2.transport.TransportListener#getEPRForService(String,String)
       */
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
          //if host address is present
          if (hostAddress != null) {
              if (embedded != null) {
!                 String endpointRefernce = hostAddress ;
                  if(configurationContext.getServiceContextPath().startsWith("/")){
!                     endpointRefernce =  endpointRefernce +
!                             configurationContext.getServiceContextPath() + "/" + serviceName;
                  } else {
!                     endpointRefernce = endpointRefernce + '/' +
!                             configurationContext.getServiceContextPath() + "/" + serviceName;
                  }
!                 return new EndpointReference[]{new EndpointReference(endpointRefernce + "/")};
              } else {
                  throw new AxisFault("Unable to generate EPR for the transport : http");
              }
--- 251,275 ----
       * @see org.apache.axis2.transport.TransportListener#getEPRForService(String,String)
       */
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
+         Parameter frontEndHostParam = configurationContext.getAxisConfiguration().getParameter(
+             Constants.HTTP_FRONTEND_HOST_URL);
+         if (frontEndHostParam != null) {
+             return new EndpointReference[]
+             {new EndpointReference((String) frontEndHostParam.getValue() + "/" + serviceName + "/")};
+         }
+ 
          //if host address is present
          if (hostAddress != null) {
              if (embedded != null) {
!                 String endpointReference = hostAddress ;
                  if(configurationContext.getServiceContextPath().startsWith("/")){
!                     endpointReference =  endpointReference +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
                  } else {
!                     endpointReference = endpointReference + '/' +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
                  }
!                 return new EndpointReference[]{new EndpointReference(endpointReference + "/")};
              } else {
                  throw new AxisFault("Unable to generate EPR for the transport : http");
              }
*************** public class SimpleHTTPServer implements
*** 277,302 ****
                      localAddress = HttpUtils.getIpAddress(configurationContext.getAxisConfiguration());
                  }
                  if (localAddress == null) {
!                    ipAddress = "127.0.0.1";
!                  } else {
                      ipAddress = localAddress;
!                  }
              } catch (SocketException e) {
                  throw AxisFault.makeFault(e);
              }
          }
          if (embedded != null) {
!             String endpointRefernce = "http://" + ipAddress + ":" + embedded.getPort() ;
              if(configurationContext.getServiceContextPath().startsWith("/")){
!                 endpointRefernce =  endpointRefernce +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
              } else {
!                 endpointRefernce = endpointRefernce + '/' +
!                         configurationContext.getServiceContextPath() + "/" + serviceName;
              }
  
! 
!             return new EndpointReference[]{new EndpointReference(endpointRefernce + "/")};
          } else {
              throw new AxisFault("Unable to generate EPR for the transport : http");
          }
--- 284,308 ----
                      localAddress = HttpUtils.getIpAddress(configurationContext.getAxisConfiguration());
                  }
                  if (localAddress == null) {
!                     ipAddress = "127.0.0.1";
!                 } else {
                      ipAddress = localAddress;
!                 }
              } catch (SocketException e) {
                  throw AxisFault.makeFault(e);
              }
          }
          if (embedded != null) {
!             String endpointReference = "http://" + ipAddress + ":" + embedded.getPort() ;
              if(configurationContext.getServiceContextPath().startsWith("/")){
!                 endpointReference =  endpointReference +
!                     configurationContext.getServiceContextPath() + "/" + serviceName;
              } else {
!                 endpointReference = endpointReference + '/' +
!                     configurationContext.getServiceContextPath() + "/" + serviceName;
              }
  
!             return new EndpointReference[]{new EndpointReference(endpointReference + "/")};
          } else {
              throw new AxisFault("Unable to generate EPR for the transport : http");
          }


*** AxisServlet.java.~1~	2008-08-06 17:12:26.000000000 +0100
--- AxisServlet.java	2009-05-15 09:18:37.000000000 +0100
*************** public class AxisServlet extends HttpSer
*** 566,596 ****
      }
  
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
!         //RUNNING_PORT
!         String port = (String) configContext.getProperty(ListingAgent.RUNNING_PORT);
!         if (port == null) {
!             port = "8080";
!         }
!         if (ip == null) {
!             try {
!                 ip = HttpUtils.getIpAddress(axisConfiguration);
!                 if (ip == null) {
!                     ip = "localhost";
                  }
-             } catch (SocketException e) {
-                 throw AxisFault.makeFault(e);
              }
-         }
  
!         String endpointRefernce = "http://" + ip + ":" + port;
!         if (configContext.getServiceContextPath().startsWith("/")) {
!             endpointRefernce = endpointRefernce +
                      configContext.getServiceContextPath() + "/" + serviceName;
!         } else {
!             endpointRefernce = endpointRefernce + '/' +
                      configContext.getServiceContextPath() + "/" + serviceName;
          }
!         EndpointReference endpoint = new EndpointReference(endpointRefernce + "/");
  
          return new EndpointReference[]{endpoint};
      }
--- 566,605 ----
      }
  
      public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault {
!         String endpointReference;
!         Parameter frontEndHostParam = configContext.getAxisConfiguration().getParameter(
!             Constants.HTTP_FRONTEND_HOST_URL);
!         if (frontEndHostParam != null) {
!             endpointReference = (String) frontEndHostParam.getValue() + "/" + serviceName;
!         } else {
!             //RUNNING_PORT
!             String port = (String)
!                 configContext.getProperty(ListingAgent.RUNNING_PORT);
!             if (port == null) {
!                 port = "8080";
!             }
!             if (ip == null) {
!                 try {
!                     ip = HttpUtils.getIpAddress(axisConfiguration);
!                     if (ip == null) {
!                         ip = "localhost";
!                     }
!                 } catch (SocketException e) {
!                     throw AxisFault.makeFault(e);
                  }
              }
  
!             endpointReference = "http://" + ip + ":" + port;
!             if (configContext.getServiceContextPath().startsWith("/")) {
!                 endpointReference = endpointReference +
                      configContext.getServiceContextPath() + "/" + serviceName;
!             } else {
!                 endpointReference = endpointReference + '/' +
                      configContext.getServiceContextPath() + "/" + serviceName;
+             }
          }
! 
!         EndpointReference endpoint = new EndpointReference(endpointReference + "/");
  
          return new EndpointReference[]{endpoint};
      }

It seems to work as I would expect, but it hasn't been extensively tested.
  
> httpFrontendHostUrl does not affect auto-generated WSDL
> -------------------------------------------------------
>
>                 Key: AXIS2-3843
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3843
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Windows 2003 Server, Tomcat 6.0, Axis2 1.4
>            Reporter: Alexander Stockinger
>
> Setting the "httpFrontendHostUrl" parameter in the "axis2.conf" config file does not affect endpoint URL in auto-generated WSDL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.