Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 36539 invoked from network); 5 Mar 2007 14:41:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2007 14:41:09 -0000 Received: (qmail 26946 invoked by uid 500); 5 Mar 2007 14:41:15 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 26894 invoked by uid 500); 5 Mar 2007 14:41:14 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 26883 invoked by uid 99); 5 Mar 2007 14:41:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 06:41:14 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=FORGED_YAHOO_RCVD,MAILTO_TO_SPAM_ADDR,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 06:41:02 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HOEMj-0002Vd-Uz for axis-dev@ws.apache.org; Mon, 05 Mar 2007 06:40:41 -0800 Message-ID: <9312570.post@talk.nabble.com> Date: Mon, 5 Mar 2007 06:40:41 -0800 (PST) From: rjain To: axis-dev@ws.apache.org Subject: Re: [axis2] How to Configure/Enable Axis2 for REST In-Reply-To: <541aa82a0703031631s4b141e33qbbc85f618b45852a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: rjain15@yahoo.com References: <9289123.post@talk.nabble.com> <541aa82a0703031631s4b141e33qbbc85f618b45852a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi,=20 Let me explain what are the steps I do and what is the result I get 1. I have downloaded the axis-2.1.1 distribution, and created a axis2.war file.=20 2. I have Tomcat 5.5.15, and drop the war file in the webapps folder 3. I start Tomcat, and access the following URL=20 http://localhost:8080/axis2/services/listServices It shows me the Version Service with the following URL's=20 Service EPR : http://localhost:8080/axis2/services/Version Service REST epr : http://localhost:8080/axis2/rest/Version If I try to access the first URL (http://localhost:8080/axis2/services/Version) I get the following message Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml If I try to access the second URL (http://localhost:8080/axis2/rest/Version= ) I get the following error message =E2=88=92 =09 I can not find a service for this request to be serviced. Check the WSDL an= d the request URI Next, I go the axis2.xml and in the webapps/axis/WEB-INF\conf folder and change the following settings services rest true The rest all parameters are default, I don't change anything else.=20 I stop and start tomcat, access the List services, it shows me the same URL= .=20 I try to access the first URL, http://localhost:8080/axis2/services/Version= , I get the error message =E2=88=92 =09 I can not find a service for this request to be serviced. Check the WSDL an= d the request URI I try to access the second URL, http://localhost:8080/axis2/rest/Version, I get the error message soapenv:Fault> =E2=88=92 =09 I can not find a service for this request to be serviced. Check the WSDL an= d the request URI I check the WSDL at http://localhost:8080/axis2/services/Version?wsdl, and it is available.=20 I have tried with the Nightly builds, where the configuration parameters ar= e simpler, I have not=20 been successful. I would like to know what is the step I am missing or goin= g wrong.=20 Thanx once again for all the help!! regards Rajesh Manoj Khangaonkar wrote: >=20 > Rajesh, >=20 > REST is enabled by default. >=20 > What is not working ? What error are u getting ? >=20 > In the email below - the wrong URL is used to get the Version. The > documentation has the right URL >=20 > Mj >=20 >=20 > On 3/3/07, rjain wrote: >> >> >> Hi, >> >> I am trying to configure the axis2.xml and web.xml for REST. What are th= e >> parameters I need to set? I have tried all combinations of parameters an= d >> it >> doesn't seem to work. Out of box axis2.war, doesn't work (the Version >> REST >> Service doesn't work) Is this broken and do I have to do anything. Pleas= e >> help!!! >> >> Below is the conversation from the axis-user mailing list, and I haven't >> got >> any useful information >> >> regards >> Rajesh >> >> >> >> > Hi Glen >> > >> > Thanx for the article. But this didn't help. >> > >> > If I set both the parameters as described in the document i.e. >> > > > locked=3D"true">true >> > >> > > > locked=3D"true">true >> > >> > 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 >> > >> > >> > >> > =E2=88=92 >> > >> > I can not find a service for this request to be serviced. Check the >> WSDL >> > and >> > the request URI >> > >> > >> > >> > >> > >> > 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 >> >> >> >> >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > >> > >> > >> > 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 fo= r >> > >> 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 >> > > >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-Configure-Enable-Axis2-for-REST-tf3339998.h= tml#a9289123 >> Sent from the Axis - Dev mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org >> For additional commands, e-mail: axis-dev-help@ws.apache.org >> >> >=20 >=20 --=20 View this message in context: http://www.nabble.com/How-to-Configure-Enable= -Axis2-for-REST-tf3339998.html#a9312570 Sent from the Axis - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org