axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francesco Ansanelli (JIRA)" <>
Subject [jira] [Created] (AXIS2-5810) 'all ports' option doesn't work in some circumstances
Date Tue, 27 Sep 2016 15:14:22 GMT
Francesco Ansanelli created AXIS2-5810:

             Summary: 'all ports' option doesn't work in some circumstances
                 Key: AXIS2-5810
             Project: Axis2
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.7.3, 1.4.1
         Environment: Java 5/Java 8, Ubuntu/Linux (arm64)
            Reporter: Francesco Ansanelli

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

In particular for Air.wsdl, I use these command line parameters: --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/	10 Jan 2011 08:23:19
-0000	1.1
+++ JavaSource/org/apache/axis2/description/	27 Sep 2016 15:07:57
@@ -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();
A I'm in the right direction?

Many thanks
Best Regards,

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message