This code:
private void Submit_Click(object sender, RoutedEventArgs e)
{
user temp = new user();
temp.Username = UserName.Text;
temp.Password = Password.Text;
dataBase.AddTouser(temp);
IAsyncResult result = dataBase.BeginSaveChanges(new AsyncCallback (OnSaveChangesCompleted), temp);
}
void OnSaveChangesCompleted(IAsyncResult res...
Hi,
I am busy designing a WCF app. The app's purpose will be to give insurance members access to their insurance information via the web.
The problem lies with our network architecture and I am not exactly sure what type or combinaion of security I must use.
In our internal network we have a UNIX environment which I access using Entir...
I'm trying to get hold of an object from another application using WCF. With built in classes it works fine but I run into probems when trying to return a custom interface type from the WCF operation.
Whether I include the interface in both applications separately, or specif it as a shared assembly, I get the same result: a Communicati...
I have a WCF service that is hosted via IIS on multiple web servers. I have a logging method that logs the calls to the database and I'd like to log which server the call is executing on.
Does anyone know how to get the Host server name or ip address that the WCF call is executing on?
...
I am creating a wcf service. When i add the service as a "Web reference" to my web site (I do this by using the url: http://localhost/myservice.svc?wsdl ) and then call the web methods exposed by the service, I get a "Operation has timed out" exception. However when i add the service as a "Service Reference" to the site, the calls work f...
I am using RESTful WFC's WebInvoke and WebGet attribute classes. In the UriTemplate parameter I want to capture a variable which includes the period character. How do I do so?
So
[WebInvoke(Method = "PUT", UriTemplate = "{id}")]
[OperationContract]
TItem UpdateItemInXml(string id, TItem newValue);
I would like it to matc...
I have a WCF service that requires a certain response time (under 1 minute).
My problem is that every so often, most often in the mornings the service takes a long time to respond (sometimes over 2 minutes).
I'm thinking this is because the app has recycled and the first run must recompile.
Are there other reasons this might happen?
...
Can anyone give a clear explanation of the difference between using clientCredentialType=Windows and =Ntlm in a server-side Web.config when hosting a WCF service?
I have a SOAP 1.1 (basicHttpBinding) service for interop with existing clients. It uses ASP.NET roles so needs clients to be authenticat...
My multi-threading knowledge is still pretty rudimentary, so would really appreciate some pointers here. I have an interface, IOperationInvoker (from WCF) which has the following methods:
IAsyncResult InvokeBegin(object instance, object[] inputs, AsyncCallback callback, object state)
object InvokeEnd(object instance, out object[] output...
Hello to all,
I'll try to explain the problem as best as I can since it is a bit strange for me.
I have a C# class library that defines a bunch of classes that will used as Data Transfer Objects or DTOs.
There's a Windows Forms application that has a reference to this DTOs class library and also a reference to another class library wh...
I have a WCF service deployed on production. I'm looking for a tool to forward a 'Copy' of all the messages received by that service to a development server. I need this to debug the requests in my IDE on the Dev box.
...
I'm new to WCF and would like to know the differences/advantages/limitations/etc of each of the following bindings:
net.pipe
net.tcp
http
Supporting scenarios on when to use each binding and other examples would be appreciated.
...
I'm using .net 2.0 with NHibernate/ActiveRecord and WCF.
I haven't been using NH Lazy load so far, but the performance penalties are too big to ignore, so I'm starting to use it.
From what I've read so far, it's not an easy subject, using NH entities with lazy loading and serializing to WCF, but the benefits are too great to ignore.
U...
I have two WCF apps communicating one-way over named pipes. All is nice, except for one thing:
Normally, the request/response cycle takes zero (marginal) time. However, if there was a time span of, say, half a minute without any communication, the request/response increases up to ~300-500ms.
I looked around the net and I got the idea of...
I'm setting a custom StatusDescription in a RESTful WCF service when an exception is thrown. It's meant to provide the caller with a friendly description of why they got the failure status code.
The following is the response I see in Fiddler. So I know that my custom message is getting pushed back through to the caller. What I can't ...
Hi,
I'm developing an Ajax-based application which makes heavy use of server calls to a WCF layer that communicates with a DB.
Whenever I effect from the client (an ASP.NET page) many calls within a short span of time to the underlying WCF services, the system hangs and goes into a idle state.
How can I handle such concurrency problems?...
I have a web application that connects to WCF services for its business logic. I would like to use simple Dto's for transfering data at the WCF boundary for performance and interoperability reasons.
However I have to use typed datasets for data access (ORM or any other option is not available due to political reasons).
Is it a good ide...
Hi,
it looks like I am not able to succesfully move my WCF proxy code into a separate DLL (as opposed to an EXE as I can see in all the examples I have run into).
The reason I am trying to do this is that I would like my proxy code to be invoked by different clients (possibly unmanaged code), which might not know anything about WCF bu...
I have certain strings which contain special characters so they can not be shared as enum members across a WCF service. (Actually, they are keys for configuration values.)
I want to be able to pass in the keys at client side and get back the config values. If there is a change, I only want to change the config keys at one place.
Consta...
I have created a basic wcf service nothing more complicated than helloworld. I have tested it with both WCF Test Client and my own client app and it works fine.
So with that I wanted to add a method to it to see if I might try something a bit more complicated. However now when I try to debug using the WCF Test Client my new method doesn...