Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. class Program
  2. {
  3. static void Main(string[] args)
  4. {
  5.  
  6. ArticleServiceClient client = new ArticleServiceClient();
  7.  
  8. client.ClientCredentials.UserName.UserName = "логин"; // на самом деле там правильный логин
  9. client.ClientCredentials.UserName.Password = "пароль";
  10.  
  11. PostingReadyForGiveoutListGetRequestBody req = new PostingReadyForGiveoutListGetRequestBody();
  12. req.request = new ozon.api.subagent.RequestPostingReadyForGiveoutListGet();
  13. req.request.Login = "логин";
  14. req.request.Password = "пароль";
  15. req.request.ContractID = 2394239929239; // contract ID
  16.  
  17.  
  18. PostingReadyForGiveoutListGetResponseBody res = new PostingReadyForGiveoutListGetResponseBody();
  19. res.PostingReadyForGiveoutListGetResult = client.PostingReadyForGiveoutListGet(req.request);
  20.  
  21. Console.WriteLine(res.PostingReadyForGiveoutListGetResult.ResultMessage);
  22.  
  23. client.Close();
  24.  
  25. Console.ReadLine();
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement