Questions tagged [webhttpbinding]

165 questions
1
vote
1 answer

WCF SOAP and REST together

Lets say I have WCF Soap Services and I am using this library for SOAP headers http://wcfextras.codeplex.com/ For example my interface looks like this [SoapHeader("HelperHeader", typeof(HelperHeader), Direction = SoapHeaderDirection.In)] …
Beka Tomashvili
  • 2,171
  • 5
  • 21
  • 27
1
vote
1 answer

Mono WCF webHttpBinding crashes

Currently I'm testing a Mono WCF Host, it can receive json post. I find on Mono3.2, if send it a header(via Fiddler) without "Content-Type", something like this, it crashes immediately. User-Agent: Fiddler Host: myIP:myPort Content-Length:…
zhuchun
  • 193
  • 4
  • 13
1
vote
1 answer

WCF 3.5 Issue (CustomBinding assigned instead of WebHttpBinding when a parameter is a Stream)

In my service contract I am exposing a method that takes Stream as a parameter: [OperationContract] [WebInvoke(UriTemplate = "/Upload?fileName={fileName}", Method = "POST", BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json,…
Xorcist
  • 3,129
  • 3
  • 21
  • 47
1
vote
1 answer

WCF webHttpBinding service and disabling DB caching

I am working on a WCF webHttpBinding web service a that passes realtime data back to a display board and the problem I am having is that the data from the database appears to be being cached. I am developing the application using .Net4.5 and…
Phil Murray
  • 6,396
  • 9
  • 45
  • 95
1
vote
1 answer

Is it possible to make a webHttpBinding WCF service to answer binary?

I implemented this contract [OperationContract] [WebGet(UriTemplate = "{parameter}", BodyStyle= WebMessageBodyStyle.Bare)] byte[] Operation(string parameter); But, when I called the implementation, all I got was something like this:
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
1
vote
1 answer

Composing a Message in IClientMessageFormatter.SerializeRequest (HTTP GET)

I'm working with WCF Extensibilty and I've created a IClientMessageFormatter that serialize requests via Json-RPC. The code is this one: public Message SerializeRequest(MessageVersion messageVersion, object[] parameters) { string…
Dan
  • 1,060
  • 13
  • 39
1
vote
1 answer

REST Stream's OutgoingResponse.ContentType is ignored, always shows "application/xml" on receiving browser

I have a self-hosted WCF REST/webHttpBinding-endpoint-bound service. I have a few streams of different content types that it serves. The content itself is delivered correctly, but any OutgoingResponse.ContentType setting seems to be ignored and…
Jason Kleban
  • 20,024
  • 18
  • 75
  • 125
1
vote
1 answer

Sharepoint custom WCF Rest service not using maxReceivedMessageSize

I'm building custom WCF Rest service for Sharepoint 2010. Main task of service is to download and upload some files to/from Sharepoint. Download is working as expected, but when uploading file larger than 64Kb I get following error : The maximum…
rjovic
  • 1,207
  • 2
  • 16
  • 37
1
vote
4 answers

WCF WebHttpBinding Testing Tool

I'm developing WCF RESTful Services and looking for a testing tool/invoker for calling these services without writing client code. Can anybody refer me to a tool for invoking RESTful services especially services using the WCF WebHttpBinding?
Moshe
  • 555
  • 3
  • 14
1
vote
1 answer

Microsoft.Samples.GZipEncoder with [WebGet(ResponseFormat=WebMessageFormat.Json]?

With the help of this question and this post I've managed to get WebHttpBinding to work with compression (by means of copy-pasting the code). When pointing the browser to my service method, it downloads a file which I can rename to .zip and…
Lescai Ionel
  • 4,216
  • 3
  • 30
  • 48
1
vote
1 answer

wsHttpBinding not working in a WCF service selfhosted; SOAP-based bindings do work

I have a simple WCF Service shown below. [ServiceContract] public interface IService1 { [OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.WrappedRequest)] string GetData(int value); } public class Service1…
Dave
  • 11
  • 2
1
vote
2 answers

What is the syntax that should be used for WebMessageBodyStyle.Wrapped?

I can't find any documentation on the syntax for a HttpWebRequest wrapped body.
Clangon
  • 1,408
  • 2
  • 18
  • 24
1
vote
2 answers

Long calculation in a wcf restful service

I have a WCF restful service and it works correctly, the problem is that the service expose a method "Calculate" and it may take several minutes to complete the calculation, and since REST is a stateless method, I'm running out of ideas ! should I…
Hamza_L
  • 644
  • 4
  • 18
1
vote
1 answer

WCF authentication over https

I have a WCF service that is using https to communicate and json for the response format. I don't want my methods to be available to anyone so i change the authentication in IIS from anonymous & basic to just basic. So far, the browser is asking…
sebastian.roibu
  • 2,579
  • 7
  • 37
  • 59
0
votes
1 answer

ChannelFactory with WebHttpBinding always POSTs while executing a ServiceContract OperationContract

I have a service that is hosted via WebServiceHost and I need to delegate some of the calls to other REST services on the web. I built a ClientBase concrete class to handle this. The flow looks like this: http://localhost:8000/users/my@email.com ->…