Hi Nick, The article is now published on wso2.org. You can access it at [1]. As I have stated in future directions in the article I plan to make it really simple do to RESTfull services in Axis2. Somewhat similar to the way I have done it in the Mashup Server <http://www.keith-chapman.org/2008/09/restfull-mashup-with-wsdl-20-wso2.html> .
Please let me know what you think about it. Thanks, Keith. [1] http://wso2.org/library/3726 [2] http://www.keith-chapman.org/2008/09/restfull-mashup-with-wsdl-20-wso2.html On Tue, Sep 23, 2008 at 10:32 PM, Nick Steel < [EMAIL PROTECTED]> wrote: > > Keith, > I currently have a POJO service which I then run through Java2WSDL to > create > a WSDL from. But since I'm just firing off test requests using my browser > I > don't understand how a WSDL comes into play. My problem is that I don't > see > how Axis knows that /{id} maps to that id parameter in the customerdetails > method. When using CXF I have to annotate the methods and the parameters > so > it knows whats going on.... But perhaps it will become clear with the new > article and I look forward to reading that. > > Many thanks, > Nick > > > Keithgchapman wrote: > > > > Hi Nick, > > > > This is definitely possible and this feature is a part of Axis2 and not > > the > > Mashup Server. The only issue is that to do this in Axis2 you will have > to > > deploy your service using a WSDL. I suppose you have used a POJO > approach, > > and my article on doing this with Axis2 (Thats just around the corner) > > will > > describe how you can do this. (Use the java class to generate the WSDL, > > where to edit it and how to deploy). I hope to have it ready within this > > week. > > > > Thanks, > > Keith. > > > > On Tue, Sep 23, 2008 at 4:30 PM, Nick Steel > > <[EMAIL PROTECTED] > >> wrote: > > > >> > >> Hi Keith, > >> > >> Thanks for the pointer to the article but can you fill in some gaps for > >> me? > >> > >> If I have a Java interface exposed as a vanilla Axis2 1.4 webservice > with > >> the following example method: > >> public String[] customerdetails(String id) { .. } > >> is it possible to then use REST and have a URL such as > >> /some-endpoint/customerdetails/{id}? > >> And then if I simply goto /some-endpoint/customerdetails/4 with my web > >> browser should it work and populate the parameter with the value 4? > Cause > >> at > >> the moment it doesn't and I can't understand how to fix this. > >> > >> In your article you say Axis uses the constant part of the httpLocation, > >> so > >> am I right in saying this would be "customerdetails" and Axis2 would use > >> this to map to the customerdetails(String id) method that's defined in > my > >> service? Or is this feature only possible with some additional magic in > >> the > >> mashup software? > >> > >> Cheers, > >> Nick > >> > >> > >> Keithgchapman wrote: > >> > > >> > Hi all, > >> > > >> > I've put a blog > >> > post< > >> > http://www.keith-chapman.org/2008/09/restfull-mashup-with-wsdl-20-wso2.html > >> >[1] > >> > on the above subject. It will be a good resource for those of you who > >> > want to do RESTfull web services with Axis2. BTW an article on how you > >> > could > >> > achieve this with Axis2 is just around the corner. > >> > > >> > Thanks, > >> > Keith. > >> > > >> > [1] > >> > > >> > http://www.keith-chapman.org/2008/09/restfull-mashup-with-wsdl-20-wso2.html > >> > > >> > -- > >> > Keith Chapman > >> > Senior Software Engineer > >> > WSO2 Inc. > >> > Oxygenating the Web Service Platform. > >> > http://wso2.org/ > >> > > >> > blog: http://www.keith-chapman.org > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/RESTfull-web-services-with-WSDL-2.0---Resource-tp19620355p19625368.html > >> Sent from the Axis - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > Keith Chapman > > Senior Software Engineer > > WSO2 Inc. > > Oxygenating the Web Service Platform. > > http://wso2.org/ > > > > blog: http://www.keith-chapman.org > > > > > > -- > View this message in context: > http://www.nabble.com/RESTfull-web-services-with-WSDL-2.0---Resource-tp19620355p19632300.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org
