wcf

C# client of Axis2 web service complains "but expected 'text/xml'"

My C# sample client ASP.NET program successfully runs a call in my Axis2 server but the client does not seem to like the response. I get: Client found response content type of 'multipart/related; boundary=MIMEBoundaryurn_uuid_38D413ACFC9D56F28E1258666845186; type="application/xop+xml"; start="<0.urn:uuid:38D413ACFC9D56F28E1258666845187...

WCF Transaction Flow Question

I would like to configure WCF service operations to accept a transaction if my client sends one, but not to create one if none is sent. I think this would be similar to the Supported transaction attribute in COM+. Does anyone know whether this can be accomplished with WCF transactions? I am trying to accomplish this all by using the...

In WCF how do I return a class that contains a System.Drawing.Image property?

I have a WCF service which exposes a method that returns an array of objects which contain an Image property (see code below). In the same solution, I have a class library project which has a service reference to my WCF project. In the class library, when I attempt to "Update Service Reference" my proxy class becomes unavailable. When...

Streaming a big file directly to the database

I'm using a WCF application to save a file received via streaming to the database. I interact with my database using LINQ to SQL. I need a way to insert any data I receive automatically to the database. ...

Using Structs with WCF Services

Is there any official recommendation on using structs as return types with WCF services? I'm currently interacting with a service I did not write and find myself inspired to ask to see if my annoyance is warranted. I've in past always used classes - probably in part because that's what samples always show but as I think about it now,...

ASP.NET, SilverLight, WCF & Forms Authentication - How to configure endpoints?

I have this existing environment: 1) ASP.NET 3.5 web application 2) forms authentication with the SqlMembershipProvider I need to add the following: 1) a Silverlight charting object embedded in a web page. 2) a WCF service to be consumed by: a) the Silverlight component embedded in an authenticated web page...

SOA with WCF responsibilities and dependencies

I am moving onto a new team that has implemented a solution using SOA with WCF. The services are all very vertical, for example: a CustomerService, an AddressService, an AccountService, etc. To return the fully populated objects the services may call another service over a wcf endpoint. There are a few very high level vertical areas...

WCF service returns HTTP 400, but only when Content-Type is set to "text/xml" or "text/json"

I'm truly stumped. I've tried every tool imaginable, checked every resource I can, and still can't make sense of this. I have a WCF service designed to handle plain old XML requests in a proprietary XML format (this is an old ASMX conversion). I've setup the service using the WCF 3.5 to accept plain HTTP POST requests, and it works beau...

ObservableCollection turns into an Array after transported using WCF

I got a class called "Board" and one of its property's is an ObservableCollection. When i send the ObservableCollection through WCF (from server to client) end call it from my proxy, it's turned into an Array, which is no good for me. Can i keep the ObservableCollection after being sent, or do i have to kick the Array till it becomes an...

What are those "garbage" 16 bytes at the beginning of an unencrypted EncryptedData tag from an encrypted ws-security SOAP message? (WCF)

I'm inspecting a WCF request message in order to implement part of the WS-Security standard to have iPhone <-> WCF intercommunication (I'm using certificate security over basicHttpBinding). After reading the standard xmlenc-core I could decrypt both the SignedInfo and the Body tags, but I see 16 bytes at the beginning of both unencrypted...

WCF authentication "friendly" to non-Microsoft clients?

An exploratory question, here. After some reading, I'm getting a sinking feeling that WCF's authentication options aren't "friendly" to non-Microsoft clients, or require a great deal of effort to implement. I'm building a REST WCF service for which I wanted some kind of simple digest authentication; e.g. I store a username and password...

disable remote site project debugging vs 2008

i have a remote web site project in my sln that contains a wcf service and the server does not allow me to debug him... when i run my client i get an error on the start that the server cannot be debugged.. how can i tell the vs to stop trying to debug the remote server? ...

SslRequireCert doesn't work with a WCF-service

I'm currently developing a RESTful service using WCF and WCF Rest Contrib. The service is split into two parts: BasicAuthService and CertAuthService. On the first one the client is authenticated using Basic authentication (over HTTPS) and on the second X509 client certificates are used. My problem is that IIS never requests a client ce...

.NET - WCF - Building Documentation

Hi I've built a WCF Service using the Web Service Software Factory (www.codeplex.com/servicefactory). I'm trying to make a CHM help file for users of the web service. When I build a help file (using Sandcastle) the help file doesn't match the interface displayed to users. Let's take the case of a method in the service called CustomerG...

Help with WCF servcie in AJAX web applicaiton sending JSON...

I am trying to setup an ASPX page to call a WCF servcie thorugh a ScriptManager. For some reason when I call the "SpinStitch.Services.Chat.IChatter.CreateChatSession" method of the servcie I get this error "The server method 'CreateChatSession' failed.' I had a breakpoint set on the CreateChatSession method in the server, but it never g...

netsh error on windows 2008 R2

We are upgrading the server from Windows 2003 to 2008. As part of the process, I need to configure a port with a SSL certificate. When I ran the following command: netsh http add sslcert ipport=1.2.3.4:8000 certhash=certificatehash appid={someGUID} I got the following error: SSL Certificate add failed, Error: 1312 A specified logon s...

WCF RESTful Services and HTTPModules, POST not working

Hi Community, I have been trying to get a WCF RESTful service working with the microsoft wcf rest starters kit, and ive successfully been able to get it up and running with GET, POST and PUT methods. However once ive done this ive tried to make the uri resource more "hackable" by removing the reference of "Service.svc" by using a HTTPMo...

WCF Calling a service from a callback method in Client

Hello, I have a scenario where, upon receiving a command on one of the callback methods in client, the client needs to call another service. For example: In OnNewCommand() callback method client receives a message X. Now the client must call Service1() defined in the server. Note, Client has registered to the callback of Service1(). I c...

.NET Service burden of using Entity Translator

We have incremental burden of maintaining EntityTranslator to transform the business messages to the service message and service message to business message in .NET and WCF application. In fact, I cannot call them as Business object since we just need to fetch from DB and update the same. We read data from device and store to DB and read...

How to get reliable call-backs with WCF using NetTcpBinding

I am planning to use the NetTcpBinding for an application that needs to keep a hand-full of clients in sync. Whenever there is a change of state at the server, all the connected clients must be informed. However I need the clients to automatically reconnect if there is a network problem, any outstanding callbacks from the server for t...