Guest User

Untitled

a guest
Dec 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. using WebApplication2.MyWebServiceReference;
  2.  
  3. MyWebServiceReference.UserCredentials credentials = new UserCredentials();
  4. credentials.username = "uname";
  5. credentials.password = "pwd";
  6.  
  7. MyWebServiceReference.Options options = new Options ();
  8. options.includeImages = false;
  9. options.maxWidth = 0;
  10. options.maxHeight = 0;
  11. options.maxThumbnailWidth = 0;
  12. options.maxThumbnailHeight = 0;
  13.  
  14. MyWebServiceReference.Result response = new Result();
  15.  
  16. MyWebServiceReference.SoapClient client = new SoapClient();
  17. response = client.MyMethod(credentials, options, 100);
  18.  
  19. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.design.xyz.com">
  20. <soapenv:Header>
  21. <ws:Options>
  22. <ws:includeImages>1</ws:includeImages>
  23. <ws:maxWidth>1</ws:maxWidth>
  24. <ws:maxHeight>1</ws:maxHeight>
  25. <ws:maxThumbnailWidth>1</ws:maxThumbnailWidth>
  26. <ws:maxThumbnailHeight>1</ws:maxThumbnailHeight>
  27. </ws:Options>
  28. <ws:UserCredentials>
  29. <!--Optional:-->
  30. <ws:username>uname</ws:username>
  31. <!--Optional:-->
  32. <ws:password>pwd</ws:password>
  33. </ws:UserCredentials>
  34. </soapenv:Header>
  35. <soapenv:Body>
  36. <ws:MyMethod>
  37. <ws:Id>105304</ws:Id>
  38. </ws:MyMethod>
  39. </soapenv:Body>
  40. </soapenv:Envelope>
Add Comment
Please, Sign In to add comment