You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by rjain <rj...@yahoo.com> on 2007/03/03 02:05:23 UTC

How to Configure/Enable Axis2 for REST

Hi 

I am using Axis2 1.1.1 , and I am trying to configure the "Version" Service
to be RESTFul. 
Out of the box installation of AXIS2.war on Tomcat, doesn't provide REST
support. When 
I try to access the REST Service
http://localhost:8080/axis2/services/Version ... I get an error saying that
you need to enable REST in axis2.xml and web.xml. If I try to access it
using the  http://localhost:8080/axis2/rest/Version
URL, it says service not found. 

I have tried playing around with enabling the REST Servlet, parameter etc in
the axis2.xml and web.xml, but without successs. 

Can someone guide me to the documentation of how to Enable AXIS2 for
REST,what are the configuration parameters I need to set to make this
successful. 

Thanx!
Rajesh
-- 
View this message in context: http://www.nabble.com/How-to-Configure-Enable-Axis2-for-REST-tf3336931.html#a9280563
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] How to Configure/Enable Axis2 for REST

Posted by Glen Mazza <gr...@verizon.net>.
Am Freitag, den 02.03.2007, 18:10 -0800 schrieb rjain:
> Hi Glen
> 
> Thanx for the article. But this didn't help. 
> 
> If I set both the parameters as described in the document i.e. 
> <parameter name="enableRESTInAxis2MainServlet"
> locked="true">true</parameter>
>     
> <parameter name="disableSeparateEndpointForREST"
> locked="true">true</parameter>
> 
> Both the Service URL are same 
> Service EPR : http://localhost:8080/axis2/services/Version
> Service REST epr : http://localhost:8080/axis2/services/Version
> 
> I get the following error 
> 
> <soapenv:Fault>
> <faultcode/>
> −
> 	<faultstring>
> I can not find a service for this request to be serviced. Check the WSDL and
> the request URI
> </faultstring>
> <detail/>
> </soapenv:Fault>
> 
> 
> I hope this feature is not broken in the latest version. Any other pointers
> what I should be doing? 
> 

Sorry, I have not done this before.  You may wish to google the
parameter properties "enableRESTInAxis2MainServlet" and
"disableSeparateEndpointForREST" separately.  Hopefully that will lead
you to a working configuration.

Glen




> ===============================================
> 
> 
> 
> GlenMazza wrote:
> > 
> > Am Freitag, den 02.03.2007, 17:05 -0800 schrieb rjain:
> >> Hi 
> >> 
> >> I am using Axis2 1.1.1 , and I am trying to configure the "Version"
> >> Service
> >> to be RESTFul. 
> > 
> > ...
> > 
> >> Can someone guide me to the documentation of how to Enable AXIS2 for
> >> REST,what are the configuration parameters I need to set to make this
> >> successful. 
> >> 
> > 
> > Search on this page[1] for the two articles (under External FAQs) with
> > the word "REST".  Let us know if they help you.
> > 
> > Glen
> > 
> > [1] http://wiki.apache.org/ws/FrontPage/Axis2/
> > 
> > 
> >> Thanx!
> >> Rajesh
> > 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] How to Configure/Enable Axis2 for REST

Posted by rjain <rj...@yahoo.com>.
Hi Glen

Thanx for the article. But this didn't help. 

If I set both the parameters as described in the document i.e. 
<parameter name="enableRESTInAxis2MainServlet"
locked="true">true</parameter>
    
<parameter name="disableSeparateEndpointForREST"
locked="true">true</parameter>

Both the Service URL are same 
Service EPR : http://localhost:8080/axis2/services/Version
Service REST epr : http://localhost:8080/axis2/services/Version

I get the following error 

<soapenv:Fault>
<faultcode/>
−
	<faultstring>
I can not find a service for this request to be serviced. Check the WSDL and
the request URI
</faultstring>
<detail/>
</soapenv:Fault>


I hope this feature is not broken in the latest version. Any other pointers
what I should be doing? 

===============================================



GlenMazza wrote:
> 
> Am Freitag, den 02.03.2007, 17:05 -0800 schrieb rjain:
>> Hi 
>> 
>> I am using Axis2 1.1.1 , and I am trying to configure the "Version"
>> Service
>> to be RESTFul. 
> 
> ...
> 
>> Can someone guide me to the documentation of how to Enable AXIS2 for
>> REST,what are the configuration parameters I need to set to make this
>> successful. 
>> 
> 
> Search on this page[1] for the two articles (under External FAQs) with
> the word "REST".  Let us know if they help you.
> 
> Glen
> 
> [1] http://wiki.apache.org/ws/FrontPage/Axis2/
> 
> 
>> Thanx!
>> Rajesh
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-Configure-Enable-Axis2-for-REST-tf3336931.html#a9281074
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: How to Configure/Enable Axis2 for REST

Posted by Glen Mazza <gr...@verizon.net>.
Am Freitag, den 02.03.2007, 17:05 -0800 schrieb rjain:
> Hi 
> 
> I am using Axis2 1.1.1 , and I am trying to configure the "Version" Service
> to be RESTFul. 

...

> Can someone guide me to the documentation of how to Enable AXIS2 for
> REST,what are the configuration parameters I need to set to make this
> successful. 
> 

Search on this page[1] for the two articles (under External FAQs) with
the word "REST".  Let us know if they help you.

Glen

[1] http://wiki.apache.org/ws/FrontPage/Axis2/


> Thanx!
> Rajesh


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org