Guest User

Untitled

a guest
Dec 18th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 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. var request = System.Net.WebRequest.Create("http://testurl.asmx?op=GetResponse");
Add Comment
Please, Sign In to add comment