keith chapman wrote:
Hi Samitha,
Are you using Axis2-1.1.1? from your axis2.xml it looks like so. The
code fragment that saminda
Samisa not saminda ;)
had given works on Axis2-1.2 and not 1.1.
BTW, just a minor note. In http://ws.apache.org/axis2/1_2/rest-ws.html,
there is no mention on how to enable REST on server side. Yes it is
enabled by default, but would be great if that is mentioned, along with
info on how to disable REST.
Thanks,
Samisa...
Can you confirm on your version please.
Thanks,
Keith.
On 5/25/07, [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>*
<[EMAIL PROTECTED] <mailto:[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]
<mailto:[EMAIL PROTECTED]>]
Sent: Friday, May 25, 2007 7:43 AM
To: axis-dev@ws.apache.org <mailto:axis-dev@ws.apache.org>
Subject: Re: Rest APIs
[EMAIL PROTECTED] <mailto:[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]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[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 <http://www.wipro.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/
--
Samisa Abeysinghe : http://www.bloglines.com/blog/samisa
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]