Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hai,
I written many wcf services..these wcf services are working in websites....now i want to modify these wcf services for IPhone....

I am posting small service..If this service work correctly then I'll modify all services

Ex:I want to Modify This existing service

IRoleService.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace ICloudServices
{
[ServiceContract]
public interface IRoleService
{

[OperationContract]
GetRoleResponse Get(GetRoleRequest getRoleRequest);
}
}

RoleService.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace ICloudServices
{
public class RoleService:IRoleService
{

public GetRoleResponse Get(GetRoleRequest getRoleRequest)
{
GetRoleResponse getRoleResponse = null;
try
{
getRoleResponse = RoleBLL.Get(getRoleRequest);

}
catch (BaseException ex)
{
throw new FaultException(ex.Summary);
}
return getRoleResponse;
}


Please help me...

Thank you
Posted

1 solution

 
Share this answer
 
Comments
.net333 9-Aug-12 3:13am    
Thank you...i already checked these sites...i don't want to call wcf service in Iphone....first I want to change the existing wcf service for IPhone....

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