using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; using AndroidBlog.Data; using AndroidBlog.Data.Entities; namespace AndroidBlog.Service { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together. [ServiceContract] public interface IAndroidService { [OperationContract] ArticleCollections GetArticlesAll(); [OperationContract] ArticleCollections GetArticle(decimal articleId); [OperationContract] ArticleCollections SaveChangesArticle(decimal userId, string article); } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using AndroidTest.ServiceReference1; namespace AndroidTest { class Program { static void Main(string[] args) { //List<article> _list = new ArticleCollections().GetArticlesAll(); var proxy = new AndroidServiceClient(); List<article> lst = proxy.GetArticlesAll(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)