wcf

Error Reporting in WCF Service?

I have a self hosted Net Tcp WCF service and I have the following method Subscribtion GetSubscribtion(int subscribtionId) { Subscribtion s; if (_subscribtionTable.TryGetValue(subscribtionId, out s) == false) { Console.WriteLine("Not Found SessionID");//for debugging ...

IPrincipal from WCF request

Can i get the requester windows IPrincipal when he comsume WCF service? ...

Silverlight WCF web service hosting on domain.com and www.domain.com

There's so much stuff on this online but no one seems to be able to answer this... Hopefully someone here will be! So i have a WCF web service hosted at godaddy.com. Everything works great when i try accessing it using: http://www.domain.com/DataService.svc problem is when i remove the www i.e. http://domain.com/DataService.svc Here...

WCF Duplex Service with multiple endpoints

Hi there I have a service that uses duplex requests for calling back to the client application. I have currently exposed a single endpoint with a NetNamedPipeBinding, this is all working correctly. When i add a basicHttpBinding i get the follow exception Contract Requires Duplex, but Binding 'BasicHttpBinding' dosn't support it Is i...

Consuming a WSDL file using .NET - Total Newbie Question!

I'm taking my first baby steps into consuming web services. Here's my situation: I'm writing in .NET 3.5 for an existing corporate intranet website. I need to add a call to a web service, passing account data and getting a response. I am able to add a web reference to the .wsdl file and have Visual Studio generate the Service Referen...

Why are there extra arguments in my wcf web service reference?

I'm trying to convert an ASP.Net web service to WCF application. The client is on the .Net Compact Framework which does not support WCF so I need to make sure the WCF keeps supporting ASP style webservices. When I add the web service reference in Visual Studio the generated proxy class' methods have extra arguments. For example if a me...

WCF Transactions over the Internet

I know this is a complex WCF configuration issue, but here is a high level question: Does WCF support Transactions over the Internet without SSL? All of our service methods are decorated with the TransactionFlow attribute, e.g.: [TransactionFlow(TransactionFlowOption.Mandatory)] This forces the caller to supply a transaction context...

How do I set up visual studio to work with .net 3.5 CF?

I'm trying to build a Windows Mobile 5 WCF client. This project currently uses web services but I'd like to convert it to WCF. I installed the .NET CF 3.5 redistributable on the device, but how do I get the "Add Service Reference" menu option to show up on my existing project in VS 2008? ...

Does System.ServiceModel.ProtocolException always have html code in its message?

Thats my question, I'm catching a few WCF exceptions on my client and the ProtocolException always has html code in its message. Could I assume that will happen every time? For what I see the real good message comes in the inner exception, could I just discard the ProtocolException message and show the user the message from the inner exc...

Only Allow applications digitally signed to access wcf service.

I have been searching n the web on how and if it is possible to verify that the calling application is digitally signed with the correct certificate. This is for internal use for my corporation. we want to digitally sign our applications and only let our digitally signed applications to access our wcf services. is this a configuration o...

Why WCF does not destroy the object when I close the client application without calling "Close" method on the client side?

I have a net tcp WCF service as follows [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)] public class AVService : IAVService { static int _numberofInst = 0; public AVService() { ++_numberofInst; Console.WriteLine("Number of instances "+_numberofInst); ...

WCF request/response package size

Hello everyone, I am wondering if there are configurable settings for restriction of the maximum request/respose data package size for WCF? I am using VSTS 2008 + WCF 3.5. I am self-host WCF service as a Windows Service. thanks in advance, George ...

sending byte[] ( more than 20 KB) throught wcf to silverlight

i am sending byte[] (image) through wcf to silverlight, and from silverlight to wcf, everything works well as long as the byte[] (image) is less than 20KB, but when it's bigger, it doesn't work when i try to save the image uploaded in silverlight and send it to wcf to save it in the DB i receive: The remote server returned an error: Not...

Check if WCF service exists

What is the best way to check is the WCF service exists in a given ip and port? I want to check is the server exists on client installetion ...

Retrieve data from WCF to store on SQL Server CE (TableAdapter)

Hello! I have a Compact Framework 2.0 app that consume a WCF service. The data that retrieve from the service will be store on a SQL Server 2005 CE. The SQL Server CE database has his own tables. I use a TableAdapter to access SQL Server CE and Insert and Select statement to store and retrieve data. Is there a better way to do it? T...

WCF Data Contract and Reference Entity Data?

Hello, Soliciting feedback/options/comments regarding a "best" pattern to use for reference data in my services. What do I mean by reference data? Let's use Northwind as an example. An Order is related to a Customer in the database. When I implement my Orders Service, in some cases I'll want the reference a "full" Customer from an O...

IPhone consuming restful WCF service

Hello I currently have a simple WCF service running with one get request which returns XML, http://a446062738bb4f0aa2d8fd975aac602f.cloudapp.net/Service1.svc/GetALLPictures/10... Im trying to use [NSString stringWithURL:] to populate the string with the XML content, however this is not working, ive tried using Unicode and UTF8 encoding t...

How do you use .pem files to authenticate a WCF request?

I'm trying to utilize the Amazon Product Advertising API. They provided me with a .wsdl file which I consumed and generated wrapper classes for via Visual Studio 2008's "Add Service Reference" option. This wrapper class works just fine as is and I've been successfully sending requests and receiving responses from Amazon. However, they...

What is the maximum size that maxReceivedMessageSize can be set to for a NetNamedPipeBinding?

I noticed that 2147483647 seems to be a popular choice for maxReceivedMessageSize but is this the limit? ...

Select configuration file on creating WCF proxy instance

Hi Is it possible to create WCF proxy by the given config file, not app.config? Thanks a lot! ...