wcf

Restrict Access in WCF using FormsAuthenticationTicket, or other method?

£可爱£侵袭症+ 提交于 2020-02-06 02:15:54
问题 I've seen solutions where you can restrict access in WCF using the membership in asp.net.(How do I restrict access to some methods in WCF?) But i'm wondering if there is anything similar using the FormsAuthenticationTicket. I don't have the Membership configured on my site, and i'm using the FormsAuthenticationTicket and methods in WCF to log in and so on. The WCF-Service is not configured to use SSL YET, because the man i work for have not bought a cert trough our hosting company(don't know

WCF Identity definition in clustered environment

心已入冬 提交于 2020-02-05 07:57:12
问题 I apologize in advance for the length of this question, but I wanted to be sure to provide complete information as I have been researching it for weeks. As a followup to this question on WCF authorization errors, I'm trying to determine how to specify the SPN (or should this be a UPN?) for the service. My issue is currently that when attempting to contact the service I go through a load balancer. The load balancer alternately sends me to one of two servers, svcserv1 or svcserv2. I have not

How can I show all the methods that are available in my WCF in a dropdown

点点圈 提交于 2020-02-05 04:35:29
问题 How can I show all the methods that are available in my WCF in a dropdown. I need to show only those methods that are exposed to the client. I have the following code working, but it displays much more methods than expected. Seems it displays all. MethodInfo[] methods = typeof(IntlService.ClientDataServiceClient).GetMethods(); //// sort methods by name Array.Sort(methods, delegate(MethodInfo methods1, MethodInfo methods2) { return methods1.Name.CompareTo(methods2.Name); }); foreach (var

Site-To-Site Data synchronization Over WCF

自闭症网瘾萝莉.ら 提交于 2020-02-04 10:08:25
问题 I'm developping a distributed solution with a WebSite and a Corporate Application Management. Here is the architecture : Web Site : Database (SQL Server) Web Site : ASP.NET MVC Data synchronization Services (WCF) - Corporate Management Application : Database (SQL Server) WinForm Application Data synchronization Services (WCF) I want to perform Site-To-Site data synchronization. Note : The Corporate Management Application Database is the Warehouse datastore. Usually i want Corporate side asks

How to call RESTful WCF-Service from PHP

◇◆丶佛笑我妖孽 提交于 2020-02-04 09:42:47
问题 I'm trying to send an request to an Self-Hosted WCF-Service with REST in PHP. I want to send the object to the WCF service as an JSON Object. I did not get it running yet. Has anyone an example how to call the service out of PHP? This is the Operation contract (The method is a POST method): [OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void Method1(AnObject object); The

How to call RESTful WCF-Service from PHP

巧了我就是萌 提交于 2020-02-04 09:42:19
问题 I'm trying to send an request to an Self-Hosted WCF-Service with REST in PHP. I want to send the object to the WCF service as an JSON Object. I did not get it running yet. Has anyone an example how to call the service out of PHP? This is the Operation contract (The method is a POST method): [OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void Method1(AnObject object); The

What if the best way to return Option types by WCF service

那年仲夏 提交于 2020-02-04 08:22:26
问题 I have a WCF method which search the record in database and return Some(object) if the record exists and None if it doesn't. As I see I can't call the method which returns Type option through WCF (I get exception). What is the best way to design WCF services in F# in this way? For example, I can return empty Type Person { Name = "" Age = 0 // .... } if the record doesn't exist in DB, but I am looking for the best ideas... 回答1: A WCF service, just like a RESTful service, exposes an API that

Performing action before WCF service is shutdown

本小妞迷上赌 提交于 2020-02-04 05:19:32
问题 I have a WCF service hosted in IIS7. The service has a static class with a static list containing strings (sort of log). It periodically write the entries to a file or db. However when the IIS decides the recyle the app or terminate for whatever reason, the entries in the static field are lost. Is there any way I can handle the service shuttingdown kind event and persist the data from memory? Thanks Shreedhar 回答1: I've implemented several services via IIS with a custom service host

Android Json result processing

点点圈 提交于 2020-02-04 04:16:13
问题 I have Json result like this: array.getJSONObject(j) -- {"ExecutiveCode":"WAT2 ","FreeIssuePrefix":" ","DisPaySchedulePrefix":"","NextFreeIssueNo":"1","NextReturnNo":"20","UploadedType":"1","DisNextFreeIssueNo":"1","DisNextFOCNo":"1","NextVisitNo":"15","DisNextOrderNo":"1","UploadedOn":"Jun 17 2011 6:33PM","NextReturnAcceptNo":"1","BusinessUnit":"HEMA","TXNReferencePrefix":"20110708 ","OrderPrefix":"OR4 ","UploadedMethod":"3","FOCPrefix":" ","ReturnPrefix":"RT4 ","RetailerPrefix":"TEM4",

Android Json result processing

馋奶兔 提交于 2020-02-04 04:16:05
问题 I have Json result like this: array.getJSONObject(j) -- {"ExecutiveCode":"WAT2 ","FreeIssuePrefix":" ","DisPaySchedulePrefix":"","NextFreeIssueNo":"1","NextReturnNo":"20","UploadedType":"1","DisNextFreeIssueNo":"1","DisNextFOCNo":"1","NextVisitNo":"15","DisNextOrderNo":"1","UploadedOn":"Jun 17 2011 6:33PM","NextReturnAcceptNo":"1","BusinessUnit":"HEMA","TXNReferencePrefix":"20110708 ","OrderPrefix":"OR4 ","UploadedMethod":"3","FOCPrefix":" ","ReturnPrefix":"RT4 ","RetailerPrefix":"TEM4",