wcf

Unpaired value in UriTemplate works on one computer, but not another

In my web service I have to recieve HTTP request over a URI of the form /a?b: [OperationContract] [WebInvoke(UriTemplate = "http://hostname/.../a?b")] Stream MethodName(Stream stream); without the typical ?b=c. This works fine on my development computer, running Windows Vista and .NET 3.5 SP1 (and adding URLACLs). However when attemp...

How to combine multiple Excel files into single Excel workbook with multiple sheets?

I need to develop a service (either WCF or Java) that can take multiple single-sheet Excel files and combine them into a single Excel workbook with multiple sheets. The Excel files are actually exported from crystal reports as individual files. Following are some of the requirements of the service: 1) Should preserve all the formatting...

article about number of connected users?

Several months (maybe even a year or two) ago, I saw an asp .net article that showed how to tell how many people were connected to a running web application. Of course I only glanced over the article & didn't save it. Does anyone remember seeing the article or know where I can find it or perhaps something like it? I have searched Google ...

WCF SecurityException

I am trying to host a WCF service in IIS 6.0 on server 2003. And when I browse to the server I get the following error. SecurityException: Request for the permission of type 'System.Net.DnsPermission Is this related to the permissions granted to the user account the app pool is running under or some other problem, and how do I fix thi...

Terrible Performance with WCF and certificates (mutual authentication)

Guys / Gals we are having terrible performance with our website that uses WCF as the application later. We are using message level security and certificates (mutual authentication). We are caching the channel factory in the application object: Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) Dim loChannelFact...

WCF & ASP.NET: Duplex Support using AJAX.

I know that WSDualHttpBinding, NetTcpBinding, and NetPeerTcpBinding bindings all support duplex/callback service operations. I can't find anywhere on the internet anyone even asking if duplex is somehow supported for ajax calls. Maybe the reason for my inability to find anything on this is because I am completely misunderstanding some k...

WCF Service Client with svcutil ( no "extra" clientside-datatype def. )

Hi, i got the problem, that a WCF service ( generated with svcutil.exe ) generates it's own datatypes, instead of using the ones i already defined.. for example: The svcutil generated something like this: public partial class EmailTransactionRequestMsg : object, System.Runtime.Serialization.IExtensibleDataObject { private Sys...

How to host WCF services locally instead of http binding..?

How to host WCF services locally instead of http binding.. I mean the services should be hosted within the .NET environment and not by using http or netTCP.. Could you please help me with the configuration for the same? ...

How to send XML file via WCF DataContracts/MessageContracts?

Hi All, I want to send a xml file to my wcf service , how can I send it ? Is there any way with Data Contracts or Message Contracts? Please help. ...

DateTimeOffsetAdapter interfering with WCF serialization of DateTimeOffset objects

I have a WCF service reference (= client proxy) generated by Visual Studio 2008 (.net 3.5 sp1). The generated code contains a data contract with DateTimeOffset properties so naturally VS decorated it with KnowTypeAttribute(System.DateTimeOffset). Whenever I invoke a WCF operation that returns the above mentioned data contract, I get th...

What are DataContracts in WCF ?

Hi All, What are DataContracts in WCF ? I have an XML file , how can I create a DataContract for this? ...

ASP.NET/WCF tracing does not work within Sharepoint

I configured message tracing for my WCF webservice like this: <!--TRACING --> <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="Verbose, ActivityTracing" propagateActivity="true"> <listeners> <add name="xml" /> </listeners> </source> <source name="System.S...

WCF Typed Faults and Internal Server Error code 500?

Here is my response envelope: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt; <s:Body> <s:Fault> <faultcode>s:Client</faultcode> <faultstring xml:lang="en-US">The creator of this fault did not specify a Reason.</faultstring> <detail> <ServiceFault xmlns="http://schemas....

WCF authentication service

Hi, I am relatively new to the WCF world so my applogies for the newbie question. I am currently designing a layer of WCF services. One of them is an authentication service, so I came up with the following authentication mechanism: IUserService.TryAuthenticateUser(string username, string password, out string key) Basicly the user tri...

WCF WebGetAttribute vs WebInvokeAttribute

Is the WebGetAttribute just syntactic sugar for the WebInvokeAttribute with Method = "GET"? Or is there an underlying difference? ...

WCF for REST

Is wcf a viable REST solution? It prevents you from using some special characters like # so requesting tag/c# does not work. is there a work around, is this by design? ...

assembly.GetExportedTypes() doesn't include WCF service

I use a WsdlImporter and ServiceContractGenerator to set up CodeDomProvider to get an assembly which (I thought) should allow me to create an instance of my HelloWorldService. MetadataExchangeClient mexClient = new MetadataExchangeClient(metadataAddress); mexClient.ResolveMetadataReferences = true; MetadataSet metaDocs = mexClient.Get...

How to Retrieve a Single-File WSDL for a WCF Service (Flat WSDL)

Hi, i need single file wsdl, how to build single file wsdl? Thanks. ...

What is DataContractTranslator?

Hi All, Can anyone please explain me what is DataContractTranslstor and what's it's use? ...

WCF - Measuring approximate message sizes programmatically

Given a class: [DataContract] public sealed class ChangedField { [DataMember(Name="I")] public ushort FieldId { get; set; } [DataMember(Name="V")] public object Value { get; set; } } WireShark shows that, when sent via a WCF TCP binding, the encoding of the message is in binary (printable characters only, but you get the idea)...