ashutiwari4

Untitled

Mar 24th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Script.Serialization;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8.  
  9. namespace Temp1
  10. {
  11. public partial class WebForm2 : System.Web.UI.Page
  12. {
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15. ServiceReference1.ORoomJsonServiceSoapClient client = new ServiceReference1.ORoomJsonServiceSoapClient();
  16. ServiceReference1.UserEntity user = new ServiceReference1.UserEntity();
  17. user.UserId = "[email protected]"; // Google
  18. user.Password = "demeler@123";
  19. user.Email = "";
  20. user.Name = "";
  21. user.Role = "";
  22.  
  23. client.DiscoverService(user);
  24.  
  25. //alert(client.DiscoverService(user));
  26. string room = client.GetRoom("CR-NYC-14-13-PI");//Google
  27.  
  28. JavaScriptSerializer js = new JavaScriptSerializer();
  29. var members = js.Deserialize<dynamic>(room); // Deserialize of json string object room
  30.  
  31. this.Label1.Text = (members["RoomName"]);
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment