Essentially I'm trying to send an object of the following type to a WCF service from SilverLight. The message contract of the object is the following:
[MessageContract]
public class UploadMessage
{
[MessageHeader(MustUnderstand = true)]
public Token Token;
[MessageHeader(MustUnderstand = true)]
public string FileExtension;
[MessageHeader(MustUnderstand = true)]
public Product Product;
[MessageBodyMember(Order = 1)]
public Stream FileByteStream;
}
[OperationContract(IsOneWay = true)]
void UploadFileStream(UploadMessage upm);
However whenever I try to call the method from the SilverLight client I can only specify the FileByteStream parameter (not the other 3).
What could possibly be the issue here?