Guest User

Untitled

a guest
Nov 22nd, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <configuration>
  3. <configSections>
  4. <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  5. <section name="CockpitQCWSExtractor.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
  6. </sectionGroup>
  7. </configSections>
  8. <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
  9. <system.serviceModel>
  10. <bindings>
  11. <basicHttpBinding>
  12. <binding name="Sellout_OBBinding">
  13. <security mode="Transport">
  14. <transport clientCredentialType="Basic" />
  15. <message clientCredentialType="UserName" algorithmSuite="Default" />
  16. </security>
  17. </binding>
  18. <binding name="Sellout_OBBinding1" />
  19. </basicHttpBinding>
  20. </bindings>
  21. <client>
  22. <endpoint address="https://dev.servereai30.server.com/XISOAPAdapter/MessageServlet?channel=B2B_MYENTERPRISE:PROJECT:SOAP_SND_MYENTERPRISE_Sellout"
  23. binding="basicHttpBinding" bindingConfiguration="Sellout_OBBinding"
  24. contract="SellOutWSDL.Sellout_OB" name="Sellout_OBPort" />
  25. </client>
  26. </system.serviceModel>
  27. </configuration>
  28.  
  29. var wsRefa = new Sellout_OBClient();
  30. wsRefa.ClientCredentials.UserName.UserName = "<user>";
  31. wsRefa.ClientCredentials.UserName.Password = "<password>";
  32. wsRefa.Sellout_OB();
Add Comment
Please, Sign In to add comment