Ok.. I get your point. I apologize for misunderstanding the issue. However, I do have enabled the GET method in my service before firing the request from the browser. For your reference, I have attached the services.xml and am also listing the various URI that I entered in the browser to access the service :
http://172.31.24.198:1983/axis2/services/get_echo/Hello http://172.31.24.198:1983/axis2/services/echo/get_echo/Hello http://172.31.24.198:1983/axis2/services/get_echo/"Hello" http://172.31.24.198:1983/axis2/services/echo/get_echo/"Hello" Please guide me. Shivam. -----Original Message----- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2008 9:59 AM To: Apache AXIS C Developers List Subject: Re: REST support on Axis2/C Gupta, Shivam wrote: > Hi, > > Yes I have. Infact, if I haven't enabled it, even the echo_rest client > should not have worked. echo_rest uses a POST, and your browser request uses a GET. Samisa... > Please help. > > Thanks, > Shivam. > > -----Original Message----- > From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 15, 2008 7:48 PM > To: Apache AXIS C Developers List > Subject: Re: REST support on Axis2/C > > Have you enabled GET method in your service? > > Samisa... > > Gupta, Shivam wrote: > >> Hello, >> >> I have been trying to invoke the echo web service supplied with >> Axis2/C using REST based invocation. When I try using the echo_rest >> client, the service responds just fine. >> >> However, when I try to invoke the echo web sercvice using a web >> browser, I get no response from the Axis. The browser just hangs in a >> wait state. Could you tell me what could possibly be going wrong? I >> entered the following query styring in the URL window of the browser: >> >> >> http://172.31.24.18:2106/axis2c/services/echo/echoString?text='hello' >> <http://172.31.24.18:2106/axis2c/services/echo/echoString?text=%27hel >> l >> o%27> >> >> It would be great if you could help me here. >> >> Thanks, >> Shivam. >> --------------------------------------------------------------------- >> - >> -- >> >> >> No virus found in this incoming message. >> Checked by AVG - http://www.avg.com >> Version: 8.0.173 / Virus Database: 270.8.0/1724 - Release Date: >> 10/14/2008 2:02 AM >> >> >> > > > -- > Samisa Abeysinghe > Director, Engineering; WSO2 Inc. > > http://www.wso2.com/ - "The Open Source SOA Company" > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ---------------------------------------------------------------------- > -- > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.173 / Virus Database: 270.8.0/1726 - Release Date: > 10/15/2008 7:29 AM > > -- Samisa Abeysinghe Director, Engineering; WSO2 Inc. http://www.wso2.com/ - "The Open Source SOA Company" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<service name="echo"> <parameter name="ServiceClass" locked="xsd:false">echo</parameter> <!--Uncomment to specify static WSDL path--> <!--parameter name="wsdl_path">PATH</parameter--> <!--Uncomment to include defaul method with REST as GET--> <parameter name="defaultRESTMethod">GET</parameter> <description> This is a testing service, to test whether the system is working or not </description> <operation name="echoString"> <!--messageReceiver class="axis2_receivers" /--> <parameter name="wsamapping">http://ws.apache.org/axis2/c/samples/echoString</parameter> <!--Please note that you can only have one RESTMethod and one RESTLocation--> <!--Uncomment for POST method with REST--> <!--parameter name="RESTMethod">POST</parameter> <parameter name="RESTLocation">echoString</parameter--> <!--Uncomment for GET method --> <parameter name="RESTMethod">GET</parameter> <parameter name="RESTLocation">get_echo/{param}</parameter> <!--Uncomment for PUT method --> <!--parameter name="RESTMethod">PUT</parameter> <!--parameter name="RESTLocation">put_echo/{param}</parameter--> <!--Uncomment for DELETE method --> <!--parameter name="RESTMethod">DELETE</parameter> <!--parameter name="RESTLocation">delete_echo/{param}</parameter--> <!--Uncomment for HEAD method --> <!--parameter name="RESTMethod">HEAD</parameter> <!--parameter name="RESTLocation">get_echo/{param}</parameter--> </operation> </service>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]