wcf

C# REST webservice authentication problem

安稳与你 提交于 2020-01-24 14:38:39
问题 In my previous question here i was experiencing difficulties with Authenticating webservices. With the use of the WcfRestContrib library which i found here i was able to solve this issue. I build a small testapplication and the authentication works like a charm. But while i'm implementing this in the webapplication where i want to use the webservice authentication part, i keep getting the problem that the used Forms Authentication in the webapplication keeps redirecting me to the login page.

C# REST webservice authentication problem

巧了我就是萌 提交于 2020-01-24 14:38:10
问题 In my previous question here i was experiencing difficulties with Authenticating webservices. With the use of the WcfRestContrib library which i found here i was able to solve this issue. I build a small testapplication and the authentication works like a charm. But while i'm implementing this in the webapplication where i want to use the webservice authentication part, i keep getting the problem that the used Forms Authentication in the webapplication keeps redirecting me to the login page.

What would be the consequences if I disable the ProxyCreation globally in Entity Framework?

自闭症网瘾萝莉.ら 提交于 2020-01-24 14:14:25
问题 The Entity Framework uses proxy classes for some of its internal stuff, as seen in this question we have to disable it, because it cause issues with the serialization of the objects. My question is what will be the consequences if I disable the ProxyCreation globally in my project (to avoid serialization issues) ...??? 回答1: They are mainly around enabling lazy loading, but can provide some performance improvement for persisting changes, though honestly I'd say this is highly situational to

WCF hosting issues

本小妞迷上赌 提交于 2020-01-24 12:37:25
问题 Hi I wonder if someone can help me, I've been banging my head against the wall trying to solve this but no luck yet :( I have a WCF hosted on IIS6 on a remote server on our internal network, http://systemservices/ServiceManagerServices.svc. I can access the service in my browser, however when trying to send a request using WcfTestClient, i get the following error: > Error: Cannot obtain Metadata from > http://systemservices/ServiceManagerServices.svc If this is a Windows > (R) Communication

WCF Service contract to be both XML and Json serialized

只谈情不闲聊 提交于 2020-01-24 10:38:14
问题 How can I create the service contract to be in XmlSerializerFormat as well as WebMessageFormat.Json within a WCF RESTful service. What I need is to call the "CallADSWebMethod" operation contract from code behind of ASP.Net 1.1 which needs to be XML serialized and from jQuery ajax which is Json serialized. SERVICE CONTRACT [ServiceContract, XmlSerializerFormat] public interface IService { [OperationContract, XmlSerializerFormat] [WebInvoke(UriTemplate = "/CallADSWebMethod", Method = "POST",

Generate WSDL web-service objects in SAP

拜拜、爱过 提交于 2020-01-24 09:56:47
问题 is it possible with SAP to generate client stubs and transfer objects from a WSDL served by a .NET WCF web service? Or do I have to build my SOAP XML requests manually? To be more on the point. I still have a WCF web service and the wsdl. I have no knowlege in SAP. So the question is. Is it possible and how can I create client service stubs and the transfer objects in SAP from my WSDL? 回答1: It's easy to create an ABAP client for an existing web service if you have access to the URL for

Why do I get this WCF error when 'GET'ing?

别说谁变了你拦得住时间么 提交于 2020-01-24 07:46:26
问题 I have written the method contract: [OperationContract] [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, UriTemplate = "TestEchoWithTemplate/{message}", BodyStyle = WebMessageBodyStyle.Bare)] string TestEchoWithTemplate(string s); and the implementing method: public string TestEchoWithTemplate(string s) { return "You said " + s; } When I browse to the Url: http://localhost:52587/VLSContentService.svc/rest/TestEchoWithTemplate/HelloWorld I get the following error: Operation

Why do I get this WCF error when 'GET'ing?

喜你入骨 提交于 2020-01-24 07:46:04
问题 I have written the method contract: [OperationContract] [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, UriTemplate = "TestEchoWithTemplate/{message}", BodyStyle = WebMessageBodyStyle.Bare)] string TestEchoWithTemplate(string s); and the implementing method: public string TestEchoWithTemplate(string s) { return "You said " + s; } When I browse to the Url: http://localhost:52587/VLSContentService.svc/rest/TestEchoWithTemplate/HelloWorld I get the following error: Operation

WCF Reliable Sessions Fault when Server under heavy CPU load or Thread Pool Busy

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-24 06:24:06
问题 WCF Reliable Sessions Fault when Server under heavy CPU load or Thread Pool Busy There appears to be a design flaw in WCF Reliable Sessions that prevents the issue or acceptance of infrastructure keep-alive messages when the server is under high CPU load (80-100% range) or when there isn't an immediate IO threadpool thread available to handle the message. The symptoms manifest as apparently random channel aborts due to reliable session inactivity timeouts. However it appears the abort logic

Unable to create type 'Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net'

浪子不回头ぞ 提交于 2020-01-24 05:47:05
问题 I have WCF project with other class libraries in a solution. I added Common.Logging using nuget package manager for projects which require logging. I am getting this error : Unable to create type 'Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net' when I excute : Common.Logging.ILog logger = Common.Logging.LogManager.GetLogger<Service1>(); logger.Error("Test"); My Web.Config is here EDIT : Bin Folder have Common.Logging.Log4net1213.dll as well as log4net.dll 回答1: