wcf

WCF Service - ASP.net hosting - single sign on, how to pass credentials

My scenario is this - I have two ASP.net websites. Both sites run on the same machine and I have implemented single sign on relatively simply using the default asp.net membership provider (Forms based authentication). I have a new WCF service on one site, which will be called from the other site. A user will be logged into the site, b...

return html from wcf service

Hello, I have a web service from which I need to return a string containing html. This html is the markup for a Select control (for use in jqGrid search filters), e.g. <select><option id='1'> value 1 </option></select> My WCF web service contains a method that returns this value as a string... public string GetLeadTypeSelec...

How to Expose Enum attributes - WCF

Hello there, I want to expose enum attributes to WCF client application, but I can only see enum values. Here is the enum: public enum TemplateType { [EnumDescription("Property Particulars")] [EnumValue("PropertyParticulars")] PropertyParticulars = 1, [EnumDescription("Short Format Lists")] [EnumValue("...

What tools exist in Java that are equivalent to svcutil.exe for .NET?

What tools exist in Java that are equivalent to svcutil.exe for .NET? ...

T4 Toolbox Linq to SQL Model: Association null after WCF call

I'm using the T4 toolbox Linq to SQL generator, and after making a WCF call, the association properties on my object are null and throwing a null reference exception in their setters. This is one such property: [DataMember(Order = 4, EmitDefaultValue = false)] [Association(Name = "Family_FamilyConfiguration", Storage = "familyConfigurat...

WCF objects, multiple IList implementation and serialization errors

Problem: WCF contract objects cannot implement 2 types of lists (ie: List and List). Long-winded explanation: I'm building a WCF service on top of an existing core system, and I'm trying to work out the best way to implement some of my business objects. The core system utilizes interfaces for all business objects - Person management ...

Web Services only connecting to Trusted Devices

I am on a project that uses web services to communicate with hand held devices (Symbol MC70s running windows mobile 5). We need to make sure that others on the internet can't connect to the web services and start sending info. I have made a certificate so that the hand held will only connect to my services, but I don't know how to make...

WPF Observablecollection master detail scenario

Hi, any help with this would be great. I have a model public class Master { ... public Detail[] Details {get; set;} } I am populating my view model from a WCF service which returns my collection of Master objects. I have configured the service reference to return observablecollection so I can use it easily in my view model. M...

How can I createa custom HTTP status code from a WCF REST method?

I would like to return a custom HTTP status code from a RESTful WCF web service when a certain condition is met. I do not want to use the standard HTTP status codes. I would like to maybe return a 514 status code which means something to the calling user. Is this even possible WebOperationContext.Current.OutgoingResponse? ...

WCF Object Design - OOP vs SOA

What is the proper way to handle polymorphic business objects in a WCF/SOAP world? It seems to me that SOA and OOP are at odds with each other - to expose a clean WSDL you need concrete objects, typically not even utilizing inheritance. On the other hand, presumably in the underlying system, you'll want to follow proper OO design. Wha...

Do I need to have a separate Visual Studio 2010 project for services, classes, website and Silverlight app?

I am starting a new Silverlight 3 project in Visual Studio 2010. My plan is to have a project for each of these: The Silverlight application The hosting web application The WCF service This last one will also contain a typed dataset (that will serve as my data logic layer) and a few classes to do my business logic. The WCF service meth...

C# Web Service and using a variable

I need to create a project for multiple web services using WCF in c#. The web services will be calling other assemblies to perform the core processing. The assemblies will be accessing data from SQL Server. One of the parameters that will be part of every web service method will include the database to use. My problem is how to pass ...

System.ServiceModel.ServiceActivationException in wcf service

I am trying to call my WCF service through a Flex application. I'm getting the System.ServiceModel.ServiceActivationException. I have Integrated Windows Auth switched to on, anonymous access off, and I've set impersonate to false in my web.config. The project and virtual dir are named the same too. What could be the issue? ...

how to set wcf credentials when Telerik radgrid consumes the wcf service?

Hi, I have a wcf service that requires client credentials so I can set this via code like this : wcf.ClientCredentials.UserName.UserName = "user"; wcf.ClientCredentials.UserName.Password = "password"; I followed this tutorial on how to create a telerik radgrid to consume the wcf service: http://blogs.telerik.com/blogs/posts/09-02-14...

Accessing WCF service hosted on IIS by a client console application .

Hello i m new to C# environment and also new to IIS and WCF. I have created a WCF service and a client application. When client uses that WCF service by using localhost (Application development server)it works fine. then i hosted that WCF service on IIS server on same machine. Nw tel me ..... How to consume WCF service hosted on IIS serv...

Concurrent access to WCF client proxy

Hi, I'm currently playing around a little with WCF, during this I stepped on a question where I'm not sure if I'm on the right track. Let's assume a simple setup that looks like this: client -> service1 -> service2. The communication is tcp-based. So where I'm not sure is, if it makes sense that the service1 caches the client proxy fo...

WCF multiple host headers

I have created a wcf service that i have uploaded to my host (using IIS). Everything works fine. So, if i go to http://www.mydomain.com/path/Service.svc it works fine. If i go to http://mydomain.com/path/Service.svc i get a resource not found error. I have created a clientaccesspolicy.xml under the path folder which contains the followi...

How do I get a WCF service's WSDL to say that it requires basic authentication?

We have a WCF service hosted on IIS behind a SiteMinder proxy (for lack of a better term). In essence, requests enter the SiteMinder at https://public.domain.com/SOA/Service.svc with http basic authentication. SiteMinder verifies the authentication, strips it off and sends a request to http://internal.domain/SOA/Service.svc with no aut...

C# WCF, how to create a generic method to set Binding configuration values.

I have a few WCF services I am calling from a console app. I have methods for setting the binding timeout programatically like this: private static void InitRepClient(ref Reporting.ReportingClient rc) { rc.Endpoint.Binding.CloseTimeout = new TimeSpan(12, 0, 0); rc.Endpoint.Binding.ReceiveTimeout = new ...

How to provide dependency injection via StructureMap for a custom role provider with WCF?

We're going to be using a custom role provider with WCF. The overridden method GetRolesForUser will require the use of an already existing RoleRepository. Now, with a run-of-the-mill class, we'd construct it using StructureMap and the RoleRepository dependency would be injected via the constructor. However, it's WCF that does the co...