Re: multiple values for single GET parameter?

2007-04-03 Thread Ognjen Blagojevic

Hi feh,


What would the signature of my method need to look like? What would the WSDL
look like? 



Not sure for WSDL, but this should work (and Axis2 will generate WSDL):


public int add(int param1, int param2, int param3) {
   return param1 + param2 + param3;
}

You could invoke your service like

http://127.0.0.1:8080/axis2/rest/serviceName/serviceOperation?param1=1param2=10param3=123


For variable number of parameters I beleive it is not possible to use REST.

Regards,
Ognjen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



multiple values for single GET parameter?

2007-03-28 Thread feh


I want to be able to access a web service using multiple values for a single
GET parameter via REST. As an example, the request may be:

http://locahost/app/service/method?param=1param=2param=3

What would the signature of my method need to look like? What would the WSDL
look like? 

I've tried using an array in the service method (ie. public void
method(int[] param) ), and that seems
to create a decent WSDL, but when I actually make the request, only the
first value is being set.

Any ideas? Thanks!
-- 
View this message in context: 
http://www.nabble.com/multiple-values-for-single-GET-parameter--tf3482862.html#a9722268
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]