service-reference

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

Silverlight - WCF get clientaccesspolicy on localhost

Deadly 提交于 2020-01-25 13:13:46
问题 I have a Silverlight application which uses WCF for its communications with the server. Both Silverlight and WCF are running on the local machine (localhost). When the Silverlight makes a call to the service it fails with aa communication exception. I understand that this is because I don't have a clientaccesspolicy file, but since the WCF endpoint is running on http://localhost:port I defined an interface, IPolicyRetriver, and added an implementation to the service which is returning the

How do I use WCF reference with MVC3 (razor) model?

微笑、不失礼 提交于 2020-01-23 12:06:28
问题 I have a WCF Service and a MVC3 (razor) web site. All my data comes from the WCF Service . I have my controllers and views but, how do I use the model with this structure ? for now, I call my method from the service with a DataController and I called them in the Controllers.. Better solution ? 回答1: Do you want to access a WCF service from your Model? Ouch... Stick to the Controller. Controllers interact with services, models don't. 回答2: 1.You created web reference to your service - and

How do I use WCF reference with MVC3 (razor) model?

依然范特西╮ 提交于 2020-01-23 12:05:47
问题 I have a WCF Service and a MVC3 (razor) web site. All my data comes from the WCF Service . I have my controllers and views but, how do I use the model with this structure ? for now, I call my method from the service with a DataController and I called them in the Controllers.. Better solution ? 回答1: Do you want to access a WCF service from your Model? Ouch... Stick to the Controller. Controllers interact with services, models don't. 回答2: 1.You created web reference to your service - and

Change service reference URL in code

独自空忆成欢 提交于 2020-01-21 10:48:25
问题 I'm working in a Windows Phone 8 project and in order to use some webservices I added a service reference with a specific URL . My problem is the URL because it changes fom time to time so I need to let the user insert the new URL from some menu when the app is running. I know how to change it in Visual Studio but now I need to change it in code when the app is running..so my question is: how do I change the URL in code? I have done some search and the file "app.config" seems to do the job

Xamarin How to add service reference to SSL username authentication WCF service?

心不动则不痛 提交于 2020-01-17 04:42:46
问题 I'm building a Xamarin app that requires a WCF service, the service will be protected using SSL (self signed cert for development purposes) and Username Authentication. The service works and when creating a service reference in a WinForms project it all works fine like so: CategoryServiceClient csc = new CategoryServiceClient(); csc.ClientCredentials.UserName.UserName = "shaun"; csc.ClientCredentials.UserName.Password = "TEST"; System.Net.ServicePointManager

How to configure WCF in a separate dll project

我与影子孤独终老i 提交于 2020-01-14 08:01:20
问题 I'm developing a web application (ASP.NET 3.5) that will consume a number of web services. I have created a separate dll-project for each web service: these projects contains the service reference and client code. However, the calling website MUST have the <system.serviceModel> information (the <bindings> and <client> nodes) in it's web.config, even though this information is also in the dll's app.config file! I have tried copying the serviceclass.dll.config over to the bin directory of the

How to display data from database to ListView in WPF C#

给你一囗甜甜゛ 提交于 2020-01-14 05:54:26
问题 I'm trying to display data from my Entitity Framework database to my ListView in my WPF C# application. I'm using WCF app as my host, where I keep my methods for displaying data, adding data, etc., and I have WPF app as my client, where I use the code to display data from database to my ListView. This is my code ServiceReference1.ImojWCFServiceClient client = new ServiceReference1.ImojWCFServiceClient(); listView1.Items.Clear(); var userList = client.getUsers(); foreach (var user in userList)

Alternative to service reference

别来无恙 提交于 2020-01-13 03:44:09
问题 I am trying to assist one project team to streamline their work by fixing some of the pain points. One of the pain points they have in their code is that, they are using WCF service via service references (proxy) [i.e. "Add Service Reference" in Visua Studio 2008. This creates a lot of problem including deployment overhead, Souce Control get latest related problems of updating proxy etc. In order to handle these and other related issues with service reference, I am looking for a good