Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using nTyre App.This is my service.svc.cs

C#
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);

        
       
    }
}


in test program.cs
C#
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();


           
        }
    }
}
iwant to add get article but it's giving error how can i add
List lst = proxy.GetArticle(articleId);
help me
Posted
Updated 25-Mar-13 19:57pm
v3
Comments
Jameel VM 26-Mar-13 1:24am    
What's the error?
Vani Kulkarni 26-Mar-13 1:57am    
[Edit] Formatted code [/Edit]
Vani Kulkarni 26-Mar-13 1:59am    
What error are you facing?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900