Hello Friends,
i have been tasked to write a new web service with returns list of Addresses
to do so i have created a class as bellow
[Serializable]
public class AddressDataCollection : List<AddressData>
{
private long m_ErrorCode;
private string m_ErrorMessage;
public long ErrorCode
{
get
{
return m_ErrorCode;
}
set
{
m_ErrorCode = value;
}
}
public string ErrorMessage
{
get
{
return m_ErrorMessage;
}
set
{
m_ErrorMessage = value;
}
}
}
i have a Web service function with returns this object
[WebMethod]
public AddressDataCollection FastFindLookup(string strAddress, int MaxWaitTimeInMilliSeconds)
{
}
however when i try to consume this object in my client appliction. the visual studio code generator returns AddressData[] and discards ErrorCode, ErrorMessage props
can you please guid me through if i am missing some thing
i am using asp.net 2.0 for client and service
thanks