Duplicate WSDL items when @WebMethod operationName is similar to actual name
----------------------------------------------------------------------------

                 Key: CXF-3669
                 URL: https://issues.apache.org/jira/browse/CXF-3669
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.4
            Reporter: James Poole


For my web service API I have a method name starting with lowercase, but I 
specify the operationName as starting with uppercase.  When the wsdl is 
generated, it shows elements for both the lowercase and uppercase versions.  
Having both versions will cause wsdl2java to fail if it is run against this 
wsdl.

I have found that if I change the operationName to something totally different, 
this issue is not seen, so it looks like just different capitalization causes 
the problem.

Here is the example:

@WebMethod (operationName="MyFooMethod")
void myFooMethod(int bar);

In the generated WSDL, you will see "MyFooMethod" and "myFooMethod" as 
xs:element tags.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to