Author: Eulinky | Posted on: 8/20/2009 5:55:54 AM | Views : 245

Hi, I am new to Ajax and ASP.Net and just tried a simple example: A web method (WCF service) returns a complex object:
[OperationContract]
Person GetPerson();

where Person contains an Address object:
[DataContract]
public class Person
{
[DataMember]
public Address Address { ... }

[DataMember]
public string Name { ... }
}

[DataContract]
public class Address
{
[DataMember]
public string City { ... }

}
The service provides a JS proxy with the service, the method and both types which I can use in my web page. However, the objects Address and Person both don't have their properties like Address and so on. Is this common behaviour or is there a way the service creates those types completely?

...

Go to the complete details ...