wcf-client

.NET Web Service (asmx) Timeout Problem

倖福魔咒の 提交于 2019-12-05 09:04:33
I'm connecting to a vendor-supplied web ASMX service and sending a set of data over the wire. My first attempt hit the 1 minute timeout that Visual Studio throws in by default in the app.config file when you add a service reference to a project. I increased it to 10 minutes, another timeout. 1 hour, another timeout: Error: System.TimeoutException: The request channel timed out while waiting for a reply after 00:59:59.6874880. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of

Is it possible to call Dynamics CRM 2011 late-bound WCF Organization service without the SDK - straight customized binding?

為{幸葍}努か 提交于 2019-12-05 08:21:03
问题 I'm trying to implement a pure WCF scenario where I want to call Dynamics CRM WCF service without relying on the SDK helper classes. Basically, I would like to implement federated authentication against Dynamics CRM 2011 using only native WCF support from the .net framework. The reason I'm doing this is that I would like to port this scenario later-on to BizTalk. I've successfully generated proxy classes with SvcUtil, but the part of the policies and security assertions are not compatible

WCF Client how can I deserialize an incompatible date format from the JSON response?

喜夏-厌秋 提交于 2019-12-05 05:29:43
I have scoured the Net for info on this, but most of the results are about creating WCF services or situations where the service is under your control. I am building a WCF client proxy for a RESTful JSON service which is out of my control. I am using the basic ServiceContract/DataContract pattern, and trying to let the framework do as much of the work as possible. Mostly this is working fine, but all the datetime fields coming from this external service are in a particular format, e.g. {"SomeObject": {"details":"blue and round", "lastmodified":"2013/01/02 23:14:55 +0000"} } So I get an error:

What is the proper life-cycle of a WCF service client proxy in Silverlight 3?

烂漫一生 提交于 2019-12-04 22:22:17
问题 I'm finding mixed answers to my question out in the web. To elaborate on the question: Should I instantiate a service client proxy once per asynchronous invocation, or once per Silverlight app? Should I close the service client proxy explicitly (as I do in my ASP.NET MVC application calling WCF services synchronously)? I've found plenty of bloggers and forum posters out contradicting each other. Can anyone point to any definitive sources or evidence to answer this once and for all? 回答1: I've

Why is my WCF Service not loading my Binding config?

北城以北 提交于 2019-12-04 20:51:54
问题 I have the problem with the following error: " The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. " So I did some research and found that I needed to increase the buffer and message size, here's my WCF Service config file: <system.serviceModel> <bindings> <wsHttpBinding> <binding name="default" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"/> <

ChannelFactory bug with dynamic arguments

你。 提交于 2019-12-04 19:50:58
问题 This question is related to Bug in the dynamic language runtime in combination with IIS 7.5 ChannelFactory hangs if I provide it with a correctly typed dynamic object. dynamic src = "MSFT"; var binding = new BasicHttpBinding(); var endpoint = new EndpointAddress("http://www.restfulwebservices.net/wcf/StockQuoteService.svc"); var channel = new ChannelFactory<IStockQuoteService>(binding, endpoint).CreateChannel(); // this will print just fine Console.WriteLine(channel.GetStockQuote(src as

How can I get WCF FaultException when server returns an HTTP 401?

依然范特西╮ 提交于 2019-12-04 15:21:57
I have a WCF based test harness client for a set of web services. The test client allows me to see raw requests and responses going to and from the services. A Message Inspector endpoint behavior is used to "pick off" the raw requests and response messages and save them for later display in the UI. This works great, except for the use case where invalid credentials are passed. The server returns an HTTP 401 along with a SOAP fault containing details of what happened. This hurts me in a couple ways: On the client this shows up as a MessageSecurityException not a FaultException , so I can't get

How to handle incorrect SOAP fault in WCF?

℡╲_俬逩灬. 提交于 2019-12-04 14:10:40
问题 I have to consume to a third-party web service using SOAP. It was easy to get it to work with WCF, but now I have a problem with SOAP faults. The service sends me an incorrect SOAP fault: <?xml version="1.0" encoding="utf-8" ?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <SOAP-ENV:faultcode>14</SOAP-ENV:faultcode> <SOAP-ENV:faultstring>Unknown Function</SOAP

Windows Service Hosted TCP WCF Service

﹥>﹥吖頭↗ 提交于 2019-12-04 11:36:59
I am trying to host a WCF service on a windows 2008 R2 server as a windows service. I followed the directions provided by msdn ( found here ). Everything works fine as long as everything is part of the same solution in visual studio. However, I tried creating a client in a different solution (on the same machine) and it can't find the service. I get an 'Add Service Reference Error' shown below. My goal is to be able to access the wcf service remotely, but I can't seem to even access it locally unless the client was created within the same client. Is there any guides, tutorials, or helpful

WCF - There was no endpoint listening at net.tcp://…/Querier.svc that could accept the message

筅森魡賤 提交于 2019-12-04 06:21:45
WCF - There was no endpoint listening at net.tcp://myserver:9000/SearchQueryService/Querier.svc that could accept the message. I have the net.tcp protocol enabled on the IIS application Windows firewall is off The net.tcp binding is set to port 9000 for the entire IIS application. My web.config is very standard: <system.serviceModel> <diagnostics> <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="false" logMessagesAtTransportLevel="true" /> </diagnostics> <services> <service behaviorConfiguration="SearchQueryServiceBehavior" name="Search.Querier.WCF.Querier"> <endpoint