How can I test my web service using mobile or other Laptop !?
Hello,I created web api service that accept json request and responds. Now I want to test it using my mobile or other laptop connected to my network . What should I do ?Can somee.com be a solution for...
View ArticleLong List of Parameters
Hi! I have an end point with so many parameters. Is there an aternative way to reduce it? I could create a Model I guess and pass the object I guess.Please suggest or give some useful...
View ArticleWeb API 2 HTTPGet Method not receiving object passed
I have a Web API 2 method in a C# program in VS 2013 with the following signature: public class LocationsController : ApiController { [Route("locations")] [HttpGet] public...
View Article[FAQ] Web API Windows Identity with SQL Based Roles
Hello,I am writing a web api project in vs.net 2013.I want that my users use their windows identity to log on to the web api.BUT I want to have roles which are defined in a SQL Server table.So identity...
View ArticleWeb API treats value zero as null, and returns 204 instead of 200
Hi All,I get one strange issue with the web API that I wrote: [HttpGet] [Route( "count" )] public HttpResponseMessage GetDataCount( ) { int count =...
View ArticleHow do I make a Request to a REST API, with a certificate, in C#?
HiI work in an organisation where we need to make a REST request against an API exposed by some company producing electronic equipment. My colleague has just gone on holiday, and left me with the task....
View ArticleWeb API Project contains Bootstrap.css, fonts, scripts etc
I created an ASP.NET MVC project and added a web api to it.My intention in this project is ONLY to have Web API. I will create the UI separately in a different project.I can see that Microsoft has put...
View Article500 error A callback parameter was not provided in the request URI
I can't figure out why I'm getting this. My ajax call the web api is below:$.ajax({ url: '/api/FlossTotal/', type: 'GET', dataType: 'json', success: function (data, textStatus, xhr) { datasource =...
View ArticleAPI authentication
Hello,i am new to API. i want to access Viagogo API. i go throught the http://developer.viagogo.net/firststeps developer documentation. there is a code sample for .net public also. but its like class...
View Articleas I can deploy my web services from my Api -MVC?
I need to know as my official server. I mean want to know where I could host my web services. if I put my server web service on another server and my application . separating those who are my services...
View ArticleTo call a web Api untill it returns Data
I have a page in which there are 2 api consumed by using C# . Now the problem is that if the Internet get didconnected for a second the page is displayed with no data. The page is dispayed in other...
View ArticleHost Web Api not on Windows Azure
Hi all, i have created my Web Api which work fine on localhost. Now i would like to publish them, on an ISP (i found that hostforlife supports .net and it is also recommended by Microsoft). But i can...
View ArticleHow to use Twitter Search API in ASP.NET web application
<div id="imcontent" dir="ltr">I have a web application in which i am using textbox and search button.The user will give input value on the textbox, based on input value i want to use twitter...
View ArticleConvert IEnumerable to List
Hello Guys!Somebody help me with this error?I have this method:public List<AnoMOD> CarregarAnos() { using (var conexao = new Entities()) { return...
View ArticleGML Formatter
HiIs there a GML formatter for asp.net web api?Is there a GeoJson formatter for asp.net web api? I would like to create a service that will process OData queries and return the results as GML or...
View ArticleSecuring /Token Endpoint
Hi,I have a Web API project that follows the basic account authentication process outlined here: http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api. My question is should I...
View Articleunsupported_grant_type
Hello, I'm using VS2013 Express for web. ( Look "Web.Config" below for more details ) Following a video in youtube ( using VS2013Ultimate ) to "discover authentication in web api 2", I built my...
View ArticleAdvantage of Async methods over sync methods
What are the advantages of using async methods over sync methods in Web API. By default should I develop the methods as async.
View Article.net Application/Services communicate with Hardware Security Module (HSM)...
Hi,In my company we are planing to develop an application (simulator) which communicate with Harware Security Module (HSM) device(Safe Net) in C#. Since we are in the initial level of the planing and...
View ArticleObject serialization and legacy web service - Metadata does not match
I have remote clients using Linq to SQL data objects which need to communicate this data to a web server which uses data objects with identical schema, but under Entity Framework.When I attempt to...
View Article