Hi all,
I have the following web service:
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class MyTestClass
{
[OperationContract]
public List<TrackInfo> GetAll(string songName)
{
return new List<tracksInfo>;
}
}
I've made simple by purpose. Anyhows, when TrackInfo is declared in a class outside of the service reference, the service on the other end (meaning in the silverlight area) recognizes only the TrackInfo class, but cannot find the GetAll method. When I try putting the trackinfo class inside the reference but outside of MyTestClass the same problem occurs
I tried putting the trackinfo class inside the serivce as a datacontract:
[DataContract]
public class TrackInfo
{
public int ID { get; set; }
//Should consider using a stream instead
public List<Image> FullSizeNotes { get; set; }
public Image TrackNotes { get; set; }
public Stream MidiFile { get; set; }
}
Now the service recognizes the GetAll function, but does not recognize the properties of trackinfo.