I have a WCF service. In that service I have defined class marked MessageContract attribute:
[MessageContract]
public class RemoteFileInfo : IDisposable
{
[MessageHeader(MustUnderstand = true)]
public string FileName;
[MessageHeader(MustUnderstand = true)]
public long Length;
[MessageHeader(MustUnderstand = true)]
public Picture Picture;
[MessageBodyMember(Order = 1)]
public System.IO.Stream FileByteStream;
public void Dispose()
{
if (FileByteStream != null)
{
FileByteStream.Close();
FileByteStream = null;
}
}
}
I have problem with fields marked MessageHeader attribute. In WPF app (client) all fields are visible but when I use this service in Windows Phone app, fields marked MessageHeader are not visible. Only body fields are available. Is any possibility that header fields also be available?