I have a MessageContract called Document that looks like this:
[MessageContract]
public class Document : IDisposable
{
[MessageHeader(MustUnderstand = true)]
public string FileName;
[MessageHeader(MustUnderstand = true)]
public bool IsUploaded = false;
[MessageBodyMember(Order = 1)]
public Stream FileByteStream;
public void Dispose()
{
if (FileByteStream != null)
{
FileByteStream.Close();
FileByteStream = null;
}
}
}
Which is fine for the most part. It shows up in intellisense and I can instantiate it just fine. But I needed to add a new contract that looks like this:
[MessageContract]
public class Dummy
{
public int DummyID;
public Image DummyImage;
public int PageNumber;
}
Seemed simple enough. I built the project and updated my service reference. But that class doesn't show up and I can't instantiate it.
Any ideas on what I'm doing wrong here?