Stephen Russell wrote on 2013-05-24: > On Fri, May 24, 2013 at 11:12 AM, Stephen Russell <[email protected]>wrote: > >> >> ------------ >> >> >> > I like this type of code for the client: > > using (CIMS.SC.ELW.ElogsService.CIMSELServiceContractClient ELServ = new > CIMS.SC.ELW.ElogsService.CIMSELServiceContractClient()) > { > ElogsService.DocGroup[] oDocGroup = > ELServ.getDocGroupList(); > <snip> > > After I instantiate ELServ I can get everything I have exposed. > > In the service itself: > > public static List<DocGroup> getDocGroupList() > { > using (ELogs2Entities EL = new ELogs2Entities()) > { > var dGroups = (from dt in EL.DocumentGroups > select new DocGroup > { > documentGroup = dt.DocumentGroup, > documentGroupNumber = > dt.DocumentGroupNumber > }).ToList(); > if (dGroups.Count == 0) > { > DocGroup oDT = new DocGroup(); > oDT.errorMsg = "No data found"; > dGroups.Add(oDT); > } > return dGroups; > } > } > > Why screw with Http Get and Http Post?
Stephen, Behind that little bit of code everything is a POST using SOAP. To my knowledge, VFP doesn't have a library we can grab and use that works with *all* WSDLs. Tracy Pearson PowerChurch Software _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

