37,950 questions
9
votes
1
answer
4k
views
Asp.Net MVC4 Web API - Return OData formatted Json from query without custom MediaTypeFormatter
I am trying to use the new WebAPI beta to build a web service that I can query using the OData query string conventions and have it return OData formatted Json. I also want to use OData 2.0 (instead ...
3
votes
2
answers
3k
views
ASP.Net Web API vs WCF - Can the Web API be used to provide REST-based communication to a singleton WCF service?
I have an existing set of singleton WCF services. They are long-running processes that do a lot of work on an ongoing basis and expose themselves with WCF service contracts for communication with ...
33
votes
1
answer
10k
views
Mix web api controllers and site controllers
I am fiddeling with the new wep api in mvc 4 beta and adding some new api controllers to my existing mvc site. Problem is I can't name the web api controllers the same as my existing controllers. For ...
3
votes
1
answer
631
views
ASP.NET Web API binding method
I have two methods like this
public class ProductController : ApiController
{
public Product GetProductById(int id)
{
var product = ... //get product
return product;
}
...
3
votes
2
answers
2k
views
Forcing web api consumers to accept new fields in responses
I'm creating v2 of an existing RESTful web api.
The responses are JSON lists of objects, roughly in the form:
[
{
name1=value1,
name2=value2,
},
{
name1=value3,
name2=...
3
votes
3
answers
2k
views
WCF Rest - what are the best practices?
Just started my first WCF rest project and would like some help on what are the best practices for using REST.
I have seen a number of tutorials and there seems to be a number of ways to do things......
1
vote
0
answers
720
views
µTorrent Web API's token system blocks me from making requests
i'm trying to test sending a magnet url to utorrent before i go ahead and finish writing my Android app.
first i fetch the token like the docs say
byte[] encodedLogin = (user.getUsername() + ":" + ...
0
votes
1
answer
247
views
Is there a web search service/site either with an API or which works with YQL?
I'd like to make a tool which accesses a search engine programatically.
I've been enjoying using YQL recently and thought it might be useful since it can dig data out of HTML pages.
But I tried it ...
19
votes
1
answer
15k
views
How can I use JSON on the web page from a source with neither CORS nor JSONP? [closed]
Some JSON data services on the Internet are designed to be consumed only by servers and neglect the possibility of being consumed directly by a web-only app.
Due to cross-site concerns, such services ...
1
vote
1
answer
934
views
How to Get Header Values
How can I access header values from a web method in WCF Web API?
0
votes
1
answer
770
views
Do my model objects have to have the same name as my WCF Web Api DTO objects when using restsharp?
I have set up a WCF Web Api service, and everything was working fine, until I started using DTOs to expose data.
Previously I had on the WCF Service my model object which was called Game.cs:
public ...
3
votes
3
answers
3k
views
Python: what is the correct way to handle gzipped json?
I've found this snippet, which seems to do the job, but I can't understand why it uses StringIO. Isn't f already a file-like object? What is the need to read it, then make it look like a file again, ...
3
votes
1
answer
3k
views
Easiest path for Microsoft Web API to generate WSDL
Web API, unlike some of the older Microsoft web service technologies, does not generate WSDL documentation automatically.
What's the easiest way for it to automatically generate (or quickly manually ...
0
votes
2
answers
382
views
DataContract Attributes not being sent in responses
I have had it where the name/namespace/other attributes show up when sending a request, but now they have disappeared and cant figure out for the life of me what changed... I am trying to utilize the ...
1
vote
1
answer
776
views
HttpOperationHandlerFactory and InputParameters issue
I've written a custom OperationHandler for my WCF WebAPI project as follows:
public class AuthenticationOperationHandler : HttpOperationHandlerFactory
{
protected override Collection<...
1
vote
4
answers
9k
views
Android Dynamically Load ListView
I am adding item in ListView using ArrayAdapter.
First display 15 item in the ListView.
Scroll to bottom it must fetch and display next 15 content from web API.
Give some idea.
1
vote
1
answer
2k
views
Web API for HP products
Currently I am using HP Web JetAdmin to manage a fleet of HP products. The interface is great but I am wanting to create some custom applications with custom interfaces. Does anyone know of any way ...
0
votes
1
answer
281
views
How to store non-standard web authentication?
In the web API my app communicates with, the authentication process is designed in the following way:
The user enters the name of the group that he/she belongs to.
The server sends the list of group ...
11
votes
1
answer
2k
views
Difference between WCF Web API and WCF Data Services
What is the difference between WCF Data Services and WCF Web API?
20
votes
2
answers
10k
views
Indian Railway Train Search API [closed]
Is there any API provided by Indian Railways to search its train network, time-tables etc. There are many sites out there which show time-table etc. I searched Google but couldn't find any info on Web ...
0
votes
2
answers
323
views
What's the simplest way to do authentication with a web API?
I've got a web API that provides data to users without authentication (the website lets users post data, after they've logged in using traditional cookies & sessions). Someone wants to develop an ...
682
votes
18
answers
530k
views
Does IMDB provide an API? [closed]
I recently found a movie organizer application which fetches its data from the IMDB database.
Does IMDB provide an API for this, or any third party APIs available?
4
votes
2
answers
303
views
Finding Websites From Company Name
I've got a list of 6,000 company names (along with their headquarters address) and I need to find the web address for each of them. I'm considering using the Google Web API (obviously this will take a ...
2
votes
3
answers
1k
views
What is the most RESTful form of authentication? Who is using it?
Duplicate: this must be a duplicate of one of the questions that come up in the following search: Please close it as a duplicate if you agree, and add any answers to one of the other questions.
What ...
117
votes
3
answers
165k
views
How do I set the request timeout for one controller action in an asp.net mvc application
I want to increase the request timeout for a specific controller action in my application. I know I can do it in the web.config for the entire application, but I'd rather change it on just this one ...