wcf

WCF remote activation without IIS/WAS

Hi I need to remotely spawn WCF services on a remote machine from a client. I cannot use IIS (no HTTP) or WAS (no Windows Server 2008). Was wondering if there's a way to do it apart from these hosting environments without having to create a service on the remote machine responsible for the spawning of other WCF services. If a Windows ...

2.0 Web Service Proxy to WCF Service

We have a 2.0 Web Service proxy generated for a WCF Service. This service required Basic authentication, but periodically we experience problems that the proxy cannot connect to the Server. The application is installed on a cluster and referencing a cluster that holds the WCF Service. Anyone experience this problem already? ...

Change culture when deserializing WCF service

I'm using C# to read data from a Java-webservice. I've created a Service reference in VS2008 to the server, and can call the one method that is there. However, a few of the fields returned are of type Decimal, and as the automatically generated WCF proxy gets XML back it fails with a CommunicationException saying: "Error in deserializi...

Url registration issue with WCF when Http binding is used

I'm trying to host two WCF services in one application. I want them to share the same BaseAddress but have their own URLs something like: net.tcp://localhost:1234/service1 and net.tcp://localhost:1234/service2 The following config allows me to do that: <system.serviceModel> <services> <service name="VanillaWcf.Shared.MyServ...

Host WCF in WAS or IIS7?

We have a server application that has one module installed on a separate server, and want to use WCF for the two modules to communicate with each other. I've narrowed it down to hosting the WCF either in IIS7/WAS or in WAS without IIS. The main purpose of the primary application is actually to serve as a tcp/ip sockets based server tha...

Double request while making POX REST call using WCF with WebHttpBinding set to Basic Authentication

Having an issue while making POX REST call using WCF with WebHttpBinding set to Basic Authentication (HttpClientCredentialType.Basic) Instead of one call from the client with “Authorization: Basic” specified in HTTP Header, two calls are made. First call without authentication at all to which service responses with 401 Unauthorized erro...

Determine amount of space a serialized object transmitted in a WCF netTCP binding takes?

Is there a way to know how much space a serialized object transmitted in a WCF netTCP binding takes? I am getting a The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeou...

How do I follow a WCF request from start to finish?

I have a WCF service defined, it accepts JSON and maps that JSON to an object at which point I can then begin debugging code. Sometimes, the object fails to create. Most recently my service had a BodyStyle of Wrapped but should have been Bare. In this case I would have liked to watch the request come in and see what happens to it as it ...

What datatype will have the least amount of overhead when transmitted over WCF

I have a WCF webservice that needs to return data in table form, basically just columns and rows of simple text. Right now, I am using a datatable but that is giving me headaches. Would another type such as a 2D array of strings work effectively well, maybe even better? What datatype would be best with the least amount of complications? ...

WCF CustomPeerResolverService not working with no LAN connection

Hi All, I am using a CustomPeerResolverService (running in a windows service which hosts it in a ServiceHost) with a number of peers on a peer to peer network. My server address is, net.tcp://127.0.0.1/Server The idea being that the server and peers would work on a local machine when there was no network connection. I have extended t...

Submit a SOAP Web service request with RAW SOAP XML

I've got a simple WCF Web service that uses basicHttpBinding to make it SOAP 1.1 compliant. When called with a WSDL-derived proxy (by setting a service or Web reference), the service works great. A business partner wants to call the service directly with the SOAP XML. I know how to provide that XML, but I'm not sure how to process the ...

WCF: what timeout property to use?

I have a piece of code like so NetTcpBinding binding = new NetTcpBinding(SecurityMode.Transport); binding.Security.Message.ClientCredentialType = MessageCredentialType.Windows; binding.CloseTimeout = new TimeSpan(0, 0, 1); binding.OpenTimeout = new TimeSpan(0, 0, 1); binding.Se...

WCF - working with WebReferences

What is the difference between adding a WCF Service WebReference and generating a proxy using svcutil.exe in a WCF Client program? One thing I understand is, WebReference should not work in case of TCP, etc. Any other distinction? ...

WCF - WebReferences not working

At the client end, I have generated a Proxy using SvcUtil.exe and it is working fine. Then I have added a WebReference to the client assembly and calling the same method. But it is not working. My program is running in console mode and the method is suppose to return a string. It is not returning the string. I just see a blank console...

WCF - IIS deployment not working

I have deployed the WCF wervice on the IIS by creating a VirtualDirectory. While accessing from firefox it is generating the following message: XML Parsing Error: not well-formed Location: http://localhost/Calculator/Service.svc Line Number 9, Column 2:<%@ Service Class="Calculator.CalculatorService" %> -^ What is wrong? ...

Streamed transfer + netTcpBinding = framing mode not supported?

Can anybody explain what this error means: The .Net Framing mode being used is not supported by blah blah yadda I can't find any info worthwhile. The exception says to check the server logs, however I can't find anything in them relating to this error. I don't know what the hell a "framing mode" is, otherwise I'd try different ...

Programmatic configuration of Exception-sending in WCF

I would like my Silverlight client to be able to display exceptions that have happened at the server during a WCF call. Given my current code to create a WCF Channel (on the client): // create the binding elements BinaryMessageEncodingBindingElement binaryMessageEncoding = new BinaryMessageEncodingBindingElement(); HttpTransportBinding...

Can a WCF service w/ BasicHttpBinding without a MEX Endpoint be exploited by absolute strangers?

From what I understand: If you don't have a MEX endpoint / WSDL, your service is basically non-discoverable. Only people who have knowledge of your data contract should be able to consume your service. Does this assertion hold water, or are there ways for malicious denizens of the internet to figure out how to invoke/consume services th...

WCF - IIS is not getting .net 3.0.

Deployment of a WCF Service in the IIS is giving the following error: Server Error in '/calc' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Messag...

Is it WCF services VS ADO.NET Data Services?

Hi I only have vague idea of what WCF services are, but since most jobs for Asp.Net programmers ( those programming at Object data layer and Data access layer ) will also require you to know WCF services, I will probably need to learn WCF services also. But then there’s also ADO.NET Data Services a) Do the two technologies compete ...