[ 
https://issues.apache.org/jira/browse/CXF-4201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Björn updated CXF-4201:
-----------------------

    Description: 
I have two methods in my webservice that start with the same parameter (but one 
has two parameters, I know there is a general SOAP issue if two methods have 
identical signature): 

<pre>
@WebService(targetNamespace = &quot;<a 
href="http://dummy/";>http://dummy/</a>&quot;, name = &quot;Dummy&quot;)
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface Dummy {

    @WebMethod
    public void method(
        @WebParam(partName = &quot;badParam&quot;, name = &quot;badParam&quot;, 
targetNamespace = &quot;<a href="http://dummy/";>http://dummy/</a>&quot;)
        java.lang.String badParam,
        @WebParam(partName = &quot;anotherParam&quot;, name = 
&quot;anotherParam&quot;, targetNamespace = &quot;<a 
href="http://dummy/";>http://dummy/</a>&quot;)
        java.math.BigInteger anotherParam


    );


    @WebMethod
    public void anotherMethod(
        @WebParam(partName = &quot;badParam&quot;, name = &quot;badParam&quot;, 
targetNamespace = &quot;<a href="http://dummy/";>http://dummy/</a>&quot;)
        java.lang.String badParam
    );
}

</pre>


This causes a javax.xml.ws.soap.SOAPFaultException: Message part 
{http://dummy/}anotherParam was not recognized.  (Does it exist in service 
WSDL?)

If I try to call those methods (I call them with the default test client 
generated with the Maven plugin).



  was:
I have two methods in my webservice that start with the same parameter: 

@WebService(targetNamespace = "http://dummy/";, name = "Dummy")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface Dummy {

    @WebMethod
    public void method(
        @WebParam(partName = "badParam", name = "badParam", targetNamespace = 
"http://dummy/";)
        java.lang.String badParam,
        @WebParam(partName = "anotherParam", name = "anotherParam", 
targetNamespace = "http://dummy/";)
        java.math.BigInteger anotherParam
       
       
    );


    @WebMethod
    public void anotherMethod(
        @WebParam(partName = "badParam", name = "badParam", targetNamespace = 
"http://dummy/";)
        java.lang.String badParam
    );
}

This causes a javax.xml.ws.soap.SOAPFaultException: Message part 
{http://dummy/}anotherParam was not recognized.  (Does it exist in service 
WSDL?)

If I try to call those methods (I call them with the default test client 
generated with the Maven plugin).



    
> Error if two methods start with a parameter of the same name
> ------------------------------------------------------------
>
>                 Key: CXF-4201
>                 URL: https://issues.apache.org/jira/browse/CXF-4201
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.5.2
>         Environment: Java 6, Jetty, Java 5, Glassfish 2
>            Reporter: Björn
>              Labels: jax-ws,
>         Attachments: cxfbug.zip
>
>
> I have two methods in my webservice that start with the same parameter (but 
> one has two parameters, I know there is a general SOAP issue if two methods 
> have identical signature): 
> <pre>
> @WebService(targetNamespace = &quot;<a 
> href="http://dummy/";>http://dummy/</a>&quot;, name = &quot;Dummy&quot;)
> @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
> public interface Dummy {
>     @WebMethod
>     public void method(
>         @WebParam(partName = &quot;badParam&quot;, name = 
> &quot;badParam&quot;, targetNamespace = &quot;<a 
> href="http://dummy/";>http://dummy/</a>&quot;)
>         java.lang.String badParam,
>         @WebParam(partName = &quot;anotherParam&quot;, name = 
> &quot;anotherParam&quot;, targetNamespace = &quot;<a 
> href="http://dummy/";>http://dummy/</a>&quot;)
>         java.math.BigInteger anotherParam
>     );
>     @WebMethod
>     public void anotherMethod(
>         @WebParam(partName = &quot;badParam&quot;, name = 
> &quot;badParam&quot;, targetNamespace = &quot;<a 
> href="http://dummy/";>http://dummy/</a>&quot;)
>         java.lang.String badParam
>     );
> }
> </pre>
> This causes a javax.xml.ws.soap.SOAPFaultException: Message part 
> {http://dummy/}anotherParam was not recognized.  (Does it exist in service 
> WSDL?)
> If I try to call those methods (I call them with the default test client 
> generated with the Maven plugin).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to