[
http://issues.apache.org/jira/browse/AXIS2-1343?page=comments#action_12441399 ]
Lahiru Sandakith commented on AXIS2-1343:
-----------------------------------------
I tried to deploy and start SimpleHTTPServer by using this POJO
public class Echo {
public String echo(String in) {
return in;
}
public Object echo(Object in) {
return in;
}
}
The behavior is normal and I go this exception, as expected,
Exception in thread "main" org.apache.axis2.AxisFault: Sorry we don't support
methods overloading !!!! ; nested exception is:
java.lang.Exception: Sorry we don't support methods overloading !!!!
at
org.apache.axis2.description.AxisService.createService(AxisService.java:1279)
> WSDL generation misbehaviour
> ----------------------------
>
> Key: AXIS2-1343
> URL: http://issues.apache.org/jira/browse/AXIS2-1343
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: core
> Affects Versions: 1.1
> Reporter: Ruwan Linton
> Attachments: axis2Testathon.wsdl, services.xml
>
>
> I have writen a service class with overloaded methods and tried to expose
> only one method with RPCMessageReceiver. The service class methods are as
> folllows;
> public String sayHello() {
> return "Hello";
> }
> public String sayHello(String name) {
> return "Hello " + name;
> }
> and then created the service archive with the following service.xml file,
> <service>
> <description>
> Test service to test the RPCMessageReciever
> </description>
> <parameter
> name="ServiceClass">org.apache.axis2.messageReciever.test.service.Axis2Testathon</parameter>
> <operation name="sayHello">
> <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> <actionMapping>urn:sayHello</actionMapping>
> </operation>
> </service>
> When I deployed this service in the Axis2-1.1-RC1 it got deployed
> successfully. But the generated WSDL was wrong. I will attach the WSDL. I
> think Axis2 doesn't support method overloading in the service class... But in
> that case it should give an error other than deploying and generating a wrong
> wsdl.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]