[
http://jira.codehaus.org/browse/XFIRE-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tomasz Sztelak resolved XFIRE-907.
----------------------------------
Assignee: Tomasz Sztelak (was: Dan Diephouse)
Resolution: Fixed
Fix Version/s: 1.2.6
Fixed in svn
> WSDL Generation Error - wsdlsoap:address location does not show correct http
> port
> ---------------------------------------------------------------------------------
>
> Key: XFIRE-907
> URL: http://jira.codehaus.org/browse/XFIRE-907
> Project: XFire
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2.2
> Reporter: Chris Hodges
> Assignee: Tomasz Sztelak
> Priority: Minor
> Fix For: 1.2.6
>
>
> We are running xfire version 1.2.2 on Tomcat 5.5.17 and configuring XFire via
> Spring. Tomcat is running on port 7070 but whenever we view the WSDL for any
> of our web services the http port information is missing.
> <wsdl:service name="ReportTroubleWebService">
> <wsdl:port name="ReportTroubleWebServiceHttpPort"
> binding="tns:ReportTroubleWebServiceHttpBinding">
> <wsdlsoap:address
> location="http://webservicesdev.htc.com/xfire/services/ReportTroubleWebService"/>
> </wsdl:port>
> </wsdl:service>
> It looks like class XFireServletTransport is calling req.getServerPort()in
> the getServiceURL(Service service) method which may not always return the
> correct port. I have done some additional testing with req.getLocalPort() and
> so far it appears to be working as expected.
> You may also want to update HtmlServiceWriter class to also niclude the port
> information when displaying a list of all of the services. The following
> example includes the port.
> StringBuilder sb = new StringBuilder();
>
> sb.append(request.getScheme()).append("://").append(request.getServerName());
> if (request.getLocalPort() != 80 && request.getLocalPort() !=
> 443 &&
> request.getLocalPort() != 0) {
> sb.append(':').append(request.getLocalPort());
> }
> sb.append(request.getRequestURI());
> sb.append(base.charAt(base.length()-1)!='/'?"/":"");
> sb.append(service.getSimpleName().toString()).append("?wsdl");
>
> String url = sb.toString();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email