I want to authenticate a client while consuming a Web service. I see a property exposed in the Client called ClientCredential in which we can pass username and password. How can I pass this information to my WCF web service and how can i authenticate the user ID and password?
...
Hi,
I am developing WCF web service and I used WCF Service application to do that.Is that creating "WCF Service application" fulfill this requirement.
and above all what are the advantage of creating WCF Service Library over WCF Service application?
...
I have a WCF service ( Let's say WCFService1 ) is deployed on two remote machines. Since the same service is deployed on two different machines they have common interface and common methods exposed.
WCFService1 is deployed on Machine1 and Machine2.
To consume WCF service from client machine, I have created a client app:
I have added ...
My SQl Server data base is located in another machine and WCF service and client is on another machine.
While I consume this service ,which in turn access the Sql server to fetch data and return to the client, it gives following error :
Login failed for user ''. The user is not associated with a trusted SQL Server connection.
This err...
Per my other post about WCF service return values, I'm consuming a web service from another company, and when I add the service reference inside Visual Studio, the return value of the method is an object of type object.
The author of the web service showed me the code, and it actually returns a typed object.
Am I missing something, or ...
I have a WCF service service scenario like this
namespace Company.BO.Contracts {
public interface ITypeService { }
public partial interface IType1Services : ITypeService
{
[OperationContract()]
Type1 GetType1(System.Int32 idValue);
[OperationContract()]
Type1 Save(Type1 myType1, System.Int32 changeUser);
}
public partial in...
I have a WCF Service which connect to Sql Server 2005 to retrieve and send data according to the method invoked.
Currently I am using a hard coded sql connection string in .cs file to create a connection.
Let me know what is the best way to use the connection string or where i place the connection string?
Please help!!
...
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...
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.
...
Hi ,
I have created and deployed a wcf service on iis. I am able to access the service in intranet , what else should i do to expose my service in internet??
...
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 am hosting a WCF service in IIS using basicHttpBinding. The WCF web services queries back end SQL Server 2008 by using ADO.Net and return a DataTable to client side of WCF service.
I find when the returned DataTable is big, there will be exception said http connection is closed by IIS. Any ideas what is wrong and how to set bigger res...
I'm hosting a WCF service inside a windows hosted service.
When I start the WHS, I get the following error:
The ChannelDispatcher at 'net.tcp://mysecreturl/' with contract(s) '"IClass"' is unable to open its IChannelListener.
System.InvalidOperationException: A registration already exists for URI 'net.tcp://mysecreturl/Indexer/'.
...
Hello,
I have developed a small WCF service which handles HTTP request.
I want to be aware of every fault that happens:
everything that causes 500 Internal Server Error from the contracts view
everything that causes a CommunicationException from the bindings view (I've written a custom one but am using standard ones also)
The err...
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...
Hi
the Requirement in simple words goes like this.
Its a charting Application ( kinda Dashboard) with multiple views (Charts , PDF and Excel)
DataSources could be primarily from Oracle but there are other data sources like Excel,flat Files....etc.
Charting library would be Component art (I would like to try the new asp.net charting bu...
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...