wcf

WCF Client Design Pattern - Builder or Builder & Abstract Factory?

Below is the description of the flow: Overall Flow: Web page(aspx Client) -> Communicator DLL(Instantiate Proxy)->WCF Service Web Page Client Role: -> Instantiate class of Communicator DLL to pass the inputs to the operation -> Gets the output from the client and do further processing -> Does not have any clue of service operations or ...

Calling a custom WCF application from a SharePoint 2010 Web Part

All, I created a WCF application that interacts with data in a database. I also created a new visual web part that consumes it. I also created an ASP.NET application that calls the web part the exact way. The web part does not work, it gets the following message, however the ASP.NET application does work. Could not find default e...

WCF client to WSE 3.0 service

I try to create WCF client to WSE 3.0 service. I have already working WSE3.0 client to the same service. Here is it's configurations: <microsoft.web.services3> <security> <timeToleranceInSeconds value="10000"/> <x509 allowTestRoot="true" verifyTrust="true" storeLocation="CurrentUser"/> <binarySecurityTokenManager> <add v...

What is Instance Deactivation in WCF?

I have recently come across the term Instance Deactivation. a) What is that? b) What for we need that? c) In what context will it be useful? I am looking for a simple answer that can be easily undestandable and if posible with some pseudo code. Thanks ...

Web Service Architecture - multi tenancy design pattern (maybe)

Hi All I having a slight design problem : I have to create a Web Service (asmx or wcf) that retrieves customer data from multiple database servers, each one is exactly the same except they will contain data for different States (1 DB server per state, big states can have multiples etc). This will be used by a call center, for example, ...

How to enable WCF message logging from code instead of the application configuration file.

I am communicating between two processes using WCF. By default this produces very obscure and simple error messages when something goes wrong which are not very helpful. On http://msdn.microsoft.com/en-us/library/aa702726.aspx I found out how I can enable more detailed logging. Unfortunately this seems rather static. I would like to do ...

WCF method showing invalid parameters

Hi, I have a WCF service, in it i have a method that takes a MessageContracts as input parameter and returns a MessageContract as out parameter. Please find the method defination below [OperationContract(IsOneWay = false)] FileDownloadReturnMessage DownloadFile(FileDownloadMessage request); But when i create the proxy on the client a...

stream.read method accepts length as integer type ??? where as

Hi, i am trying to read file from a stream. and i am using stream.read method to read the bytes. So the code goes like below FileByteStream.Read(buffer, 0, outputMessage.FileByteStream.Length) Now the above gives me error because the last parameter "outputMessage.FileByteStream.Length" returns a long type value but the method expec...

WCF SSL configuration error perhaps

hey there Trying to get HelloWorld working via SSL. Read all those docs: http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509findtype.aspx http://msdn.microsoft.com/en-us/library/ff648431.aspx http://msdn.microsoft.com/en-us/library/ms733791.aspx http://msdn.microsoft.com/en-us/library/ms733813.aspx...

VS2010: debug WCF service invoked asynchronously

I have a WPF client in the same solution as my WCF service: WPF client invokes service asynchronously but breakspoints set in the WCF service implementation are not hit. WCF service is in a project of type "WCF service library". It has "Start WCF service host when debugging another project in this solution" checked. I notice that indeed...

WCF exception while getting stream length

Hi, I have a WCF web service that returns a stream. At the client side when i try to read it using below code then i get an exception at line " Byte[] buffer = new Byte[outputMessage.FileByteStream.Length];" saying System.Notsupported. Please advise me on what am i doing wrong here. FileMetaData metaData = new FileMetaData(); ...

static methods/fields and WCF

Hi all, can use static methods/ classes safely in WCF due to the fact that WCF creates a new thread for each user, so if i'll have a static variable public static int = 5 and if two clients will try to change it simultaneously, will one of them will be able to change it for the other? thanks... ...

WCF NetTcpBinding Certificate error

I have a WebService that I am trying to use NetTCPBinding on. here is my code for setting up the binding private static void Run() { try { //set up the address configuration procedure: create a URI to serve as the base address Uri baseAddress = new Uri("net.tcp://10.0.0.14:3790/Service/QB...

Trying to get basic Http URL with querystring parameters processed in WCF service

I'm trying to process a post by a third party server (Paypal) processed by my server through a WCF (.Net 3.5 SP1) service. All I need is to get and process the values with the query string. This sounds incredibly easy, but after a weekend, I'm still stumped. Any help would be greatly appreciated. Passing the following URL from my brows...

Global variables in WCF REST services

Hi, My applciation works as follows [user]----username/password/domain----->[WCF service] then i access the domain server to see to which actual DB the user is associated, after getting that, i validate the user in his actual DB(DB is per domain) the problem is that i need a place to store the domain name for the following requests...

WCF uploading large files

Hi, I am building a digital signage application and i need to allow my users to upload large images/videos. I have looked at the streaming mode to allow upload and download of the file, which seems to be the way to go. My problem is though that i need to figure out the proper approach to uploading. I need to put an entry into my database...

WCF Message.CreateMessage, SOAP Faults and the "action" parameter...

Greetings! Here's the deal: public static Message CreateMessage( MessageVersion version, MessageFault fault, string action) action: A description of how the message should be processed. What do you guys put in there? "Handle with care!!!" or "FRAGILE"? Does it make any difference in the end? Thanks ...

Error calling WCF service that is returning list.".Debugging resource strings are unavailable ......etc etc"

Ok.this is just making me frustrated... Here is step by step of what I am trying to do (& not able to) I am calling WCF service hosted in a SharePoint 2010 site from a silverlight app in same domain (So no cross doman I guess). I use Linq to Sharepoint for querying the DB. I am having a list "machines" in Sharepoint 2010 that is havin...

Why would an SSL/Basic Authentication WCF service start throwing a 404?

I have a WCF service that has been working flawlessly for 3 months. It is consumed by local clients on the same server hosting the WCF service and local network clients. It uses SSL and basic authentication for security. A few nights ago, the local client (local network clients not affected) started receiving 404 errors whenever it tr...

OData $format system query option causes Bad Request 400

I have a very simple Reflection-based OData sample the runs fine and generates json when I use the Accept header as indicated. However, I cannot get it to work with the $format=json parameter. Whenever I add that parameter, I get Bad Request. According to this, it seems like it should work: link text Note that other system query opti...