WCF - possible to call a wcf service from the command line with parameters?
Is it possible to call an IIS hosted wcf service from the command line and pass through parameters? ...
Is it possible to call an IIS hosted wcf service from the command line and pass through parameters? ...
Hi, I need to access the EndPoint on a service before UserNamePassword valdiation is done. I am having a custom usernamepasswordvalidator. Before this authentication i need to access the endpoint. I tried implementing messageinspector,iservicehbevaior etc but all of them seems to be hit only after UserNamePassword validation. Is there a...
Hi all. I've found a lot of similar looking issues, but nothing that has made it clear to me why I am getting an error I'm getting. Using all sorts of WCF projects, if I try to host them in IIS I get the following error: The type 'Microsoft.ServiceModel.Samples.CalculatorService', provided as the Service attribute value in th...
Recently I made the switch from using asmx web services to using wcf services, the transition is nearly finished, but I know I'm in for a lot of error checking and testing to make sure everything ported as expected. My question is - so far I can only think of 1 good benefit to using wcf, and that is you get an easy way to implement a s...
I coded in the data contract from code samples and my service is running, but I didn't explicitly set the data contract. At which bound is the data contract bound to the service contract? ...
Dear All, I have the following code to send a (file) stream to a wcf client: public Stream Download( string path ) { try { FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read); return stream; } catch (Exception ex) { string error = e...
How do I get my service written with WCF to return an iCal? The examples I see use either xml or json as the way to format the response. What is the best way to return other types of response bodies? ...
I have a Self-Hosted (Console App) WCF REST service with the following binding: WebMessageEncodingBindingElement HttpsTransportBindingElement (ManualAddressing=true, KeepAliveEnabled=true, AllowCookies=false, HostNameComparisonMode=Exact) This is exposed over an HTTPS URL ("https://mylaptop/myendpoint") I have a self-signed certific...
Hi, I've got a real lemon on my hands. I hope someone who has the same problem or know how to fix it could point me in the right direction. The Setup I'm trying to create a WCF data service that uses an ADO Entity Framework model to retrieve data from the DB. I've added the WCF service reference and all seems fine. I have two sets of ...
With traditional ASMX web services synchronous request, the client connects, makes a request and waits for the entire message body to be returned. I was wondering if its possible to have chunks of data flushed back to the client instead with WCF? This way I can display some progress to the client app during the operation. ...
I have a WCF logging service that runs operates over MSMQ. Items are logged to a Sql Server 2005 database. Every functions correctly if used outside a TransactionScope. When used inside a TransactionScope instance the call always causes the transaction to be aborted. Message = "The transaction has aborted". What do I need to do to g...
Are there any bindings to communicate on Serial port using WCF? ...
Hi there, I need to protect my WCF web services and was thinking what is the best way of doing this. Its not really a ROLE / User situation - more of a "WHO CAN CALL THE WEB SERVICE". I was thinking that i could use an IP? Is this the recommended way? Anybody have any experience with this, I was thinking of have a table (sql) with all...
Hi, I have a Silverlight application that on a button opens an aspx page in a new browser window. I want to pass some username/password details from Silverlight to the aspx page. My understanding is that I should be using WCF services to set the session state, which can then be retrieved from the aspx page. I have followed what I thi...
Greetings! I have a self-hosted server (Windows service) that is supporting both SOAP/RPC (this may go away in the future) and REST. The RESTful GETs are working as expected, but PUT/POST are giving a 405 error (Method Not Supported). I'm pretty sure this is a configuration issue with my app.config, but I'm pretty new to this and am not...
I have been building a Asp.net WCF web service with json format. Now I wanted to really test how its working when sending lots of data. The Content-Length of my http post is 65595. Directly when trying to connect I got error "HTTP/1.1 400 Bad Request" back. It seems like it's not even trying. I know I'm sending valid json and what I'm ...
I have two applications, let us call them A and B. Currently A uses WCF to send messages to B. A doesn't need a response and B never sends messages back to A. Unfortunately, there is a flaky network connection between the servers A and B are running on. This results in A getting timeout errors from time to time. I would like to use WCF...
.Net provides some wonderful mechanisms for defining a remote service and then "automagically" creating a client to connect to it, hiding away much of the nasty wiring and fuss. But is there a similar route for going the other way? My most recent task at work is to create a series of services that will communicate with one another for t...
Hi, I need to redirect a client's request from web service A to web service B. The goal here is to update the server side logic only, so that the client can be redirected to web service B seamlessly without updating the url of which web service it should be pointing to. I can easily turn web service A to the client of web service B so ...
Hi , I have WCF service folder let's say : "TestService" and it contains following folders and files under TestServide folder: TestService folder contains: 1.bin (folder) 2.Config (folder) 3.TestService.svc (file) 4.WebConfig (file) when I go to InetMgr and try browsing the TestService.svc file, the wcf service opens successully: path...