wcf

How to prevent others from adding the service reference of the hosted wcf service?

If i am hosting a WCF service so that someone(i.e someone whom i know) can consume my service, but what if someone else(i.e someone whom i don't know) consumes it then would do i? How do i prevent that?How can this be achieved? Can it be done through service throttling or what are the other ways of achieving this? ...

Is SOAP obsolete?

What is the current best practice for implementing Web Services? Is it still with SOAP? Windows Communication Framework is seemingly better, but isn't it SOAP under the covers? ...

WCF security, changing the WindowsIdentity from inside a service

Hi there, I have a client app that calls a WCF service on a different server in the service I print out the following: 1. ServiceSecurityContext.Current.WindowsIdentity.Name; 2. WindowsIdentity.GetCurrent().Name; 1 above gives me my windows login and 2 gives me the windows login that the server is logged in as How can i change 2 so ...

WebServiceHost doesn't invoke OnAcceptChannel of custom ChannelListener

Hello, I am currently building a custom binding which gets HTTP requests from a different source than from a listening TCP socket. When I access and open a channel directly, there are no problems. However, problems occur when I try to host my binding in an endpoint of a WebServiceHost. I've inserted Console.WriteLine() debug messages i...

Random AuthenticationManager CustomTargetNameDictionary exception when calling a WCF service

I Have been receiving this error when making a call to a WCF service from a ASP.Net application: Unhandled Exception: System.InvalidOperationException System.InvalidOperationException: The entry found in AuthenticationManager's CustomTargetNameDictionary for {URL} does not match the requested identity of host/{Hostname}. Server stack ...

Custom Headers in WCF

Hi, I've want to add specific custom headers on my wsdl for incoming soap message so i've added the required tags into the header node of the web.config like below: <headers> <Tag>Value</Tag> </headers> However, this works fine if the 'Value' in the custom tag is set to 'Value' when I change this value the service kicks it out g...

Connecting to a WSE 3.0 Web Service From a WCF Client

I'm having difficulty connecting to a 3rd party WSE 3.0 web service from a WCF client. I have implemented the custom binding class as indicated in this KB article: http://msdn.microsoft.com/en-us/library/ms734745.aspx The problem seems to have to do with the security assertion used by the web service - UsernameOverTransport. When I ...

Deploy WCF Service to IIS when it only has an App.config

I've add a project type of WCF Service Library to my project. Doing this has allowed me to develop and test a WCF Service, however this service runs off an App.config and not Web.config. In addition, it has no .SVC file like my prior projects. What do I need to do in order to deploy this to IIS 6. Regards. ...

In IIS hosted WCF services, how to disable address translation?

When I publish my ASP.NET WCF service, the WSDL uses the machine name instead of the domain name. How to prevent this? Example: <wsdl:import namespace="http://ListenerService" location="http://MACHINE_NAME/ListenerService/service.svc?wsdl=wsdl0"/&gt; <soap:address location="http://MACHINE_NAME/ListenerService/service.svc"/&gt; ...

Connection refused - nettcp WCF Service from work - client connecting over VPN

Here's the scenario: A client machine has connected to the 'Work network' via VPN (Cisco VPN Client). The work network hosts a machine that has a WCF service with nettcp binding. The client tries to connect to this service and gets an exception as follows: Could not connect to net.tcp://workMachine:2010/SomeService. The connectio...

There was no endpoint listening at net.pipe://localhost/...

I have two WCF services hosted in a single Windows Service on a Windows Server 2003 machine. If the Windows service needs to access either of the WCF services (like when a timed event occurs), it uses one of the five named pipe endpoints exposed (different service contracts). The service also exposes HTTP MetadataExchange endpoints for...

Confused about wcf despite my reading

I am learning wcf but I have trouble understanding the benefits. Is there ever a time I would want to use traditional web services? I read another thread with these benefits: Opt in model for members using a certain attribute Better security No need to worry about binding (can't understand how this is true) No need to worry about the ...

wcf method access through web

Hi, i have a doubts in wcf and web application. i have a wcf service method. im accessing these methods from web application, it is working well. But my service not working after publishing my web. ...

Does a WCF self hosted service handle more or less load than the IIS hosted option?

Does the hosting option affects the amount of requests a WCF service can handle? ...

is WCF useful to build a client that uses a non-WCF web service?

I am brand new to WCF, and have limited experience coding against web services. At work it has been dictated to use WCF for everything network service oriented. The work I need to do involves querying a non-WCF web service, apparently built in Java, with a Netscape certificate server and related infrastructure (the service is not und...

How can BizTalk 2006 R2 consume the serialized response of a WCF service with PreserveObjectReferences = true?

We have an existing .net 3.5 WCF service with which PreserveObjectReferences is set to true on the server side. When PreserveObjectReferences is set to false BizTalk can consume the response. Is there a way to get BizTalk to consume the PreserveObjectReferences response payloads... PreserveObjectReferences manifests itself with a z:id...

Web Service method signature changed to request/response objects for datatype string[]

I have two websites, both using .Net framework 3.5. One website is hosting a soap web service and the other is referencing this service. I'm having some unexpected happenings with my web method signatures. I have a simple method in my web service with a signature such as: [WebMethod] public string[] HelloWorld() { return new[] { "He...

How to solve "The ChannelDispatcher is unable to open its IChannelListener" error?

Hi, I'm trying to communicate between WCF hosted in Windows Service and my service GUI. The problem is when I'm trying to execute OperationContract method I'm getting "The ChannelDispatcher at 'net.tcp://localhost:7771/MyService' with contract(s) '"IContract"' is unable to open its IChannelListener." My app.conf looks like t...

What approach can be used to extend WCF security beyond the current domain?

WCF has a rich security model, I hope everyone can agree upon that as a given. I recently came across a situation where our client applications (WCF based applications that leverage the user's credentials within the domain) needed to communicate with services we had to deploy to a data center outside of our domain and control. Conseque...

WCF windows credentials

Hi there, my client on server A calls a service on B which calls a service on C. In order to get the call working from B->C I have to do this: channel.Credentials.Windows.ClientCredential = new System.Net.NetworkCredential("WndowsUserName", "WindowsPassWord"); IService1 service = channel.CreateChannel(); etc... the user name ...