I would like to be able to catch exception from the server and display an error beside a field that related to the error.
I have a NTier client server application that uses WCF services and DTOs to pass data from the server to the client and back. I would be validating a domain object on the server and if it had error I would want to t...
I'm having issues using the WcfTestClient with a SSRS report asmx service. Has anyone gotten it to work?
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities...
What would be reasons that you want to host a wcf service in a windows service and not in IIS?
...
Hi,
I wrote a huge application which uses WCF services to do things like read from databases and also to be able to use integrated security.
Atm I use the following code to get the current logged on user name:
string userName = HttpContext.Current.User.Identity.Name;
However I want to be able to get the active directory groups the u...
Since I'm contemplating to use WCF I thought it would be best to just follow a simple tutorial to get my feet wet.
3 hours later, I've only got one exception to show for. It won't go away.
I ruled out the app.config not being loaded.
If I change: wsHttpBinding in the config to JHGHJGH it gives an error when running.
However when I ch...
I have an AJAX-enabled WCF service and everything works fine with the ajax endpoint. Now I want to add another wsHttpBinding endpoint that corresponds to another interface that is subset of the AJAX interface (i.e. I want only specific methods to be exposed in WSDL). I have a class that implements both interfaces but when I visit the ser...
I am trying to create a service that a 3rd party should hopefully consume.
The consumer is compatible with SOAP 1.1, which is why I am using basicHttpBinding for the server. When the actual request is made, something seems to go wrong with the content types expected by the server. Using basicHttpBinding I dont get why the server still ex...
Hi,
I am encountering a strange issue: I call a WCF-Operation from my client. The operation deletes all files in a specified directory and finally deletes their parent directory too.
ACtually, this works. No exception is thrown and the files within the folder and the folder itself are deleted successfully.
But: the wcf context of my c...
Hi,
I am creating a WCF Service with a method
[OperationContract]
[WebGet(UriTemplate = "acl/f={fullFileName}")]
string GetACL(string fullFileName);
fullFileName is a full path to a network file, or a file on the host.
The host is a Windows Service with webHttpBinding and behavior configuration.
I want to call this from a browser us...
We are a .Net shop currently developing a iPhone app that requires the app to call a WCF web service. Our WCF Services are secured with a x509 certificate for authentication purposes.
I have been searching the internet for an example on how to do the following:
Deploy a certificate with an iPhone app.
Use that certificate in a web se...
I created a WCF service where the class ServiceHost cannot be instantiated as a Singleton. I need to monitor every connection to this service, even before the first call to the methods associated with it. In practice, I would like to log when a client opens a channel to communicate with the service. Is it possible?
In the web I find only...
I'm looking for a way to specify that some MessageBodyMember is required, so that the generated schema would have minOccurs=1 instead of minOccurs=0.
I have to manually edit the schema to add it, and it's really a pain.
I read a few articles that say this is not possible, but they are a bit old; perhaps now there's a way or a workaround...
Good afternoon,
I am writing a DLL that that leverages WCF to make a web services call. Normally this is fairly straightforward: I configure the endpoint in the .config file and be done with it. However, in this case, the DLL can be called in one of several contexts and depending on the context, the endpoint might change. The behavio...
I have a WCF service hosted in a Windows service. The application is an intranet app, and I have programmatically set the bindings on both the service and the client as:
NetTcpBinding aBinding = new NetTcpBinding(SecurityMode.Transport);
aBinding.Security.Transport.ClientCredentialType = TcpClientCredentialType.Windows;
aBinding.Securit...
I've asked a similar question here:
http://stackoverflow.com/questions/2165465/how-to-enforce-one-method-in-wcf-rest-to-be-called-via-https-while-others-can-be
And it doesn't look like it is possible on the code side. Is it possible to set up an entire service to be callable over HTTPS only? I've configured a service using the follow...
Hi,
I am working on an application where we submit details to an external web page that we have no access to make any changes to. The external page is a .htm page. We want to be able to pre-populate the .htm page with the details from our WCF service and proceed to the next stage without user intervention.
The problem is that there is...
sHi All,
I am using silverlight 3 with RIA services. I was wondering how I should deal with slow operations in a domain services class? I have an operation that will take a couple of minutes. I get a WCF timeout after a minute while the client is waiting for a response from the server.
Another approach perhaps? Is is possible to tell t...
hi,
i having more than Three web services,
In that one is master site,and Others are client sites.
In My User Interface One Text box is Available ,In that text box i need to give Destination End Point address
from that Text box Value i need call the Client Service.
for Example:
Client1 end point Service Name:
htt...
I'd like to convert my current HTTP/HTTPS WCF binding settings to use binary message encoding and I need to do it in code - not in XML configuration. AFAIK it's necessary to create CustomBinding object and set proper BindingElements, but I'm not able to figure out what elements should I use in my scenario.
Main points in my WCF configu...
I have a WCF service being hosted in a Windows Service (using techniques discussed here) and it works great. I'm now writing a (VB.Net) frontend app that needs to call that service, but I don't want my users having to fiddle around with the services snap-in and starting the service manually.
Can I write some code to ensure the Windows S...