Axis2
  1. Axis2
  2. AXIS2-3719

?wsdl and ?wsdl2 returns wrong erp

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.3, 1.4, nightly
    • Fix Version/s: None
    • Component/s: codegen
    • Labels:
      None
    • Environment:
      Windows Vista/Tomcat 6

      Description

      My webservice is generated with WSDL2Java (XMLBeans)
      I use these setting in services.xml:
      <parameter name="useOriginalwsdl">true</parameter>
      <parameter name="modifyUserWSDLPortAddress">true</parameter>

      In Axis2 1.3

      When I call..
      http://localhost:8080/mytomcat/services/Aspect4Users?wsdl
      the ERP returned is:
      location="http://10.150.201.158:8080/mytomcat/services/Aspect4Users"
      Why the IP address? this is useless when exposing the service on the web

      and if I call:
      http://localhost:8080/mytomcat/services/Aspect4Users?wsdl2
      returns:
      address="http://localhost:8080/mytomcat/services/Aspect4Users"
      This is as it should be

      In 1.4RC4

      When I call..
      http://localhost:8080/mytomcat/services/Aspect4Users?wsdl
      the ERP returned is:
      location="http://10.150.201.158:8080/mytomcat/services/Aspect4Users"
      Why the IP address? this is useless when exposing the service on the web

      and when i call:
      http://localhost:8080/mytomcat/services/Aspect4Users?wsdl2
      returns:
      address="http://localhost:7080/jaxws/services/Aspect4Users"
      This is the address from the original WSDL file. Again this is useless because I need to deploy this service on 50 different machines..

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          986d 2h 54m 1 Afkham Azeez 21/Dec/10 11:07
          Resolved Resolved Reopened Reopened
          18s 1 Afkham Azeez 21/Dec/10 11:07
          Reopened Reopened Resolved Resolved
          43s 1 Afkham Azeez 21/Dec/10 11:08
          Afkham Azeez made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Afkham Azeez added a comment -

          Adding;

          <parameter name="hostname" locked="true">myhost.com</parameter>

          to axis2.xml works. Hence I'm resolving this.

          Show
          Afkham Azeez added a comment - Adding; <parameter name="hostname" locked="true">myhost.com</parameter> to axis2.xml works. Hence I'm resolving this.
          Afkham Azeez made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Afkham Azeez made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Afkham Azeez added a comment -

          Adding;

          Show
          Afkham Azeez added a comment - Adding;
          Samisa Abeysinghe made changes -
          Component/s codegen [ 12311413 ]
          Component/s wsdl [ 11538 ]
          Philip Williams made changes -
          Link This issue relates to AXIS2-3337 [ AXIS2-3337 ]
          Philip Williams made changes -
          Link This issue blocks AXIS2-3337 [ AXIS2-3337 ]
          Philip Williams made changes -
          Link This issue blocks AXIS2-3337 [ AXIS2-3337 ]
          Hide
          Nandana Mihindukulasooriya added a comment -

          Fixed WSDL1.1 to use the ip in the request to generate the EPRs. Have to fix WSDL 2.0.

          Show
          Nandana Mihindukulasooriya added a comment - Fixed WSDL1.1 to use the ip in the request to generate the EPRs. Have to fix WSDL 2.0.
          Keith Godwin Chapman made changes -
          Field Original Value New Value
          Assignee Keith Godwin Chapman [ keithgchapman ]
          Hide
          Keith Godwin Chapman added a comment -

          You can add the following property to your axis2.xml

          <!-- Following parameter will set the host name for the epr-->
          <parameter name="hostname" locked="true">myhost.com</parameter>

          Show
          Keith Godwin Chapman added a comment - You can add the following property to your axis2.xml <!-- Following parameter will set the host name for the epr--> <parameter name="hostname" locked="true">myhost.com</parameter>
          Hide
          Thomas Neerup added a comment -

          It seems to me that when the web service i served from the AxisServlet using http.
          The only true erp address should be taken directly from the request url:
          http://localhost:8080/mytomcat/services/Aspect4Users?wsdl
          should become
          http://localhost:8080/mytomcat/services/Aspect4Users

          Anyway. wonder if there is a workaround for this issue?

          Show
          Thomas Neerup added a comment - It seems to me that when the web service i served from the AxisServlet using http. The only true erp address should be taken directly from the request url: http://localhost:8080/mytomcat/services/Aspect4Users?wsdl should become http://localhost:8080/mytomcat/services/Aspect4Users Anyway. wonder if there is a workaround for this issue?
          Thomas Neerup created issue -

            People

            • Assignee:
              Keith Godwin Chapman
              Reporter:
              Thomas Neerup
            • Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development