Advertisement
Guest User

Untitled

a guest
Sep 12th, 2011
945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3. <system.serviceModel>
  4. <services>
  5. <service behaviorConfiguration="MathServiceBehaviors" name="WCF_Tries.Math">
  6. <endpoint binding="basicHttpBinding" bindingConfiguration="NewBinding" address="" contract="WCF_Tries.IMathService" name="Default" bindingNamespace="WCF_Tries" />
  7. <host>
  8. <baseAddresses>
  9. <add baseAddress="http://localhost:8733/MathService" />
  10. </baseAddresses>
  11. </host>
  12. </service>
  13. </services>
  14.  
  15. <bindings>
  16. <basicHttpBinding>
  17. <binding name="NewBinding">
  18. <security mode="TransportCredentialOnly">
  19. <transport clientCredentialType="Basic" />
  20. </security>
  21. </binding>
  22. </basicHttpBinding>
  23. </bindings>
  24.  
  25. <behaviors>
  26. <serviceBehaviors>
  27. <behavior name="MathServiceBehaviors" >
  28. <serviceMetadata httpGetEnabled="true" />
  29.  
  30. <serviceCredentials>
  31. <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="WCF_Tries.CustomValidator, WCF_Tries"/>
  32. </serviceCredentials>
  33.  
  34. </behavior>
  35. </serviceBehaviors>
  36. </behaviors>
  37.  
  38.  
  39.  
  40. </system.serviceModel>
  41. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement