using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; namespace DocumentService { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code, svc and config file together. public class Service1 : IService1 { public string GetData(int value) { return string.Format("You entered: {0}", value); } public CompositeType GetDataUsingDataContract(CompositeType composite) { if (composite == null) { throw new ArgumentNullException("composite"); } if (composite.BoolValue) { composite.StringValue += "Suffix"; } return composite; } public bool UploadDocument(Object document) { // 1. upload the document and save it to web server // 2. return successful as true, and, error message if there is an exception return true; } public Object getDocument(String searchFor) { //1. Search for the document //2. return flag indicating whether the search was successful. return true; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)