Architecturally, one thing you should consider when converting a web application to a web service is that local access to methods and data does not match remote access. Remote access should be designed so that calls are clearer and exchange information at the same time.
Another thing you need to think about is what you will use in your serialization protocol. For example, SOAP and a REST-based protocol.
Also think about security — security considerations vary between web application and web service.
Finally, think about how others will find out about your web service (or if any).
source
share