You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Francesco Ansanelli (JIRA)" <ji...@apache.org> on 2016/09/27 15:14:22 UTC
[jira] [Created] (AXIS2-5810) 'all ports' option doesn't work in
some circumstances
Francesco Ansanelli created AXIS2-5810:
------------------------------------------
Summary: 'all ports' option doesn't work in some circumstances
Key: AXIS2-5810
URL: https://issues.apache.org/jira/browse/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:
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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org