[ https://issues.apache.org/jira/browse/AXIS2-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719055#action_12719055 ]
Deepal Jayasinghe commented on AXIS2-3849: ------------------------------------------ Could you please check with 1.5 version and see you have the problem there too? > Version service WSDL generates wrong ERP URLs > --------------------------------------------- > > Key: AXIS2-3849 > URL: https://issues.apache.org/jira/browse/AXIS2-3849 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.4 > Environment: OpenSuse, Tomcat 5.5.17, JVM 1.6.0_03, ... > Reporter: David > > I've downloaded the WAR distribution corresponding to the last release (1.4) > and then, I've deployed it on the Tomcat server. > If I load the WSDL of the Version service (the one coming with the WAR > distribution) from a machine inside the internal network, no problem appears. > The problem appears when I load the WSDL from a machine outside the internal > network, behind the firewall: the IP address used from the browser, a virtual > IP, should be the same that the Axis2 writes in the WSDL but in the WSDL the > endpoints URL uses the internal IP. > So, if I load the WSDL from http://x.x.x.x:8080/axis2/services/Version?wsdl, > I get the following: > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://axisversion.sample" > xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" > xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" > targetNamespace="http://axisversion.sample"> > <wsdl:documentation>Version</wsdl:documentation> > <wsdl:types> > <xs:schema attributeFormDefault="qualified" > elementFormDefault="qualified" targetNamespace="http://axisversion.sample"> > <xs:complexType name="Exception"> > <xs:sequence> > <xs:element minOccurs="0" name="Exception" > nillable="true" type="xs:anyType"/> > </xs:sequence> > </xs:complexType> > <xs:element name="Exception"> > <xs:complexType> > <xs:sequence> > <xs:element minOccurs="0" name="Exception" > nillable="true" type="ns:Exception"/> > </xs:sequence> > </xs:complexType> > </xs:element> > <xs:element name="getVersionResponse"> > <xs:complexType> > <xs:sequence> > <xs:element minOccurs="0" name="return" > nillable="true" type="xs:string"/> > </xs:sequence> > </xs:complexType> > </xs:element> > </xs:schema> > </wsdl:types> > <wsdl:message name="getVersionRequest"/> > <wsdl:message name="getVersionResponse"> > <wsdl:part name="parameters" element="ns:getVersionResponse"/> > </wsdl:message> > <wsdl:message name="Exception"> > <wsdl:part name="parameters" element="ns:Exception"/> > </wsdl:message> > <wsdl:portType name="VersionPortType"> > <wsdl:operation name="getVersion"> > <wsdl:input message="ns:getVersionRequest" > wsaw:Action="urn:getVersion"/> > <wsdl:output message="ns:getVersionResponse" > wsaw:Action="urn:getVersionResponse"/> > <wsdl:fault message="ns:Exception" name="Exception" > wsaw:Action="urn:getVersionException"/> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="VersionSoap11Binding" type="ns:VersionPortType"> > <soap:binding transport="http://schemas.xmlsoap.org/soap/http" > style="document"/> > <wsdl:operation name="getVersion"> > <soap:operation soapAction="urn:getVersion" style="document"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > <wsdl:fault name="Exception"> > <soap:fault use="literal" name="Exception"/> > </wsdl:fault> > </wsdl:operation> > </wsdl:binding> > <wsdl:binding name="VersionSoap12Binding" type="ns:VersionPortType"> > <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" > style="document"/> > <wsdl:operation name="getVersion"> > <soap12:operation soapAction="urn:getVersion" style="document"/> > <wsdl:input> > <soap12:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap12:body use="literal"/> > </wsdl:output> > <wsdl:fault name="Exception"> > <soap12:fault use="literal" name="Exception"/> > </wsdl:fault> > </wsdl:operation> > </wsdl:binding> > <wsdl:binding name="VersionHttpBinding" type="ns:VersionPortType"> > <http:binding verb="POST"/> > <wsdl:operation name="getVersion"> > <http:operation location="Version/getVersion"/> > <wsdl:input> > <mime:content type="text/xml" part="getVersion"/> > </wsdl:input> > <wsdl:output> > <mime:content type="text/xml" part="getVersion"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="Version"> > <wsdl:port name="VersionHttpSoap11Endpoint" > binding="ns:VersionSoap11Binding"> > <soap:address > location="http://y.y.y.y:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/> > </wsdl:port> > <wsdl:port name="VersionHttpSoap12Endpoint" > binding="ns:VersionSoap12Binding"> > <soap12:address > location="http://y.y.y.y::8080/axis2/services/Version.VersionHttpSoap12Endpoint"/> > </wsdl:port> > <wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding"> > <http:address > location="http://y.y.y.y::8080/axis2/services/Version.VersionHttpEndpoint"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > Of course, if I try to validate the Axis2 services through the Happiness > page, it makes me know that there is a problem in the Version Service. No > problem is reported If the Happiness page is loades from the internal network. > I made no change in the WAR distribution. > The problem also happens with the ?wsdl2 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.