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

Reply via email to