wcf-client

WCF Timeout issue?

为君一笑 提交于 2019-11-30 15:34:53
I have a somewhat long-taking WCF-based process. WCF service runs in Azure if its of any help. The issue I believe has to do with timeouts: 1) Winforms client has the following .config setting in the binding section: <wsHttpBinding> <binding name="XXX" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="10000000" maxReceivedMessageSize="10000000" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">

Loading the WCF configuration from different files on the client side

旧时模样 提交于 2019-11-30 15:30:52
A common problem in WCF that many people face is the impossibility of loading the client configuration from different configuration files. This is a common scenario when the developer wants to deploy some binaries with along with an independent configuration file (Which may be in a resource file also or another configuration file) to avoid modifying the main configuration file. I have found two references: http://weblogs.asp.net/cibrax/archive/2007/10/19/loading-the-wcf-configuration-from-different-files-on-the-client-side.aspx http://social.msdn.microsoft.com/forums/en-US/wcf/thread/f33e620a

How to set that the WCF Test Client will run every time the service is running

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 15:08:40
问题 I have a WCF project and when I run it sometimes it lunch the WCF Test and sometimes it does not. How can I set the WCF Test Client to always be displayed ? 回答1: Have look at this article from the WCF Tools Team Blog Tips for Launching WCF Test Client 回答2: The link in MLF's answer does contain good information, and is definitely worth a read. However, it took me a while to find the specific answer I was looking for, which is about halfway down the page: If you set the focus on the .svc or

How to set that the WCF Test Client will run every time the service is running

谁都会走 提交于 2019-11-30 13:27:43
I have a WCF project and when I run it sometimes it lunch the WCF Test and sometimes it does not. How can I set the WCF Test Client to always be displayed ? Have look at this article from the WCF Tools Team Blog Tips for Launching WCF Test Client The link in MLF's answer does contain good information, and is definitely worth a read. However, it took me a while to find the specific answer I was looking for, which is about halfway down the page: If you set the focus on the .svc or .xamlx file in Solution Explorer, WCF Test Client will start when pressing F5. This still holds true in Visual

WCF Proxy Returning Array instead of List EVEN THOUGH Collection Type == Generic.List

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 12:20:26
I have a VS 2010 solution containing a WCF Library project and another project consuming that web service. After opening in VS 2012, it was upgraded. The proxy now returns List<T> types as arrays, even though CollectionMappings is clearly set to Generic.List. What could be happening? Someone else has a similar problem here but he was downgrading from VS 2012 to VS 2010 instead. Edit: I double checked, and Reference.svcmap contains: <CollectionMappings> <CollectionMapping TypeName="System.Collections.Generic.List`1" Category="List" /> </CollectionMappings> but Reference.cs contains stuff such

WCF strange behaviour

ε祈祈猫儿з 提交于 2019-11-30 09:44:19
问题 I got this when I consume a webservice: Operation 'Login' of contract 'IServices' specifies multiple request body parameters to be serialized without any wrapper elements. At most one body parameter can be serialized without wrapper elements. Either remove the extra body parameters or set the BodyStyle property on the WebGetAttribute/WebInvokeAttribute to Wrapped. I use interface look like : namespace DreamServices { // NOTE: You can use the "Rename" command on the "Refactor" menu to change

How can I set the maxItemsInObjectGraph property programmatically from a Silverlight Application?

感情迁移 提交于 2019-11-30 08:31:38
问题 I have a Silverlight 3.0 application that is using a WCF service to communicate with the database, and when I have large amounts of data being returned from the service methods I get Service Not Found errors. I am fairly confident that the solution to it is to simply update the maxItemsInObjectGraph property, but I am creating the service client progrogrammatically and cannot find where to set this property. Here is what I am doing right now: BasicHttpBinding binding = new BasicHttpBinding

Problem with generating WebService proxy using svcutil

亡梦爱人 提交于 2019-11-30 08:29:43
问题 In our application we are forced to consume several WebServices. In the beginning we used just the "Add Service Reference" menu option, in order to create a WCF proxy. The wizard didn't generate a DataContract, but much rather an XML-Serializable class. So far, so bad, but this wasn't the killer. However, later we noticed, that we were losing data, because the generated proxy was adding the Order property when attributing and this was causing problems. Now we are trying to generate proxy

WCF - channel factory vs client base

最后都变了- 提交于 2019-11-30 04:43:33
I am new to WCF. Initially I created a WCF service and used the generated client proxy to consume the service from client. So whenever I performed some operations on service everything executed sequentially as I am invoking operations synchronously. I changed the concurrency mode to multiple, but still the operations happened synchronously. Then I generated asynchronous methods for my operations and uses the begin/end patterns so which I guess "freed" the channel and let the operations happen in parallel/asynchronously increasing the throughput of my applications. Then I used ChannelFactory to

WCF strange behaviour

谁都会走 提交于 2019-11-29 17:15:24
I got this when I consume a webservice: Operation 'Login' of contract 'IServices' specifies multiple request body parameters to be serialized without any wrapper elements. At most one body parameter can be serialized without wrapper elements. Either remove the extra body parameters or set the BodyStyle property on the WebGetAttribute/WebInvokeAttribute to Wrapped. I use interface look like : namespace DreamServices { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together. [ServiceContract] public interface