Guest User

Untitled

a guest
Nov 4th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. public void CallServiceMNB()
  2. {
  3. ServiceReference1.SOAPCLIENT objMNB = new ServiceReference1.SOAPCLIENT();
  4. ServiceReference1.SOAPCLIENTinput input = new ServiceReference1.SOAPCLIENTinput();
  5. string Username = "xxx";
  6. string Password = "xxxx";
  7. objMNB.ClientCredentials.UserName.UserName = Username;
  8. objMNB.ClientCredentials.UserName.Password = Password;
  9. input.p_FROM_DATE = "01-01-2018";
  10. input.p_JE_CATEGORY = "xxxx";
  11. input.p_GROUP_ID = "";
  12. input.p_JE_SOURCE = "YYYYYY";
  13. input.p_LEDGER_NAME = "YYYYY";
  14. input.p_TO_DATE = "31-12-2018";
  15. try
  16. {
  17. objMNB.Open();
  18. objMNB.GetGLDetails(input);
  19. objMNB.Close();
  20. }
  21. catch (Exception Ex)
  22. {
  23. this.richTextBox1.Text = Ex.ToString();
  24. objMNB.Close();
  25. }
  26. }
Add Comment
Please, Sign In to add comment