wcf

Changing the installation of webservice

Hi, I have a Biz talk web-service. This webservice is always installed under C:\Inetpub\WWWRoot. But in production enviornment i want this to be installed in E:\Inetpub\WWWRoot (May be even different one). How can i specify this in my service or some other way, so that it is always installed in required drive. Thanks, Jain ...

Simple client identification in WCF

I'm using a self-hosted WCF service with duplex tcp binding without any kind of security. I'd like to transport a username and password from the client so the server code can check for validity. How do I do that? The main goal is to keep it simple. My idea was to set the binding.ClientCredentials property when establishing the connectio...

WCF MaxConcurrentCalls

The default WCF MaxConcurrentCalls=16. My demo app shows this to be 32. Could this be 'coz I have a dual core machine? ie MaxConcurrentCalls=16*[# of cores] ? ...

Kerberos Authentication with WCF customBinding

Hello Sir, I am using an ASMX web service and creating a WCF Client for the service with customBinding. In the customBinding security section, I am using the authenticationMode as "KerberosOverTransport" and using HTTP as Transport medium. Please see the below code. <customBinding> <binding name="Service1Soap" closeTimeout="00:01:0...

WCF service. Where to add . svc file

Hi, I have created a new "WCF service library" type project. I have crated a file for my contract and one file which implements the interface. Both are .cs files. Please can anyone tell me how can i consume it. I mean where should i add my .svc file ...

WCF in Windows Service. How do I change the endpoint address (PORT) using app.config and apply an updated data to wcf in windows service?

Hello! I'd developed a WCF Service using netTCPBinding and embedded it in a Windows Service. The configuration data of wcf is located in standart app.config file. After that i had created an installation project and include my code (wcf in widows service) there. So I have the setup.exe file to install my windows service with wcf on b...

which type of security is needed for WCF

Here is my scenario, I have a WCF Service that is hosted on in internal server behind a firewall. The client is a web application that resides on the web server in the DMZ. The firewall is open on a port between the two nodes so the connection can be made from the client to the server. What type of binding do I need to be using for sec...

Defining a priority when using multiple IOperationBehavior attributes.

Consider the following IOperationBehavior attributes: public class OperationCredentialsAttribute : Attribute, IOperationBehavior { } public class OperationProcessesAttribute : Attribute, IOperationBehavior { } ... and the following operation definition: public interface IService { [OperationCredentials(true)] [OperationProce...

WCF Tracing Error: An operation was attempted on a nonexistent network connection

I setup WCF service tracing because 1 client out of about 30 wasn't able to finish the connection to the server. After setting up test case on that client, the WCF trace report gave me these exceptions: An operation was attempted on a nonexistent network connection and then The I/O operation has been aborted because of either ...

How to show a WCFinformation in Silverlight?

Hi everyone. I have a Silverlight application that displays a map, and my intention is, when I mouse over a specific location in the map, the information about this location gets displayed somehow in the app. What I've done so far is to link the silverlight app to a webservice that retrieves this information for me, but now I'm stuck, an...

Using enums in WCF Data Services

I'm trying to manually build a WCF Data Service using a POCO data model and I cannot figure out how to properly expose enum values. Assuming a simple model like: public class Order { public int ID {get; set;} public string Description {get; set;} public OrderStatus Status {get; set;} } public enum OrderStatus { New, InPr...

XmlSerializer vs DataContractSerializer

I just realized that DataContractSerializer expects nodes in the alphabetical order or the specified order. Is there any way i could make it NOT do it? TIA ...

MVC2 Routing with WCF ServiceRoute: Html.ActionLink rendering incorrect links!

I have a WCF service that lives side-by-side with an MVC2 web site. I'd like for my URL for the service to look like this: http://localhost/projdir/Service The MVC site is in its infancy so it still has all its boilerplate controllers etc. The following code works at first glance in global.asax: public static void RegisterRoutes(Ro...

How to define Endpoints for multiple Service contracts implemented in different classes?

Hi I have taken a WCFService library in which I have defined multipled service contracts(interfaces) in separate cs files and implemented them separately. For example .. [ServiceContract] public interface IService1 { [OperationContract] string GetService1Msg(); } [ServiceContract] public interface IService2 { [OperationContra...

Use custom UserNamePasswordValidator or custom Membership Provider

Hi! I’m adding authentication for my WCF services, and I’m looking at the UserNamePasswordValidator and the Membership Provider, for me it seems like they do the same, but you get a lot more user function when using the Membership Provider. Since I only need the user/password authentication, my DB has all the user and role data, I was j...

Can i use datacontracts in WCF for streaming

Hello Experts, Please can i use datacontracts in WCF for streaming instead of message Contract. If yes, will it offer any performance improvement? THanks ...

SOAP, WSDL and WS* Questions

Just a few questions about the Title: Can anyone give me or provide a "need to know" information about SOAP, WSDL and WS*? If you want to become an expert with using WCF, do you need to know everything about SOAP, WSDL and/or WS.* or just a basic understanding would do? Has anyone taken the MCTS 70-503 or MCTS 70-513 exams? If so, do y...

WCF Service along With LINQ to SQL in asp.net

Hi, I have Created the WCF Service in my application which involves LINQ Concepts but i cant understand how to call that service to my web pages.Can anyone say me how to call the service that i have created to my application with the detailed steps along with some sample codings So that i can proceed further? Thanks In Advance. ...

Is it possible to have the web site supply the WCF config to a silverlight app?

I am developing a silverlight 4.0 application which communicates with a WCF service. The WCF configuration (endpoint, ...) is contained in the ServiceReferences.ClientConfig file. However, I would like the silverlight application to get this config from the web server as I don't want to recompile the application or fiddle with the XAP ...

WCF Serialization Type mismatch

I have an object, lets call it UnSerializableObject, that I can't and change that I need to serialize. So I created my own object called SerializableObject that is serializable and contains all of the same data as the original object. which looks something like this: namespace test [Serializable] class SerializableObject { ...