Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

What is the standard way to pass parameters to REST services?

Is it parameterName = value?
In this way how the complex object would be passed?

I am using c# WebRequest class for calling Rest service.
Target service could be implemented in any language so the solution I have to implement should be generic.

Thanks,
Asif
Posted
Updated 19-Apr-11 21:48pm
v2
Comments
walterhevedeich 20-Apr-11 3:26am    
Good question. Voted 5.
Dalek Dave 20-Apr-11 3:48am    
Edited for Spelling and Readability.
BobJanova 20-Apr-11 8:02am    
It seems that JSON and XML (in the content part of a POST request) are the most common formats for complex data, in my brief visit to Googleland.
Asif Ishaq 21-Apr-11 3:40am    
Yes, But there is no way to know at run time which format a service is supporting. Right?

I am working on an application which requires this.
BobJanova 22-Apr-11 6:28am    
I don't think REST has an equivalent of the WSDL or some other standard self-description call, no.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900