wcf

WCF Custom Binding help

I'm a newb to WCF bindings and would appreciate any help making a custom binding that: Supports Binary Message encoding. Uses Transport Security (clientCredentialType="None"). Thanks for any help. ...

Self host WCF (Windows Communication Foundation) Ajax services

I am having trouble to understand how to expose the WCF services through Javascript. Here are what I found after days of research: Exposing WCF services through Javascript but not self host: http://msdn.microsoft.com/en-us/library/bb472488.aspx In this example, it requires the creation of a .svc file <%@ServiceHost language="c#" Debug=...

Multilevel asynchronous method call pattern in c#

Hi, I have design problem regarding async calls to method. I'd like to know best/good pattern to call async method, which calls another async method, which calls another async method :) In other words, I have WCF service reference created with async methods and I want to call them from another async method which is called by other as...

How to migrate deploy RESTful WCF Web Service from IIS 6.0 to IIS 7.0

Hi all, I have a WCF Restful Web Service. It works find under VS and IIS 6.0. Now I want to move it to another work station with IIS 7.0 on it. I tried to copy all the deploy file from IIS 6 to IIS 7, but it cannot be accessed by other client, except for the request from it's own machine. I don't know what's wrong and I tried to enable t...

How to intercept WCF errors on the client side

On the server side there is IErrorHandler etc. On the client, exceptions are thrown when you call the methods on the channel. Is there a way to intercept the exceptions on the client before they are thrown during invocation of method? ...

WCF service returns error 500 on /js request

I have a wcf service that randomly begins to fail when requesting the autogenerated javascript that wcf supports making. But I have no luck tracking down why. The js thing is part of the wcf featureset, so I dont know how it can suddenly begin to fail and be unable to work until IIS is recycled. The http log gives me: 2010-06-10 09:11:...

Difference Between WCF WCF Ria, and Data Service

What is the defference between the WCF Service , WCF Ria Services and the data servics. ...

WCF Error - Security processor was unable to find a security header in the message

Hi, I'm getting what appears now to be a security error in my WCF Service. Originally my error was about a falted state(removed using around client proxy to clear this error), but have found more information through enabling trace. I have been unable to get my solution running after encountering this error, and even my backup copy now...

How to configure a CustomBinding to use a CustomMessageEncoder in a config file.

Hello, I have a CustomBinding and a CustomMessageEncoder, CustomMessageEncoderFactory and a CustomMessageEncodingBindingElement. I want my CustomBinding to use this CustomMessageEncoder. But how can I configure this in my config file? Thanks, Michiel ...

Calling a WCF service from Java

EDIT: the issue was with the [MessageHeader] attributes in the ResponseMessage class; Metro/JAX-WS doesn't seem capable of handling these attributes. Changing them to [MessageBodyMember] solved the issue. As the title says, I need to get some Java 1.5 code to call a WCF web service. I've downloaded and used Metro to generate Java prox...

baseAddressPrefixFilters

hi all i have been trying to use baseAddressPrefixFilters for some time now and the prod server simply don't work. we use https. i used the baseAddressPrefixFilters and the address hase been set to absolute url. this is the config <baseAddressPrefixFilters> <add prefix="https://X.XXX.com/"/&gt; ...

How to best transfer large payloads of data using wsHttp with WCF with message security

I have a case where I need to transfer large amounts of serialized object graphs (via NetDataContractSerializer) using WCF using wsHttp. I'm using message security and would like to continue to do so. Using this setup I would like to transfer serialized object graph which can sometimes approach around 300MB or so but when I try to do so ...

What is the difference between building a WSDL in Eclipse and using WCF?

I'm somewhat familiar with WCF in that I can build Web Services in VS.Net ... I understand some of the concepts... But, the other day I cam across this option in Eclipse (I also use Java to code) to create a WSDL. Playing around with it it looks great since it has a GUI method of building itself. I guess I just wanna know what the diff...

Invoking a WCF service using claims based authentication

I have a WCF service deployed in a server machine. We are using claims based authentication to authenticate the WCF service caller. The WCF service is restricted by using IIS Authorization rules. How do I programmatically invoke the WCF service using .NET? The client app uses a proxy generated using SVCUtil. calling the service reads ...

Silverlight 3 with WCF Service -

I've got a SL3 app trying to connect to a WFC service. Both the app and the service are on different secure servers on the same domain. The SL3 app lives here: https://www-r.aetc.af.mil/fm/tools/batsnet/authenticated/modules/blah blah When the SL app starts, it immediately connects to the service, but when it makes it's first call int...

Consuming WCF Web Service

Hi, I have a simple web service running and I have a console application client consuming the service. I did have issues getting this running and I had been helped by some wonderful people in this community. I have another problem: if I want to call the service from the client in a loop, it doesn't work. It works only for the first tim...

Create a service that connects to remote database and uses public key encryption

I have been searching all day and reading many tutorials and still I am confused. I am working on a project that has the following requirements as specified by the client (customer - not to be confused with client app): Connect to a remote server and verify that connection was successful. Connect to Web service on said server via SOAP....

WCF custom certificate validation with BasicHttpBinding

I have a WCF application hosted on IIS 6 that needs to Have 2-way SSL authentication Validate client certificate content with some client host information Validate client certificate is issued by the valid subCA. I was able to do 1) successfully. I am trying to achieve 2) and 3) by following this - basically creating a class that in...

Configure a Port with an SSL Certificate w\o using Httpcfg

Hi, When one develops a self-hosted WCF http server, one of the steps needed is to bind an SSL certificate to a port number: httpcfg set ssl -i 0.0.0.0:8012 -h 0000000000003ed9cd0c315bbb6dc1c08da5e6 as stated in: http://msdn.microsoft.com/en-us/library/ms733791.aspx However, It is hardly expected that in my deployment environment one w...

Forcing WCF proxy to generate an alias prefix

To comply with a clients schema, I've been attempting to generate a WCF client proxy capable of serializing down to a structure with a root node that looks like the following: <quote:request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:quote="https://foo.com/service...