So in your case, you should set
maxBufferSize
to 2mb on the server, and
maxBufferPoolSize
to 2mb or more, also on the server. On the client, set the
maxReceivedMessageSize
also to 2mb.