wcf

load WCF service by environment in .net core project

只谈情不闲聊 提交于 2020-02-23 08:59:49
问题 I have a problem while adding WCF in .NET core project. When I used .net in the past I can add multiple environment in web.config so I can load the correct web service at runtime (Dev, Rec, Prod). The problem in .net core project when I added a reference of my WCF service as Connected Service it created one file ConnectedService.json that contains a url for the WCF service. { "ProviderId": "Microsoft.VisualStudio.ConnectedService.Wcf", "Version": "15.0.20406.879", "GettingStartedDocument": {

Handle POST request from XML HTTP in WCF

ぐ巨炮叔叔 提交于 2020-02-23 06:51:17
问题 Hi and good day everyone, as per above title, I was trying to handle POST request from XML HTTP in WCF. Actually, I can already handle the request by using HTTP Web Request, but since old library sends the request in this form (as in the code, we are using MSXML2 namespace), we will have to maintain the requirement here. Here are the codes for the front-end (the old library that will send the request) MSXML2.ServerXMLHTTP xmlhttp = new MSXML2.ServerXMLHTTP(); xmlhttp.open("POST", "http:/

Making Backward-Compatible WCF Services

自古美人都是妖i 提交于 2020-02-21 10:18:01
问题 TLDR: How do I create WCF services that are backward compatible -- that is, when I deploy a new version of the service on the server-side, all the clients on the older versions can still use the service. I'm creating a web service that will allow the client applications to fetch a listing of plugins. I will at least have one operation like FindPlugins(string nameOrDescription) which will, on the server, do a search and return a list of objects. Unfortunately, I cannot guarantee that my

Making Backward-Compatible WCF Services

假如想象 提交于 2020-02-21 10:16:09
问题 TLDR: How do I create WCF services that are backward compatible -- that is, when I deploy a new version of the service on the server-side, all the clients on the older versions can still use the service. I'm creating a web service that will allow the client applications to fetch a listing of plugins. I will at least have one operation like FindPlugins(string nameOrDescription) which will, on the server, do a search and return a list of objects. Unfortunately, I cannot guarantee that my

Update service reference not working

喜夏-厌秋 提交于 2020-02-21 09:52:49
问题 I'm using Visual Studio 2008 and have a WCF client working against a WCF service. They are both located in the same Visual Studio solution. After I've made a change in my WCF contract, I want to update the service reference on the client so that changes made to the contract is also made in the proxy. My problem is that the proxy code is not re-generated. When I select to update the service reference, the following happens: A dialog with the title "Updating service reference 'name-of-reference

Update service reference not working

无人久伴 提交于 2020-02-21 09:52:25
问题 I'm using Visual Studio 2008 and have a WCF client working against a WCF service. They are both located in the same Visual Studio solution. After I've made a change in my WCF contract, I want to update the service reference on the client so that changes made to the contract is also made in the proxy. My problem is that the proxy code is not re-generated. When I select to update the service reference, the following happens: A dialog with the title "Updating service reference 'name-of-reference

WCF + NetTcp: high load make the channel stop working (calls/second rate)

和自甴很熟 提交于 2020-02-21 05:02:14
问题 First of all, sorry, i'm not fluent. I'm trying to figure out why my WCF services stop working when we have an environment with high calls/second rate. I'm not sure that just increasing timeout will solve the issue. We have 2 webservices: The first is hosted on IIS 7.5, Windows Server 2008 R2 Enterprise SP1 x64, with AppFabric (and WAS) Second, hosted on Windows Service, Windows 2003 R2 SP1 x86 Both webservices have minimum configuration: No authentication, No trasaction, Without special

WCF + NetTcp: high load make the channel stop working (calls/second rate)

£可爱£侵袭症+ 提交于 2020-02-21 05:00:07
问题 First of all, sorry, i'm not fluent. I'm trying to figure out why my WCF services stop working when we have an environment with high calls/second rate. I'm not sure that just increasing timeout will solve the issue. We have 2 webservices: The first is hosted on IIS 7.5, Windows Server 2008 R2 Enterprise SP1 x64, with AppFabric (and WAS) Second, hosted on Windows Service, Windows 2003 R2 SP1 x86 Both webservices have minimum configuration: No authentication, No trasaction, Without special

WCF + NetTcp: high load make the channel stop working (calls/second rate)

拈花ヽ惹草 提交于 2020-02-21 04:59:05
问题 First of all, sorry, i'm not fluent. I'm trying to figure out why my WCF services stop working when we have an environment with high calls/second rate. I'm not sure that just increasing timeout will solve the issue. We have 2 webservices: The first is hosted on IIS 7.5, Windows Server 2008 R2 Enterprise SP1 x64, with AppFabric (and WAS) Second, hosted on Windows Service, Windows 2003 R2 SP1 x86 Both webservices have minimum configuration: No authentication, No trasaction, Without special

JSON进阶五-JS和WCF的交互

我与影子孤独终老i 提交于 2020-02-19 08:48:55
在园子里看到很多关于AJAX FOR WCF的文章,大多数采用EXT和WCF交互。 但老实说EXT这个东西比较适合应用开发,对于我这种的网站程序员,EXT比较大。 其中涉及到许多知识点,在这里和大家分享下。 至于如何使用AJAX FOR WCF我这里就不说了,园子里有很多类似的文章: 首先,我说一下如何写一个JSON传递形式调用AJAX FOR WCF服务(我这里使用JQuery的ajax为例): $.ajax({ type: 'post', url: '/TdxGridExample/Wcf/Service.svc/Add', //WCF的URL,/Add是指定该WCF的Add方法 contentType: 'text/json', data: ’{"x":1,"y":2}‘, success: function(msg) { alert(msg); } }); 注:contentType:类型必须设置为text/json,而不是'text/xml' 或 'text/html' data,必须是json形式字符串:并且要对应后台WCF参数名: WCF代码: [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json,