Hi, I have created a REST web service using WCF and use HTTP Post Method. The request and response objects are all plain xml. Like the response object is:
<Response xmlns="http://WebService/WCF" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Approved>true</Approved>
<ApprovedCode>OK242C0010063439: X:</ApprovedCode>
<Validation...
I'm playing around with Durable WCF services. i.e. WCF services that persist their state (in my case to a sql server database) between method calls.
I would like to be able to use durable components like this in either Workflow operations or with Asp.Net applications or both.
I understand how to set these components up, have them pe...
I'm currently implementing a WCF REST service on a web role in Windows Azure, and I'm trying to add some communication between the instances of the role so that they can keep each other updated when, say, some data is updated in blob storage. What I'd like to do is host the same WCF service on both the external and internal HTTP endpoint...
I have the following Xml Configuration
<system.serviceModel>
<services>
<service name="MyService.MyServiceREST" behaviorConfiguration="MyServiceTypeBehaviors">
<host>
<baseAddresses>
<add baseAddress="http://localhost:1234/MyService/xml"/>
</baseAddresses>
...
I am running into deployment issues for a SL3, WCF application that runs fine on development machine on built in server as well as deployed on development machine IIS (it is on XP and hence IIS 5.1). Note that the service accesses some data files that are mirrored on dev. server but ultimately has to be using deployment server data. Howe...
My endpoints specify which interface is used to govern the WCF service. Because it's an interface, I can have multiple different concrete classes implement the interface's functionality. How do I specify which concrete class should be used for a given WCF service's endpoint?
How do you say for this endpoint, use this concrete class ...
I currently need to access WCF services from within Silverlight (3.0) application, but I need it dynamic.
What I have access to : the service interfaces (ServiceContracts) and data definitions (DataContracts).
What I need : runtime generated/created WCF client proxy.
Have some solutions?
...
Hi all,
I am running a Simple Service on my Server with WCF; the service is hosted in WebDev.WebServer.exe (local).
When I call the Service local I get the following exception:
Unhandled Exception: System.ServiceModel.Security.SecurityNegotiationException: Secure channel cannot be opene
d because security negotiation with the remote ...
Hi,
I am working on a wcf application where i want to access some columns from a table (prefebly via stored procedure) through wcf and pass it to client. I have searched a lot on the google but unable to find a good example of it. Can some one help me please.
Thanks in advance
...
I want to use Unity Inteception with WCF to do Authorization on my method calls. I have followed articles to create an IInstanceProvider all the way to the ServiceFactory etc.
I have created a CallHandler to do the Authorization and hook it to methods with an attribute.
My problem is that it only intercepts the methods of the Service, ...
I've migrated some code from plain old web services in .Net 2.0 to WCF but I missed a requirement in the code and now have an issue.
The new WCF services take the currently logged on domain user and pass their details through to the server so they don't need to sign on. This means all WCF services run under the context of the user acces...
Hi,
Seeing as Stack Overflow has provided me with numerous answers from others posts I have decided to post my own question.
Here goes.
I want to use SSL on IIS to ensure that clients are connecting with a current certificate.
All I want to do is simply create my own CA cert and install in server and client trust stores, create a se...
How to configure WCF to use just one of two available endpoints?
I need two TCP ports (and thus using netTcpBinding). The service host should first try to bind to the first port. If it fails, and only if it fails, it should try to bind to the second port.
EDIT
I known it can be achived programatically, but my intention to do it declar...
I'm trying to employ the WCF Publish/Subscribe framework described in Lowy's book "Programming WCF Services". But in some cases it is needed to synchronize between events.
For instance, if I have a client that is executing its business then it fires (publishes) an event and continues to execute until at one point it needs to block until...
Anyone know of any good articles that describe how to accomplish this?
...
Hi all
I'm implementing an alert type system within my company LAN using WCF callbacks. It has a subscribe mechanism etc. I've used this tutorial as a starting point but I changed the binding to NetTcpBinding instead of wsDualHttpBinding and I'm self hosting in a Windows service.
That's working quite nicely but I have a question. Most ...
I have a requirement to monitor the Database rows continuously to check for the Changes(updates). If there are some changes or updates from the other sources the Event should be fired on my application (I am using a WCF). Is there any way to listen the database row continuously for the changes?
I may be having more number of events to...
I am facing a problem.
Please explain if this is possible or not.
1)I created a Service Library (.Net 3.5)
2)Created a Windows Service (.Net 3.5), added ServiceHost and implemented my ServiceLibrary to work as a TCP Endpoint.
3)Next I created a Console Client (.Net 3.5) and tried to get data from my TCP Endpoint…(svcutil….proxy.cs ...
I have a WPF application that uses LINQ-to-SQL on a local .MDF file. This solution is simple, easy, and effective, i.e. I set up my model once, then read/write data anywhere via LINQ:
using (var db = Datasource.GetContext())
{
oldItem = (from i in db.Infos
where i.Id == TheId
...
Is it possible to return a data reader from a WCF Service api to a client which is running on a different machine. The serialization mechanism being used is NetDataContractSerializer. The data reader is being sent to the client to read chunks of binary data from the database. The data reader has a method GetBytes() which supports chunkin...