wcf

Deploying wcf with silverlight application?

I am trying to deploy a Silverlight application on a remote server. I've copied over the files within App.Web which includes the .svc file. I created a virtual directory within IIS 6.0 and am able to successfully host the silverlight portion. BUT... now I am getting an error: The type 'ServiceGateway', provided as the Service attrib...

returning Abstract Types through REST

I am trying to build a rest service that will return some data that is a collection of an abstract class which contains various implementation classes. How do i set up my REST return type to be able to specify the various types that will be returned. for instance. <RootType> <dataAttribute></dataAttribute> <Array> <ItemofClassA></I...

Why does a Web Service DataMember's Specified Attribute need to be set for int and Data but not for String

I have created a web service via WCF. Then I exposed it as a web service to make it usable with a .NET 2.0 application. I created some DataContract with DataMember that could be used for by the exposed OperationContract. I notice that when I try to create DataClass to be passed in the web service that each DataContract attribute now has...

Is basicHttpBinding really required when exposing a WCF service as a Web Service for .NET 2.0 Target Client?

I have a WCF service and am hosting it in a Windows Service. I tried to add a reference for the service from a Windows Form client built on .NET 2.0. I could get the Web Reference by pointing to the httpGetUrl="http://localhost:8002/HBAccess/help/mex" but when I check the Reference.cs---It only contains a namespace with nothing in it. ...

asp.net MVC calling wcf service

I have asp.net application which i am planning to convert into asp.net mvc app. One area that i havn't found how it could be done is, App is using scriptmanager to make ajax calls to wcf service. And scriptmanager simply takes care or all element related to ajax, serializing - etc. I haven't found what i can use in mvc that replaces th...

How can I force WCF to put a type into the Client Proxy if it is not Used in the Service Contract?

I have declared an enum in my server code, and would like my client code to be able to use it. Unfortunately, it's not being auto-generated for some reson. My enum is declared similar to the following example: [DataContract] public enum MyEnum { [EnumMember] First = 1, [EnumMember] Second = 2 } It's not declared inside...

WCF: Debugging service through Terminal Services.

Hello, I'm part of a distributed development team. We all work through terminal services, accessing a remote server where our applications are located. We're working on a project in which a client application consumes a WCF service, which exposes all the business logic functionality. In our development process, a developer is often ask...

ASP.net Membership and profiles in WCF

I'm working on a WCF service that requires Membership and Profile access. I got the Membership stuff working by using System.Web.Security.Membership class and calling CreateUser() and ValidateUser() but i can't get the Profile to work. I don't even know what class to call, all the samples that i have seen are for ASP.net like the one i ...

jQuery, WCF and ASP.NET

Hi, Apologies if this is a dumb question. In previous ASP.NET projects, I've been using jQuery to communicate with an ASMX web service without a problem - including having the ability to enable interaction with the user's session state. I'm now dabbling in the world of Visual Studio 2010 and .NET 4.0 and I'm trying to do the same sort...

Json data has {d:"data"}

I am writing jquery ajax code to call wcf service. In this case WCf returns html as string. Some how when data is back in jquery it is in {d:"data"} format, What is this d element? below is code $.get('<%= ResolveClientUrl("~/AjaxServices/ListingBrowse.svc/GetNewsHTML") %> ', null, function(data) { a...

ajax enabled wcf service can use get only, can't use post

I am having ajax enabled wcf service which i can only call with get not post, although i can work with get but is there any reason for that? Is it required to have webmethod enabled or something? here is how my wcf service looks [OperationContract] [WebGet] public System.Collections.Generic.IEnumerable<ListingDisplay> Find(...

Securing a WCF service so that it can only be called by a Silverlight application

I am writing a Silverlight application that will be both reading and writing data to a serverside database via some WCF web services. What is the best way to secure these web services? My goal is to make sure the services can't be called by other applications and potentially spammed with requests to add items to the database. Only the ...

Generic IPropertyChangedNotifier using Dynamic Proxy and wcf serialization problem

I have implemented a generic IPropertyChangedNotifier using castle dynamic proxy. Here I intercept setter call in Proxy objects so that i don't have to raise PropertyChanged event in setters of my domain objects. The purpose was to use these proxy objects to bind it UI in a silevrlight application. The Problem is serialization of prox...

How to host WCF through TCP Ports?

How to host wcf services,through TCP Ports,and how to listen to it?,and consume services through these TCP ports? i.e apart from net.tcp binding,is there someway to host and consume using TCP Ports.? ...

how to serialize Linq-to-SQL DataLoadWith.LoadWith when using it thru WCF?

In one of our project we're using Linq-to-SQL to get data from our database. There are a lot of tables that have references to others. We're using the LoadWith method to get a hold of that data. The data is than serialized and send to a client application using WCF. On the cliend the references are gone. When stepping thru the code and w...

Transfer Images between iPhone and Web Service

Thanks in advance everyone! Background: I have a WCF web service running that is communicating with an iPhone app over SOAP. The WCF web service method is expecting a byte[]. Problem: Now I need to transfer images to and from the the iPhone app to the web service. I have been manually creating the SOAP request and sending it to t...

Method level security in WCF

HiI want to create a WCF service that have login method, which is authenticating and giving user roles, and depending to that roles, allow or disallow user to call other service methods. Which is the best way to do that? Is there WCF standart mechanism to achieve this?Thanks a lot! ...

Consuming JSON-RPC web services in .NET

A business partner has suggested building a web services library with JSON-RPC rather that SOAP. (note they are not building in .NET necessarily, but I am) I am a potential consumer of this data. I've used JSON for client-based Ajax calls in the past, but this web services library will be used primarily for server-side calls and syncin...

How do I get access to the WCF service instance in the current context?

If I am executing within the context of a particular service instance and operation, how do I get access to the currently-executing service instance? Service instances don't inherit from any specific common base class or interface and the only pathway into the existing context that I can find is: OperationContext.Current but I can't s...

Adding web reference on client when using Net.TCP

Hi everyone... I am trying to using Net.TCP in my WCF Service, which is self hosted, when i try to add this service reference through web reference to my client, i am not able access the classes and methods of that service, can any have any idea to achieve this... How I can add web references in this case. My Service has one method (Get...