Joseph,
What is the version of Axis2 you are using? The way of sending REST requests has been changed in axis2-1.3 (AFAIK axis2-1.2 as well). Suppose you have a service, 'echo', with an operation echoString, then the request URL should be as follows.

http://localhost:8080/axis2/services/echo/echoString

You can simply verify this by issuing a REST request to the default Version service as follows.

http://localhost:8080/axis2/services/Version/getVersion


If you are using pre-axis2-1.2 version, try the follwoing as well.
http://localhost:8080/axis2/rest/SimpleService/function2

regards
Charitha

[EMAIL PROTECTED] wrote:


Hi Charitha,

Thank you for your response. This is how i called my three functions:

        *1.*        http://localhost:8080/axis2/rest/SoundCheck/function1
                *RETURN:*
                <ns:function1Response>
                        <return>this is function #1</return>
                </ns:function1Response>
*2.* http://localhost:8080/axis2/rest/SoundCheck/function2
                RETURN:
                Internal server error

        *3.*        http://localhost:8080/axis2/rest/SoundCheck/function3
                RETURN:
                Internal server error

        My Services.xml:

        <service name="SimpleService" scope="application">
        <description>This is a simple web service</description>
<messageReceivers> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"; class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"; class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
        </messageReceivers>
<parameter name="ServiceClass">sample.SimpleService</parameter>
        </service>

thank you,

Joseph



*Charitha Kankanamge <[EMAIL PROTECTED]>*

11/13/2007 02:47 PM
Please respond to
[email protected]


        
To
        [email protected]
cc
        
Subject
        Re: Internal Server Error



        





Joseph,
How did you call the second and third methods? Can you please send the
REST url which was used for invocation and the respective method names
in the service implementation class?

regards
Charitha



[EMAIL PROTECTED] wrote:

>
> Hi,
>
>        I'm having problems calling a method through REST.   I have
> three methods in my Web Service.  They are all methods in the same
> Class.   I am able to call the first method successfully.   For some
> reason, when i call the second and the third method, i encounter
> "*Internal server error*".  How can this be... the contents of the
> proceeding methods are simply return "Some String";
>
>        I've been stuck with this for 3 days... Any help would be
> appreciated :)
>
>
> thanks,
>
> Joseph



--
Charitha Kankanamge
WSO2 inc.
Flower Road, Colombo 07
+94 714268070

A bug in the hand is better than one as yet undetected



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Charitha Kankanamge
WSO2 inc.
Flower Road, Colombo 07
+94 714268070

A bug in the hand is better than one as yet undetected



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to