How non-SOAP (REST WS, HTTP WS) web service clients knows about the structure of the response?
I mean, is there a formal way?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No.
The “provider” of the service needs to provide some form of documentation for that service – what parameters are possible, what the response will look like.
This is one of the major drawbacks of non-SOAP services…
There are a few initiatives like
WADL(Web Application Description Language) – but those are far from widely accepted and thus not really a valid alternative to WSDL.Microsoft has also extended REST to include metadata used in WCF REST and the WCF Data Services to allow .NET client-side proxies that “know” about the REST calls and the parameters – but again, that’s not really an industry standard that everyone follows.