Guest User

Untitled

a guest
Jan 8th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3. <system.serviceModel>
  4. <bindings>
  5. <basicHttpBinding>
  6. <binding name="BizTalkInterfaceServiceSoapBinding">
  7. <security mode="Transport">
  8. <transport clientCredentialType="Basic" proxyCredentialType="Basic" realm="" />
  9. </security>
  10. </binding>
  11. </basicHttpBinding>
  12. </bindings>
  13. <client>
  14. <endpoint address="https://xxx.xxx.xxx.xxx:xxxxx/and/so/on"
  15. binding="basicHttpBinding" bindingConfiguration="BizTalkInterfaceServiceSoapBinding"
  16. contract="ServiceReference.BizTalkInterface" name="BizTalkInterfacePort" />
  17. </client>
  18. </system.serviceModel>
  19. </configuration>
  20.  
  21. protected BizTalkInterfaceClient client;
  22.  
  23. protected ServiceBase()
  24. {
  25. client = new BizTalkInterfaceClient("BizTalkInterfacePort");
  26. client.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
  27. client.ClientCredentials.UserName.UserName = "xxx@xxxdomain";
  28. client.ClientCredentials.UserName.Password = "xxxxxx";
  29. }
Add Comment
Please, Sign In to add comment