wcf

WCF Data Services - How to delete item from that does not exist in the database?

I am using WCF Data Services and let's say a user creates a row in a datagrid (via AddObject) and then decides they do not want it after all so they would like to go ahead and delete it. So in this scenario, the item is in the DataContext but no in the Database yet. How can I do this? Any advice will be greatly appreciated. ...

Can I build WCF servers using Delphi 2010?

We would like to build new application as multi tiers, we can do it as web service, but we prefer to use more advanced features as WCF, which not found in datasnap too. can we do that with Delphi 2010 win32? the clients will be Delphi win32, Asp.Net (C#) and maybe windows mobile phones too. ...

Why does named pipe WCF service reject Windows service clients?

On Windows 7 and .NET 4 I'm getting some very weird effects from the WCF named pipe transport when my WCF client is a Windows service. My WCF service is hosted in a user mode app and exposed over the named pipe binding. My WCF client is a Windows service, running as Network Service (I get the same result if it runs as Local System). I...

How to Call simple WCF service using jquery or simple js

I have a very simple hello world WCF service as given below. When i call it via asp.net project by adding web service reference it works perfectly fine. But when i called it using JQury or standard js ajax call (using XMLHttpRequest) it calls back the success function but returns null data. When i tried to access it via firefox browser ...

.net 4 WCF Routing Service + REST

Is it possible to use the new WCF routing serice in WCF 4 for REST based services? I have something similar to a reverse proxy in mind. Basically I have a number of selfhosted rest based serivces which I want to expose via IIS with the same base url and port. The routing should be done by the last part of the url. I'm absolutly new to th...

Webservice WS-* Shared-Certificate Security interopability with Microsoft WCF and CXF

Is there a documentation out there that will show us a configuration in Microsoft WCF using wsHttp shared certificate with Webservice WS-* security for Java SOAP WS-* interopability? We are a Java Shop and we are the client to this Microsoft WCF "Soap" service. I created a test web service in Java with CXF and implemented and shared-ce...

WCF - Composite IAsyncResult

I have a WCF service that I want to use the async pattern on as it mainly calls a series of web services and then processes the results once all of the web service calls have returned. However, the async pattern in WCF only supports a single IAsyncResult being returned in the BeginXXX method. I was wondering if anyone had any experienc...

Add WCF service as link from website project to webapplication project

Hi, In my solution I have a "website" project and "WebApplication" project. In the website project I have a WCF service under folder called Services. So by default it places MyService.cs file under App_Code folder. Now I am trying to add this same WCF service as link file into my WebApplication project. But as the [.svc & .cs] are in t...

Add custom header into Security element with WCF

Can I add and read a custom header in the Envelope/Header/Security element? I tried using the MessageHeader attribute, but that does not allow me to put the header in the Security element. I created a class that implements IClientMessageInspector thinking that I could access the Security header like so: public object BeforeSendRequest...

Entity framework issue with WCF and IIS

Hello all, I have a WCF service, a MS SQL database, and the Visual Studio 2008 development environment all in one machine. The operating system is Windows Server 2008 with IIS 7 on it. The IIS 7 hosts my WCF service and the service is connecting to a database using Microsoft Entity Framework. Currently, I'm testing the WCF service using...

Changing [Serializable] to [DataContract]

Hi, I have an existing set of classes that use the [Serializable] attribute. I need to expose them in a WCF service and so I need them to have the [DataContract] attribute. It works with just Serializable but then the properties get funny names like ...k__BackingField. These classes are also used elsewhere and I'm wondering whether I r...

Cannot create an instance of a COM component on a server side

Hi, I'm trying to use MS IME on a server to retrieve some Japanese info in a silverlight app. The app accesses to the server by using WCF, but when calling a CoCreateInstance to create a IFELanguage2, it gives me -2147467262. The same code I'm using on the server actually works pretty fine on a WPF app. Here is the code, // ...omit G...

WCF .Net 4.0 Client Error in deserializing body of reply message

Hello, I am trying to get a WCF .Net 4.0 client to work with a NuSOAP/0.7.2 (1.94) Web Service. First thing, the web service is not based on current SOA standards so I had to create a custom encoder to handle the ISO-8859-1 message encoding. When I get the response, WCF throws the following exception "Error in deserializing body of ...

WCF: reducing first call delay. Best practice

I have WCF client that connects to server in Intranet. The very first call takes significant time and user waits patiently until it completes. Second, third calls are at least 30% faster. What is the best practice to keep WCF client ready to call? I'm thinking about background thread that pings server from time to time (or may be the ve...

Can we use windows authentication on streamed mode?

Hi pals, I have a WCf service to handle file upload. I have enabled the transfer mode as streamed to send large file of data. I ma bale to achieve till 300 mb. Now i need to provide the security for my service. I have implemented the ntlm authentication for my service. When i hosted it on IIS and enabled the Integrated windows authent...

Do the webservices are truely stateless.

Its a well know fact that webservices are stateless. Its written in every text that deals with WCF basics. But I need to know, Are they truely stateless. I was reading about the PerCall WCF webservice, which destroy the service instance for every call. I am not able to comprehend the use of Percall service. If webservices are stateless,...

Difference between basicHttp binding in webservices and WCF

What is the difference between WCF and WSE2.0 webservices when it comes to implementation of basic httpbinding. Can anyone point out what may be the subtle differnces when it come sto use the same protocol but using different technology. ...

WCF service which supports several security options

Hi there I was wondering whether it's possible to configure different security options for a single web service without differentiation of the URI. The service should support authentication based on Certificate on the Transport level and based on Username on the Message level. When I define two endpoints where each references its corres...

WCF Application returning 400 Bad Request when hosted on IIS7

I have written a WCF web service using C# and Visual Studio 2008. When I run it using the built in development web server, I am able to view the results of the various methods by browsing to the URL specified in the [WebGet(UriTemplate = "..")] attribute of the service contract. Specifically, I have a method that matches the "/" URL, a...

DevExpress eXpress Persistent Objects (XPO) via WCF

Hello all DevExpress devs! =) I'm trying to tame Express Persistent Objects remotely. Actually, XPO allows two different approaches - accessing the database directly, and through WebService/WCF. For security reasons, we've chosen second option. Now, WCF wraps database access, and clients must authenticate themselves in order to acce...