wcf

Why do my WCF service returning a FaultException, time out after 10 calls?

I have a WCF service that sometimes has to return a Fault. For some reason, the calls to my service begins to time out with the following error: "The request channel timed out while waiting for a reply after 00:00:59.8906201. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The ti...

WCF WSDL Soap Header on all operations

By defining an attribute that implements IContactBehavior and IWsdlExportExtension and set that attribute on your service contract, you can easily add Soap Headers to your wsdl (see http://wcfextras.codeplex.com/ for more information) But now I need to set a Soap Header contract in the wsdl on all Operationcontracts and this time I cann...

Can I use IIS to host WCF services with transport other than HTTP?

I've searched and didn't find any question similar, so I'm asking. Is it possible to use IIS with transport other thna HTTP? If so, how to configure it? ...

calling wcf /web service from php/ruby

For my sins, I am in charge of developing a service for providing data to both our internal systems running .net apps as well as external systems running php. For the sake of future proofing, I want to ensure it is callable from ruby as well. My service will perform authentication and look up account details from a central user reposit...

wcf rest starter kit 2

How do I modify the description of each item in the help page when using the rest collection template? ...

C#: How can Server.Mappath read a file?

I have a Visual Studio 2008 solution that contains a handful of projects. One project contains a WCF Service I'm deploying. That WCF Service references some code in one of the other projects. That code is trying to read a file that's in a folder in the WCF project. Pseudo-project structure: Solution Project1 myclass.cs string ...

Where can I learn more about TransportSecurityWithMessageCredential in Silverlight 3

I read here about the new security options in Silverlight 3 and I was hoping someone could give me a link to more information on the TransportSecurityWithMessageCredential option in Silverlight 3. Thanks ...

WCF-The document was understood, but it could not be processed.

I have a WCF service which i deployed on my test server. Trying to use it on my test project and I added a reference and I get this error The document was understood, but it could not be processed. - The WSDL document contains links that could not be resolved. - There was an error downloading 'http://localhost:8731/somewhere.now...

RESTFull JSON response from asp.net page

Instead of using the web services infrastructure provided by .net, I was wondering what your take on rolling my own asp.net page that you can post data to (I guess all the cool kids are calling this REST,) and retrieving a JSON response from. Is there additional overhead in using an aspx page for this purpose that i'm not aware of? ...

RSS Enclosure is ignored

I'm trying to create a Podcast RSS feed using WCF. The feed seems to be valid, but the enclosure tag is being ignored. Any ideas? Fixed now ... don't use file file:/// urls even if you are feeding yourself the files. <rss version="2.0"> <channel> <title>Joe Blow</title> <link>http://google.com/&lt;/link&gt; <description...

Standards for queries over SOAP

Is there a standards-sanctioned XML format for describing entity queries? Background: I plan to build a library for writing queries over WCF services. On the client I want to be able to write (C#): var customers = from c in service.Customers where c.Name.StartsWith("P") order by c.Name ...

WCF Nested Call-back

The backgound: I am trying to forward the server-side ApplyChangeFailed event that is fired by a Sync Services for ADO 1.0 DBServerSyncProvider to the client. All the code examples for Sync Services conflict resolution do not use WCF, and when the client connects to the server database directly, this problem does not exist. My DBServerSy...

Deploying a WCF Service

Hi, I am using WCF for the first time. I Have successfully created the service and it works fine on my local machine. I want to know the steps involved for deploying the service to the client environment (including changes to the config file, IIS settings) and any other miscellaneous settings. ...

Reading endpoint from config file

How do I obtain the endpointIdentity from the config file? ...

DataContract issue in WCF

Hello everyone, Suppose I have a method and the return type is enum, my question is should I declare the enum as DataContract or not? Samples like, in the sample, OrderStatus is an enum data type, OrderStatus Poll(string queryID); Should I declare OrderStatus enum type as DataContract? thanks in advance, George ...

Creating bindable classes from WSDL for Flex 3

Two of our apps are web applications with a Flex 3 front end and a SOAP-style WCF back end. To communicate with the back end, I generate web service client classes through Flex Builder 3. Everything's functional, but maintaining those generated classes has been quite annoying, and I'm looking for a better way to do things (without havi...

Error when trying to consume WCF service returning file

One of my methods returns byte[], of a file. All other methods return either string objects or custom objects I can view the WSDL via a browser and as i have used WCfExtras, I can even view the documentation. In my test app, C# web application, I add the reference to my svc, hosted on a test server. I get an error as such: The d...

WCF ResponseFormat For WebGet

WCF offers two options for ResponseFormat attribute in WebGet annotation in ServiceContract. [ServiceContract] public interface IService1 { [OperationContract] [WebGet(UriTemplate = "greet/{value}", BodyStyle = WebMessageBodyStyle.Bare)] string GetData(string value); [OperationContract] [WebGet(UriTemplate = "foo", ...

NetCFSvcUtil "Error: An error occurred in the tool."

I am trying to generate a WCF proxy client code for a Windows mobile application that uses basicHttpBinding and I'm continuously receiving the follow error: Error: An error occurred in the tool. Error: Error in the application I was able to generate the proxy before but I don't know why suddenly this happens. I have read the Sameh Sam...

Calling WCF service from a remote javascript

Hi, I have a WCF service (XML+JSON) running on http://servicehost:8080/myService. My ASP.NET application with jQuery is running on http://webapp/Login.aspx I want jQuery to use Ajax and call the URL http://servicehost:8080/myService. The browser does not allow this cross-host call, which is expected. Some of the posts on stackoverflow...