Client will get a 400 Bad Request response when the return type from the method signature does not match the type of the returned result.
For example,
public Object DoWork()
{
return 12;
}
Why IEnumerable<T> cannot be used as the return type?
Because IEnumerable (and other interfaces) are not expressible in XML schema. Using a concrete type works fine in this case.