Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- binding = new BasicHttpBinding()
- {
- Name = "myBasicBinding",
- Security = new BasicHttpSecurity()
- {
- Transport = new HttpTransportSecurity()
- {
- ClientCredentialType = HttpClientCredentialType.Certificate,
- Realm = "Basic",
- },
- Message = new BasicHttpMessageSecurity()
- {
- ClientCredentialType = BasicHttpMessageCredentialType.UserName,
- },
- Mode = BasicHttpSecurityMode.TransportWithMessageCredential,
- },
- MaxReceivedMessageSize = Int32.MaxValue,
- };
- obj.ClientCredentials.ClientCertificate.Certificate = this.certificateLoader.ClientCertificate;
- obj.ClientCredentials.UserName.UserName = Config.Service_user;
- obj.ClientCredentials.UserName.Password = Config.Service_pass;
- The HTTP request is unauthorized with client authentication scheme 'Anonymous'.
- The authentication header received from the server was 'Basic realm="Restricted"
- <customBinding>
- <binding name="customBinding">
- <textMessageEncoding messageVersion="Soap11"/>
- <httpsTransport useDefaultWebProxy="false"
- requireClientCertificate="true"
- authenticationScheme="Basic"
- maxReceivedMessageSize="2147483647" />
- </binding>
- </customBinding>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement