配置 WsHttpBinding 以使用基本身份验证的传输安全性
<bindings >
<wsHttpBinding >
<binding name="mybinding" >
<security mode="Transport" >
<transport clientCredentialType="Basic"/ >
</security >
</binding >
</wsHttpBinding >
</bindings >
<bindings >
<wsHttpBinding >
<binding name="mybinding" >
<security mode="Transport" >
<transport clientCredentialType="Basic"/ >
</security >
</binding >
</wsHttpBinding >
</bindings >