I am developing a wcf service (basicHttpBinding) that will be consumed by non .net clients (e.g. Java clients). But now I wonder, is DataContract will support in jave and other non .net clients? If not what shuold be my return type. Basically my service will be consumed by non .net clients and I don’t know whether DataContract supports in non .net clients.
Below is my contract and service contract code.
[DataContract]
public class DataResponse
{
string customerId;
string version;
string email;
string firstName;
[DataMember]
public string CustomerId
{
get { return customerId; }
set { customerId = value; }
}
[DataMember]
public string Version
{
get { return version; }
set { version = value; }
}
[DataMember]
public string Email
{
get { return email; }
set { email = value; }
}
[DataMember]
public string FirstName
{
get { return firstName; }
set { firstName = value; }
}
}
[ServiceContract]
public interface ICustomerProfile
{
[OperationContract]
DataResponse GetCustomerProfile(string requestObj);
}
Please do the needful.