title: Webservice call returns "401 Authorization Required"
body: <p>I'm calling a third party webservice which uses credentials to validate the request. below is the code.</p>
  
  <pre><code>SmsWSIService smsService = new SmsWSIService();
  smsService.Credentials = new NetworkCredential(smsUserName, smsPassword);
  smsService.PreAuthenticate = true;                
  
  
  SendSMS.SendSMS objSendSmsReq = new SendSMS.SendSMS();
  objSendSmsReq.From = smsFrmMobNo;
  objSendSmsReq.Message = smsMsg
  objSendSmsResp = smsService.SendSMS(objSendSmsReq);
  </code></pre>
  
  <p>but its giving me the error "401 Authorization Required". I'm sure that the credentials which i'm passing are correct. The webservice doesn't give any error when I check it with the SOAP UI 3.5.</p>
  
  <p>Please help where I'm going wrong.</p>