SharePoint 2013 web service
-
I am in a company that recently implemented office 365 so that we can use sharepoint 2013 in the cloud. Based upon my research, both Sharepoint Designer 2013 and visual studio .net 2012 can be setup to call a web service. Thus I have the following questions: 1.When planning to setup this type of a web service, I am looking at it from an architectural point of view right now. Would you setup several different web services depending upon the types of calls that are being made? If not, would you setup one web service and that could be called and the web service would be 'smart enough' to know where to obtain the various values from? Can you tell me what your answer is and explain why you chose that option? 2. I believe the web service for Sharepoint 2013 uses the rest api and WCF service. Thus can you show me code and/or point me to links (urls) that shows how to setup and consume this type of web service?
-
I am in a company that recently implemented office 365 so that we can use sharepoint 2013 in the cloud. Based upon my research, both Sharepoint Designer 2013 and visual studio .net 2012 can be setup to call a web service. Thus I have the following questions: 1.When planning to setup this type of a web service, I am looking at it from an architectural point of view right now. Would you setup several different web services depending upon the types of calls that are being made? If not, would you setup one web service and that could be called and the web service would be 'smart enough' to know where to obtain the various values from? Can you tell me what your answer is and explain why you chose that option? 2. I believe the web service for Sharepoint 2013 uses the rest api and WCF service. Thus can you show me code and/or point me to links (urls) that shows how to setup and consume this type of web service?
dcof wrote:
Would you setup several different web services depending upon the types of calls that are being made?
Yes, because Webservices should have a well design input / output interface. A Webservice is like a method/function. It should give back a well defined value / object.
dcof wrote:
If not, would you setup one web service and that could be called and the web service would be 'smart enough' to know where to obtain the various values from?
In no case! That's a bad way in abusing webservices.
dcof wrote:
believe the web service for Sharepoint 2013 uses the rest api and WCF service. Thus can you show me code and/or point me to links (urls) that shows how to setup and consume this type of web service?
I could. But just use google "C# call Webservice" and "SharePoint Webservices" you should find enought good examples.
SharePoint Consultant and Developer at acocon Author of Primary ROleplaying SysTem I'm the ninth in a row of seven!