Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5810

'all ports' option doesn't work in some circumstances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.1, 1.7.3
    • None
    • codegen
    • Java 5/Java 8, Ubuntu/Linux (arm64)
    • Patch

    Description

      I'm attempting to generate java classes from this wsdl:

      https://support.travelport.com/webhelp/uapi/uAPI.htm#Resources/uAPI_WSDLschema_Release-V16.3.0.33.zip

      In particular for Air.wsdl, I use these command line parameters:

      wsdl2java.sh --noBuildXML -ap -uri air_v37_0/Air.wsdl -S JavaSource -ssi -sp -s -d xmlbeans -o ../../ -p UApiClient

      but '-ap' is not working as expected, btw I'm using an old version of Axis2 (1.4.1), but it's not working even with the latest one.

      I'm getting 2 stubs, but with 1 operation only.
      To address this, I've wrote a workaround:

      — JavaSource/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java 10 Jan 2011 08:23:19 -0000 1.1
      +++ JavaSource/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java 27 Sep 2016 15:07:57 -0000
      @@ -480,7 +480,7 @@
      port.getBinding().getQName(), COMPONENT_BINDING, new HashSet());
      currentBinding = currentBindingWSDL.getBinding(port.getBinding().getQName());

      • if (currentBinding.getPortType().getQName().equals(binding.getPortType().getQName())) {
        + if (this.isAllPorts || currentBinding.getPortType().getQName().equals(binding.getPortType().getQName())) {
        axisEndpoint = new AxisEndpoint();
        axisEndpoint.setName(port.getName());

      A I'm in the right direction?

      Many thanks
      Best Regards,
      Francesco

      Attachments

        Activity

          People

            Unassigned Unassigned
            francians Francesco Ansanelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: