Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Script.Serialization;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- namespace Temp1
- {
- public partial class WebForm2 : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- ServiceReference1.ORoomJsonServiceSoapClient client = new ServiceReference1.ORoomJsonServiceSoapClient();
- ServiceReference1.UserEntity user = new ServiceReference1.UserEntity();
- user.UserId = "[email protected]"; // Google
- user.Password = "demeler@123";
- user.Email = "";
- user.Name = "";
- user.Role = "";
- client.DiscoverService(user);
- //alert(client.DiscoverService(user));
- string room = client.GetRoom("CR-NYC-14-13-PI");//Google
- JavaScriptSerializer js = new JavaScriptSerializer();
- var members = js.Deserialize<dynamic>(room); // Deserialize of json string object room
- this.Label1.Text = (members["RoomName"]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment