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?
...
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...
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...
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...
Hello,
I have built a custom binding for being able to receive HTTP messages from an additional source. However, it is not bug-free yet.
I've observed that my service pushes CPU usage up to 100 % as soon as the first request was processed and the service getting slower and slower the more requests came in. The reason for this behavior ...
I'm running a WCF client locally that always throws a MessageSecurityException with the text:
"An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail."
The Inner Exception Message Is:
"An error occurred when verifying security for the message"
I set up a ...
I'm running a web service which accepts SOAP messages over a custom binding.
The messages get dispatched correctly and most of them get processed fine. While working off a Message, the message is being read to a XmlDocument using:
XmlDocument doc = new XmlDocument();
try {
doc.Load(msg.GetReaderAtBodyContents());
} catch (XmlExcept...
Caution, WCF noobie alert
I need to create a WCF client to query a non-WCF web service.
The web service is not a WCF service. Additionally, the web service requires a client authentication certificate. Now, I have the certificate, and can create a non-WCF client that works perfectly; I was able to 'Add Web Reference' and a certificate...
I'm developing a Web Service Project in which I have to implement a web service that should be interoperable on all platforms. So initially I used basicHttpBinding as it uses SOAP 1.1 but I want the features of WS-* like reliable messaging, security, exceptions. So I used wsHttpBinding which is a SOAP 1.2 standard.
Now after deploying o...
Hello,
I'm having a tough time with NetTcpBinding.
When I run my WCFservice,I get this...
==============================================================
System.InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
...
I'm getting the following error when I try multiple end points..
System.ServiceModel.AddressAlreadyInUseException: The TransportManager failed to listen on the supplied URI using the NetTcpPortSharing service: the service failed to listen.
at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Register()
at S...
Since the development server doesn't support the use of any bindings besides HTTP (http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c7f173ea-61dc-4338-8883-60d616adc18f/), then how does one debug a NetNamedPipeBinding?
Right now, when I change the binding type with the Microsoft Service Configuration Editor from basicHttpBinding...
I have a WCF service.
I am trying to host the service in a console application.
I am following all the directions here
Now everything compiles fine, but I get an exception at runtime.
The contract name 'IMetadataExchange' could not be found in the list of contracts implemented by the service Indexer. Add a ServiceMetadataBehavior to ...
I have written a custom WCF binding which replies to requests over HTTP from a different source.
In the Channel's ReceiveRequest method, it's possible to receive a bad request from a client (for example, if he does not send HTTP etc..) However, due to the non-existance of a RequestContext at this time point (ReceiveRequest should return...
I've created a custom binding and want to make it configurable over App.config.
The binding has no special options at the moment, so it would be sufficient to support just
<endpoint address="http://myAddress"
binding="myBinding"
contract="myContract">
After checking some sites, I found out that I have to enable c...
I have developed a custom binding which works over http and therefore returns http as it's scheme. My current code to return this scheme is as follow:
My derivation of Binding uses
public override string Scheme {
get { return this.transportElement.Scheme; }
}
where transportElement is an instance of my custom TransportBindingElem...
Hello everyone,
Is duplex binding possible with having ONE single port open for incoming connections in WCF?
quoted from another question in SO...
"I am making a business specific messaging application, it is going to connect between 5000 and 10,000 machines back to our datacenter via WCF (no vpns, all over the net). It is mainly for al...
Hi,
I am trying to use the WCF streaming with Message Contracts, because I need additional parameters beside the stream itself.
Basically I am creating a file upload and download service, with some additional logic on top.
Unfortunately, when I try to hit the service from the browser to check that everything is all right, I get the fo...
I have a the following server side app.config for a WCF service:
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="default" maxReceivedMessageSize="5000000">
<readerQuotas maxStringContentLength="5000000" maxArrayLength="5000000" />
</binding>
</wsHttpBinding>
</bindings>
...
I want to expose an implementation of a contract over a WebHttpBinding with SecurityMode: transport (SSL).
However, when I try to access the site via Firefox, I only get
The connection to localhost was interrupted while the page was loading.
The config file is as follows:
<configuration>
<system.serviceModel>
<services>
...