Error on adding Service Reference due to an amount of service operations
===

I have a service contract with a sufficient amount of operations (~ 40 operations). When I'm trying to add Service Reference from my client project (or even from [WCF Test Client][1]) I'm getting an error:

> Error: Cannot obtain Metadata from
> net.tcp://localhost:12345/DataProvider/mex If this is a Windows (R)
> Communication Foundation service to which you have access, please
> check that you have enabled metadata publishing at the specified
> address.  For help enabling metadata publishing, please refer to the
> MSDN documentation at
> http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata Exchange
> Error    URI: net.tcp://localhost:12345/DataProvider/mex    Metadata
> contains a reference that cannot be resolved:
> 'net.tcp://localhost:12345/DataProvider/mex'.    There is an error in
> the XML document.    The value for the 'type' attribute is invalid -
> 'q2:PersonFilter' is an invalid value for the 'type' attribute.

__The strange behaviour starting here:__ when do nothing, but remove __just one__ of service operations, everything goes very well - adding of the Service Reference works super good. Of course, I did not tried to remove every method of those ~40, but I've tried ~5. __Another important thing__ - I did not remove the method which operates with the `PersonFilter` (the type shown in the error message).

I have no idea, how to fix this. If more information is needed, just let me know.


  [1]: http://msdn.microsoft.com/en-us/library/bb552364.aspx