No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, does anyone knows how to read wcf file using xdocument or xelement ? I would like to retrieve out the data from my database using web client instead service reference method. Does anyone have articles on that or the codings ? |
|
Hi, may i know how to write the method in web service if i want to get a description from a particular id ? [CODE] public List<EventEntity> GetDetails(string uid) { EventDBModelDataContext ct = new EventDBModelDataContext(); var detail = ct.EventEntities.Where(d => d.eventID==uid).Select(d => new { d.eventID, d.eventDesc }); return detail.ToList(); }[/CODE] … |
|
[CODE]public List<EventEntity> GetCurrentUpComingEventsByEstate(string estName) { EventDBModelDataContext context = new EventDBModelDataContext(); var res = from e in context.EventEntities where e.estateName==estName && e.eventDate >= DateTime.Now select e; return res.ToList(); } [/CODE] [CODE] [OperationContract] [WebInvoke(Method = "GET", UriTemplate = "GetCurrentUpComingEventsByEstate?estateName={estName}", RequestFormat = WebMessageFormat.Xml, ResponseFormat = WebMessageFormat.Xml)] List<EventEntity> GetCurrentUpComingEventsByEstate(string estName); [/CODE] Hi guys, may … |
|
hello, may i know if it is possible to display a list of data from database, into the listpicker by consuming the web service? can you provide me the c sharp coding for displaying data in the listpicker if can work? :) |
|
public List<EventEntity> GetCurrentUpComingEventsByEstate(string EstName) { EventDBModelDataContext context = new EventDBModelDataContext(); var res = from e in context.EventEntities where e.eventDate >= DateTime.Now _estatename(?) select e; return res.ToList(); } Hi experts, How do i declare the estatename part so that when i test the program in web browser, i will only get … |
|
Hi, Anyone know how to solve this error message " Metadata publishing for this service is currently disabled." What does it means ? How come my web service show's tt error after i expose it using the RESTful method? |
|
How to return a list using string array method ? For eg. i want to display a list of all the estates name using string array ? |
|
Hi, how do expose a web service and by using the ping method,how to test whether another computer can access to my web service ? |
|
Hi, does anyone knows why after exposing my web service and it works(displaying all my data), why another pc can't seem to get access to my data after keying in my port no of my service? Must i type anything in the web.config or ? |
|
Hi everybody, may i know how do i expose the web service in order for my friend to excess my data in my service ? What do i have to type in the web.config file and is there any other things i should add or do ? Thanks. (: |
|
[CODE][OperationContract] [WebInvoke(UriTemplate = "GetCurrentUpComingEventsByEstate?estateName=EstName", RequestFormat = WebMessageFormat.Xml, ResponseFormat = WebMessageFormat.Xml)] List<EventEntity> GetCurrentUpComingEventsByEstate(string EstName); public List<EventEntity> GetCurrentUpComingEventsByEstate(string EstName) { EventDBModelDataContext context = new EventDBModelDataContext(); var res = from e in context.EventEntities where e.eventDate >= DateTime.Now && e.estateName.Equals(EstName) select e; return res.ToList(); }[/CODE] This is my codes. But the endpoint is not … |
|
Hi, may i know why does my images can't be displayed after i test the web service ? |
|
Hi, i would like to know to retrieve out the date and time from my database to show on the wcf test client and for eg, after choosing a certain date, how to do the coding in order for the events to show that's happening on the date i choose … |