Details
Description
I'm attempting to generate java classes from this wsdl:
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