wcf

ASP.NET Login via Custom WCF Rest Call

Hey I'm writing an admin panel in ASP.NET for an existing set of web service calls. My goal is to use some of the existing login stuff (locking out pages if your not logged in) etc but using my login mechanism. This works by hitting an http post request with a username and password, if you're good you get a session id back, if not you g...

The message with Action '' cannot be processed

Can anyone tell me what i can do to fix this error when i call a WCF SOAP service from JQuery? Error: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;s:Body&gt;&lt;s:Fault&gt;&lt;faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none"&gt;a:ActionNotSupported&lt;/faultcode&gt;&lt;faultstring x...

WCF Large interface at a single endpoint address

I have a wcf service that exposes quite a large number of service methods on a single endpoint address. Up to now, all service methods are implemented in a single service contract class. This service contract class implements several service contract interfaces. Now I would like to split the implementation of of the service contract meth...

Testing IDisposable and WCF client

Usually I have client code similiar to something like this: // SomeOtherServiceClient would be injected in actual code. ISomeOtherService client = new SomeOtherServiceClient(); ... so that I can mock the service for testing. But now I have a WCF service that has the context mode set to PerSession and implements IDisposable. [Service...

Reuse existing types not working for silverlight

I have two web services that return the same type. It doesn't work... it generated proxies for each and sees them as two different types. What are the typical causes for this? Do I need to be using WCF for this to work? ...

WCF DiscoveryClient returns references to localhost from remote machines

Hi, I have an app with a self-hosted WCF service. My WCF service gets published under the URI "net.tcp://localhost:8004/DocumentService". When I run the service on a remote machine and try to discover the service with the new .NET 4 class DiscoveryClient, the found services all have the URI "net.tcp://localhost:8004/DocumentService" t...

How to write code that calls a WCF service and falls back from Kerberos to NTLM if needed?

I need to call a WCF service programmatically. The service may be hosted with either NTLM or Kerberos authentication and needs to work under either. That is, if connecting to the service via Kerberos fails, then it should fall back to NTLM. Here's the code I'm using for Kerberos auth (if relevant, the service is hosted in SharePoint 201...

How to calculate the optimum chunk size for uploading large files

Is there such a thing as an optimum chunk size for processing large files? I have an upload service (WCF) which is used to accept file uploads ranging from several hundred megabytes. I've experimented with 4KB, 8KB through to 1MB chunk sizes. Bigger chunk sizes is good for performance (faster processing) but it comes at the cost of me...

MethodAccessException on AuthenticationBase<User>.UpdateUser Exception

I'm calling a UpdateUser on AuthenticationBase class in the System.ServiceModel.DomainServices.Server assembly installed by the WCF RIA Services installer. This works on my Win 7 desktop but on my Win 7 laptop, I get the following exception. Any ideas on what I ought to be looking for or how I can determine what is different between the...

How to retrieve on which site the web application is currently running?

Hello, I am currently running a WCF service on an AppFabric server and my application needs to load a the web.config file dynamically to retrieve custom configuration sections. On my development machine I can just load the configuration like this: WebConfigurationManager.OpenMappedWebConfiguration(webMappedFile, virtualPath); But on...

How do I use protobuf-net in Silverlight WCF generated service

I try to use protobuf-net in WCF/Silverlight application to improve large objects array serialization performance. I can serialize/deserialize classes (added Order=, etc) in the service code. But when I try to apply ProtoBehavior, and call the protobuf-enabled service method from Silverlight, I get nulls instead of data (or errors). I ...

Is it possible to have "overloaded" uritemplates?

[OperationContract] [WebGet(UriTemplate = "/searchresults/{searchTerm}/{searchType}", ResponseFormat = WebMessageFormat.Xml, RequestFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Bare)] Message GetSearchResults(string searchTerm, string searchType); [OperationContract] [WebGet(UriTemplate = "/sear...

Working with Cisco WSMA from .NET (part two)

Hi First, take a quick look at my other question (part 1). It tells of how I want to call web services on a Cisco router (The Web Services Management Agent - WSMA) from .NET 4 using WCF. I have applied Ladislav's technique, and gotten very far. However, I'm now at a stage where I'm pretty confident that I'm sending well-formed SOAP req...

Log4Net doesn't write when iis hosting WCF service

Log4Net doesn't write when iis hosting a WCF Service. it works great when i use the self hosting ( Visual Studio Development Server), but when i run it using the IIS it doesn't write anything. i read about this prolem and the conclusion is that it must be a permission problem, but i don't know how to solve it. how can i check that i ...

What do you do with 'You've created a service' wcf help page?

Hello, When you created a wcf service, hosted it in IIS and then opened service page in browser you will see a default wcf help page. This page says 'You've created a service'. What do u do with page? Do u hide it? Or replace it with your own? Thanks ...

wcf slow connection and number of connections in the pool

Hi, I have a wcf client. The client calls a function and then closes. If I use netstat there is only one connection. I made an experiment. In the server function I put Thread.sleep(10000). Then again I started the client. With netstat I found out that there are 5 connections. Why when the response is slow the client opens more conn...

Problems with hosting WCF service in IIS7

I'm having troubles connecting to a wcf service hosted in IIS7. The service uses a tcp binding. The problem is as follows: if I have the folder with the service files in my inetpub\wwwroot and I convert it in IIS to an application everything works fine. However, when I place the folder in a subdirectory somewhere under my wwwroot then I...

WCF generated proxy does not contain *Specified property flags for WSDL string fields with minoccurs="0"

I've noticed that the WCF proxy generator is not generating the "specified" property flags for string fields EG When I have two fields on a complexType specified in the WSDL: <xs:element name="testStringField" type="xs:string" minOccurs="0" /> <xs:element name="testDecimalField" type="xs:decimal" minOccurs="0" /> the proxy generato...

I'm starting a new VB project and I could use some guidance...

Hi - I don't have a specific question here but I'm more looking for some guidance regarding a new software project I'm starting at work. Here is a description of the project: I am refactoring windows software that was written in Visual Basic 6 and uses MS SQL Server for a database. The code is tightly coupled with SQL queries and refe...

Adding [DataMember] [DataContract] attributes in Entity Framework POCO Template

I would like some help adding in a POCO .tt Entity Framework template Attributes to support WCF serialization and if its possible how to add namespace usings to each entity. Thank you. ...