Thursday, April 12, 2018

Webservices

Q) When to use REST vs SOAP?
Ans https://dzone.com/articles/web-services-architecture
https://stormpath.com/blog/rest-vs-soap

  • SOAP is good for applications that require formal contracts between the API and consumer since it can enforce the use of formal contracts by using WSDL (Web Services Description Language).
  • Additionally, SOAP has built in WS-Reliable messaging to increase security in asynchronous execution and processing.
  • Finally, SOAP has built-in stateful operations. REST is naturally stateless, but SOAP is designed to support conversational state management.

Q) How to handle security in REST webservices?
Ans https://dzone.com/articles/top-5-rest-api-security-guidelines

Q) In Restful webservices, what are the methods and their use?
Ans -POST for CREATE, PUT for update, DELETE for deletion, GET for retrieval, PATCH for partial updates  and OPTION for checking before making a GET request

Reason- POST is idempotent as per HTTP specification and a creation request should be idempotent
PATCH is also idempotent

Q) Things to keep in mind while designing a restful web service?



Useful links:
REST web services - https://www.youtube.com/watch?v=xkKcdK1u95s&list=PLCCK2CzCX8EXTVHe12NLKMHq5GytRJSUj

1 comment:

EUMAXINDIA said...

Cinema advertising in Chennai is one of the fastest growing advertising opportunities. Eumaxindia is one of the top multiplex (INOX, Sathyam & PVR) advertising agencies in Chennai.

Theatre Advertising Agencies in Chennai