private bool IsRequestStream(OperationDescription od)
{
foreach (MessageDescription message in od.Messages)
{
if (message.Direction == MessageDirection.Input)
{
if (message.Body.Parts.Count == 1)
{
return (message.Body.Parts[0].Type == typeof(Stream));
}
}
}
return false;
}