I am trying to send a file via a WCF service. I have a MessageContract that should allow me to enter the filename into the message header but it is not.
Here is the contract:
[MessageContract()]
public class FileTransferRequest
{
[MessageHeader(MustUnderstand=true)]
public System.String fName;
[MessageBodyMember(Order = 1)]
public System.IO.Stream Data;
}
Here is the implementation:
[OperationContract(IsOneWay = true)]
void UploadStream(FileTransferRequest request);
The function is:
public void UploadStream(FileTransferRequest request)
{
...
}
The reference in the proxy class on the client should be:
void UploadStream(String fName, Stream Data)
But shows up as:
void UploadStream(byte[] Data)
Any ideas? I am very new to web services and wcf.
Here is the contract:
[MessageContract()]
public class FileTransferRequest
{
[MessageHeader(MustUnderstand=true)]
public System.String fName;
[MessageBodyMember(Order = 1)]
public System.IO.Stream Data;
}
Here is the implementation:
[OperationContract(IsOneWay = true)]
void UploadStream(FileTransferRequest request);
The function is:
public void UploadStream(FileTransferRequest request)
{
...
}
The reference in the proxy class on the client should be:
void UploadStream(String fName, Stream Data)
But shows up as:
void UploadStream(byte[] Data)
Any ideas? I am very new to web services and wcf.