You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Eduard Wirch (JIRA)" <ji...@apache.org> on 2013/06/27 09:55:20 UTC

[jira] [Commented] (CXF-2233) CXF doesn't support WSDL overloaded operation.

    [ https://issues.apache.org/jira/browse/CXF-2233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13694551#comment-13694551 ] 

Eduard Wirch commented on CXF-2233:
-----------------------------------

Workaround: annotate your service methods with {{@WebMethod}} and give them unique names:

{code}
@WebMethod(operationName = "method1")
public void method(int a) {
}

@WebMethod(operationName = "method2")
public void method(int a, int b) {
}
{code}

                
> CXF doesn't support WSDL overloaded operation.
> ----------------------------------------------
>
>                 Key: CXF-2233
>                 URL: https://issues.apache.org/jira/browse/CXF-2233
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2, 2.1.5, 2.2.1
>         Environment: Windows XP, java 1.6.0_12
>            Reporter: Alex Kravin
>            Priority: Critical
>             Fix For: Invalid
>
>
> When CXF tryes to parse the gotten WSDL I get the following exception:
> Caused by: java.lang.IllegalArgumentException: An operation with name [{http://server/_common/services/EvalService}getChildren] already exists in this service
>             at org.apache.cxf.service.model.InterfaceInfo.addOperation(InterfaceInfo.java:71)
>             at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation(WSDLServiceBuilder.java:538)
>             at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface(WSDLServiceBuilder.java:532)
>             at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:303)
>             at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:175)
>             at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:151)
>             at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:97)
>             at org.apache.cxf.endpoint.ClientImpl.<init>(ClientImpl.java:145)
>             at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:253)
>             at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:196)
>             at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:189)
>             at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:144)
>             ... 

--
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