Technical Discussion :: WebMethod
Home > Technical Interview Q&A > WebMethod > Discussion
8 / 166
Difference between web services and REST.
Answer:
SOAP | REST |
---|---|
1)An XML based message protocol. | An Architecture style Protocol. |
2) Uses WSDL for communication between consumer and provider. | Uses XML or JSON to send and receive data. |
3) Invoking service by calling RPC methods. | SImply call service via URL path. |
4) Does not return human readable format. | Result is readable, which is just plain XML or JSON. |
5) Transafer Over HTTP. Also use other protocols such as SMTP, FTP etc | Transfer is over HTTP only. |
6)Java Script can call SOAP, But it is difficult to implement. | Easy to call from Java script |
7) Performance is not great. | Performance is much better, Less CPU use, Leaner code, Light weight etc. |
Asked In ::
Difference Is in Notebook
SOAP | REST |
---|---|
1)An XML based message protocol. | An Architecture style Protocol. |
2) Uses WSDL for communication between consumer and provider. | Uses XML or JSON to send and receive data. |
3) Invoking service by calling RPC methods. | SImply call service via URL path. |
4) Does not return human readable format. | Result is readable, which is just plain XML or JSON. |
5) Transafer Over HTTP. Also use other protocols such as SMTP, FTP etc | Transfer is over HTTP only. |
6)Java Script can call SOAP, But it is difficult to implement. | Easy to call from Java script |
7) Performance is not great. | Performance is much better, Less CPU use, Leaner code, Light weight etc. |
Can you please explain anyone