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 Chris Richmond <cr...@referentia.com> on 2008/04/24 23:46:00 UTC

REST Complex type

Does anyone know how to submit a complex type on the URL to the REST
endpoint?

 

 

For instance how to submit a User object that has 3 string types and 3 long
types on the URL for the REST GET submit?

 

Thanks,


Chris


Re: REST Complex type

Posted by keith chapman <ke...@gmail.com>.
Can you send the schema for the input message of operation you are trying to
invoke via REST please.

Thanks,
Keith.

On Fri, Apr 25, 2008 at 3:16 AM, Chris Richmond <cr...@referentia.com>
wrote:

>  Does anyone know how to submit a complex type on the URL to the REST
> endpoint?
>
>
>
>
>
> For instance how to submit a User object that has 3 string types and 3 long
> types on the URL for the REST GET submit?
>
>
>
> Thanks,
>
>
> Chris
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: REST Complex type

Posted by strutstwouser <st...@gmail.com>.
Hi,

Just wanted to know if complextype submit is possible using GET at all, or
should we go for POST? . I haven't had success with either, but going by
REST theory, if i want to "retrieve" data, i must use GET and say i have a
search service which takes in multiple search criteria, what would be best
way to provide the criteria values to it ? . I assume a Criteria complextype
(with certain elements nillable) would make sense, rather than having to
send each of the elements individually as querystring params - thoughts?

-Joseph

> Does anyone know how to submit a complex type on the URL to the REST 
> endpoint? For instance how to submit a User object that has 3 string types
> and 3 
> long types on the URL for the REST GET submit?
>

In theory, you should use a POST for this. Doing this with GET is not 
"RESTful".
So why not use a POST?


-- 
View this message in context: http://www.nabble.com/REST-Complex-type-tp16886707p20534446.html
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: REST Complex type

Posted by Samisa Abeysinghe <sa...@gmail.com>.
Chris Richmond wrote:
>
> Does anyone know how to submit a complex type on the URL to the REST 
> endpoint?
>
>  
>
>  
>
> For instance how to submit a User object that has 3 string types and 3 
> long types on the URL for the REST GET submit?
>

In theory, you should use a POST for this. Doing this with GET is not 
"RESTful".
So why not use a POST?

Samisa...

>  
>
> Thanks,
>
>
> Chris
>


-- 
Samisa Abeysinghe

http://people.apache.org/~samisa/


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