That would be because you didn't specify on the server which binding to use. Let's take a look at your server config:
Under
you are creating a binding configuration for
, and you are naming it name="basicHttpBinding"
. Also, your endpoint name is
and its binding is binding="basicHttpBinding"
. However, it's not referring to your binding configuration, but to the binding type. So, it's actually using the default settings for basicHttpBinding
.
To fix this, first of all name your endpoint and binding configuration differently. For example,
and
. Then you need to assign your binding configuration to your endpoint with this attribute: bindingConfiguration="myBasicBinding"
.
Here's the client config:
Here's the server config:
Don't forget to update service reference
on your client to get the correct config.