wcf - Retriving webservice result from windows 10 mobile (UWP) -
i beginner in uwp. want uwp application interact sql server.for have created wcf , web service returning result in json format
list<check_type_master> _checktypemaster = new list<check_type_master>(); datatable dt = getdatatable(query,sqlconnectionstring); if (dt.rows.count > 0) { foreach (datarow dr in dt.rows) { check_type_master checktype = new check_type_master(); checktype.check_type_id = int32.parse(dr["check_type_id"].tostring()); checktype.check_type_name = dr["check_type_name"].tostring(); checktype.store_id = int32.parse(dr["store_id"].tostring()); _checktypemaster.add(checktype); } output = jss.serialize(_checktypemaster); } i hosted webservice in iis , able run in pc below code
servicereference2.service1client ic = new servicereference2.service1client(); string gusttyperesult = ic.getresultasync().result.getresultresult.tostring(); var chektyperesponse =jsonconvert.deserializeobject<list<check_type_master>>(gusttyperesult); but service not accessible when running using mobile device(both mobile , pc in same network)
any ?
Comments
Post a Comment