The error you got was misleading. Its fixed in the latest release though.
Thanks, Keith. On 5/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi Keith Thanks for your help. I also could execute . The problem lies in the way I was giving the url.I was not specifiying the method in the url. Thanks Smitha ------------------------------ *From:* keith chapman [mailto:[EMAIL PROTECTED] *Sent:* Friday, May 25, 2007 11:35 AM *To:* [email protected] *Subject:* Re: Rest APIs Hi, I just downloaded axis2-1.1.1 deployed it in tomcat and invoked the version servive from the browser using http://localhost:8091/axis2/rest/Version/getVersion it works fine out of the box. Thanks, Keith. On 5/25/07, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: Hi Keith Thanks for the reply… Yeah …I am using axis2-1.1.1.Can't we directly give the Rest Epr to the browser and get it executed? My requirement is to get it executed directly by giving the Rest Epr in the browser. ------------------------------ *From:* keith chapman [mailto:[EMAIL PROTECTED] *Sent:* Friday, May 25, 2007 10:58 AM *To:* [email protected] *Subject:* Re: Rest APIs Hi Samitha, Are you using Axis2-1.1.1? from your axis2.xml it looks like so. The code fragment that saminda had given works on Axis2-1.2 and not 1.1. Can you confirm on your version please. Thanks, Keith. On 5/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote: Hi Following is my axis2.xml entries by default. <!-- If the enableRESTInAxis2MainServlet is true, then Axis2MainServlet will handle both SOAP and REST messages --> <parameter name="enableRESTInAxis2MainServlet" locked="true">false</parameter> <!-- Following parameter will completely disable REST handling in both the servlets--> <parameter name="disableREST" locked="true">false</parameter> <!-- This will disable the separate servlet we have for REST handling. --> <parameter name="disableSeparateEndpointForREST" locked="true">false</parameter> It seems axis2.war is coming by default with rest API's disabled. When I am trying to access http://localhost:8080/axis2/rest/Version/getVersion through browser i am getting the following error "Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml" -----Original Message----- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Friday, May 25, 2007 7:43 AM To: [email protected] Subject: Re: Rest APIs [EMAIL PROTECTED] wrote: > > Hi > > > > Can anybody help me enable rest APIs in my webservices? > http://ws.apache.org/axis2/1_2/rest-ws.html Axis2 HTTP endpoints can handle both REST and SOAP by default, unless you explicitly disable it using disableREST parameter in axis2.xml conf file. HTH. Samisa... -- Samisa Abeysinghe : http://www.bloglines.com/blog/samisa --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
-- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
