I m new to iPhone programming.
What I want to do authenticate a user in iPhone using webservice. For instance
I Have a WCF webservice that I want to consume in my objective C code.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Runtime.Serialization;
using MobileKpi.Business;
namespace MobileKpi.Services
{
[ServiceContract]
public interface IUploadData
{
[OperationContract]
[WebInvoke(UriTemplate = "UploadUserSessionData/", Method = "POST")]
string UploadUserSessionData(SessionXML pstrXML);
}
[DataContract(Namespace = "", Name = "UserLogin")]
public class UserLogin
{
string user = "";
string pass = "";
[DataMember(Name = "userName")]
public string userName
{
get { return user; }
set { user = value; }
}
[DataMember(Name = "password")]
public string password
{
get { return pass; }
set { pass = value; }
}
}
}
I want to access its two data members user and password . How can I do it in Objective C.
Any solutions Or Sample Code.