Questions tagged [responseformat]
9 questions
23
votes
4 answers
WCF ResponseFormat For WebGet
WCF offers two options for ResponseFormat attribute in WebGet annotation in ServiceContract.
[ServiceContract]
public interface IService1
{
[OperationContract]
[WebGet(UriTemplate = "greet/{value}", BodyStyle = WebMessageBodyStyle.Bare)]
…

mgamer
- 13,580
- 25
- 87
- 145
5
votes
2 answers
WCF WebInvoke ResponseFormat
I have a WCF restul service and I want to allow the user to choose what request format they want, i have the decorations
[OperationContract]
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Xml,
BodyStyle =…

Daniel
- 22,363
- 9
- 64
- 71
2
votes
0 answers
false response format by using back or reload buttons in IE
recently i encountert a problem in IE and other browser, which i also noticed on railscasts.com some time ago.
For example, loading the page:
railscasts.com/episodes/some_id#comments
would load a railscasts episode with the comment tab…

fluxsaas
- 997
- 2
- 11
- 27
1
vote
1 answer
Does the Signalr server send all pending requests as a single response to poll, while on longpolling?
We are getting pending requests for a signalr client, bunched as an array in a poll response, like…

KRoy
- 345
- 1
- 10
1
vote
1 answer
oAuth server response format
I am using http://jsonapi.org as a the format for the responses of my api. I am however a little puzzled how to correctly respond to a request for an access token.
As far as I am aware, from the oAuth side I need to return the following:
{
…

Lukas Oppermann
- 2,918
- 6
- 47
- 62
1
vote
1 answer
ASP.Net ScriptMethod generating empty JSON
I'm using JavaScript to access a ScriptService method called GetPerson().
The problem is that it is returning a fairly empty JSON string instead of an actual object string.
The same happens when I return a new DateTime object so the class is out of…

Brian Johnson
- 1,629
- 5
- 21
- 26
0
votes
2 answers
yii2 response formatter not being called
I'm trying to use robregonm pdfresponseFormatter to create a PDF, problem is, the pdf class is never called as the format reponse type.
'response' => [
'formatters' => [
'html' => [
'class' =>…

Jason G
- 2,395
- 2
- 24
- 34
0
votes
0 answers
Very strange behaviour of WCF REST Services
I have designed a REST service with Json response. It was working fine till yesterday. Even now, it works if I change ResponseFormat = WebMessageFormat.Json to ResponseFormat = WebMessageFormat.Xml. Can anyone advise, why as of sudden i'm not…

techspider
- 3,370
- 13
- 37
- 61
0
votes
1 answer
eBay API in Sandbox returns response as a continuous string
Just started using the eBay API.
I created some products and purchased it with another Sandbox account.
In the Sellers account, I can see 2 products under the 'Sold' section.
I am using the GetOrders API call to fetch the orders/sales.
And in the…

Anish Nair
- 3,238
- 29
- 41