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 "Andreas Veithen (JIRA)" <ax...@ws.apache.org> on 2012/10/21 22:44:12 UTC
[jira] [Updated] (AXIS-2637) dynamic proxy binding does not work
when interface declares less methods than WSDL
[ https://issues.apache.org/jira/browse/AXIS-2637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen updated AXIS-2637:
----------------------------------
Labels: javax.xml.rpc.Service (was: )
> dynamic proxy binding does not work when interface declares less methods than WSDL
> ----------------------------------------------------------------------------------
>
> Key: AXIS-2637
> URL: https://issues.apache.org/jira/browse/AXIS-2637
> Project: Axis
> Issue Type: Bug
> Components: WSDL processing
> Affects Versions: 1.4
> Reporter: robert engels
> Labels: javax.xml.rpc.Service
>
> In org.apache.axis.client.Service.java, lines 434-436
> if(bEntry.getParameters().size() != proxyInterface.getMethods().length) {
> throw new ServiceException(Messages.getMessage("incompatibleSEI00", "" + proxyInterface.getName()));
> }
> causes dynamic proxy binding to fail when the Java interface uses less/more methods than the provided WSDL.
> It occurs when using code similar to
> SimpleServiceIF myProxy = (SimpleServiceIF) service.getPort(new QName(namespace, portName), SimpleServiceIF.class);
> The reference implementation from Sun does not has this limitation, and commenting out the above lines allows the code to work correctly.
> This is essential when writing long-lived client systems that want to be insulated from changes in the WSDL interface.
> Ideally the binding would only be checked when the method was actually called which would allow unused methods to be removed from the WSDL, and the client code would still be ok.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org