title: How to Consume SAP Web Service in C#
body: <p>I want to consume SAP web service into my c# application. For that i wrote one block of code given below.</p>
  
  <pre><code>NetworkCredential ntobj = new NetworkCredential();
              ZWEBSERVICE_INTERNAL_ORDER2 zClassobj = new ZWEBSERVICE_INTERNAL_ORDER2();
              ZbapiFiCreateInternalOrder zMethodObj = new ZbapiFiCreateInternalOrder();
              ZbapiFiCreateInternalOrderResponse zMethodResobj = new ZbapiFiCreateInternalOrderResponse();
  
              ntobj.UserName = "alpldev";
              ntobj.Password = "alpl123";
  
              zClassobj.PreAuthenticate = true;
              zClassobj.Credentials = ntobj;
  
              zMethodObj.IDriverNo = "KD00000014";
              zMethodObj.IPlant = "1001";
              zMethodObj.ITripNo = "1001201406140027";
              zMethodObj.IVhclNo = "AP29Q8639";
  
              zMethodResobj = zClassobj.ZbapiFiCreateInternalOrder(zMethodObj);
  </code></pre>
  
  <p>but at last line i got "underlying connection established was closed. unexpected format was send" error.</p>
  
  <p>please help me...</p>