Calling 3rd party Webservice in Web API at fixed interval
Hi all,I am developing web API . There is requirement for calling 3rd party web service for whether forecasting in some fixed time interval and store this information in database as well as send to...
View ArticleNewby question
I am new to APIs and I have a question on design. First I have discovered rather than creating dto classes I should make models.My question is for the get action verses the post and put. I have a...
View ArticleCross-Origin Request Blocked in web api
I have a Web Api project (name TestApi).When I Debug this Project, Then I'm Getting the JSON data when I enter this URL"http://localhost:31310/api/Authors"Now I want to call this api method from...
View ArticleOne OData operation returns 406 error
Hi, I just need an operation to return a parent entity using a child entity's Id, but even though the query works, it keeps giving me 406. The code of my controller looks like this:...
View ArticleGet and Return Token in Web api
I am using mvc to send credentials to web api which creates a user for me in database.what i need after creating user in db the api postregister method should also create a token for me and return it...
View ArticleNewtonsoft JSON MicrosoftDateFormat per controller
Hello,I would like to set the Newtonsoft MicrosoftDateFormat per cotroller. I found this http://stackoverflow.com/questions/19956838/force-camalcase-on-asp-net-webapi-per-controller , which...
View ArticleAdd token into claims Identity
I want to add token into claims identity how can i do it?
View ArticleSelf-Hosted: ASP.NET Web API 2.2 Help Page: Current status?
Does anyone know the current status of being able to run the FULL Microsoft ASP.NET Web API 2.2 Help Page system in a self-hosted environment, as the current release only runs under IIS? The options...
View ArticleOData service on legacy database
Hi,What is the best option to build an OData service on a legacy database? All the tutorials are creating a database from scratch to match the entity framework model. How does it work with an existing...
View Articleweb api 1 visual studio 2012 vs web api 2 visual studio 2013
For some reason I cannot get my code to execute completely when I open up my web api 2 project in vs 2012 since I only have web api 1. There are no errors, nothing I can see that says the code is bad....
View ArticleFile upload using MultipartMemoryStreamProvider
I am looking for a way to implement file upload without writing to the file system.So far I have only seen samples (that work with RTM) that writes to the filesystem.What I would like is to create an...
View ArticleHow to enable CORS in Odata .NET service?
HiI have defined an Action on an OData service.My config looks likeActionConfiguration findPlaceAction = builder.Entity<Restaurant>().Collection.Action("FindPlace");...
View ArticleOData v4 - Action/Function on contained entity
Can an Action/Function be created on a contained entity? Microsoft.AspNet.Odata Version: 5.3.1
View ArticleTrying to access raw XML from outgoing web service
I am consuming a web service to send a soap envelope to a third party.To troubleshoot this I need to see the xml that will be sent, how do I do this?I am using vb.net
View ArticleCreating new API
I have Visual Studio 2013 Professional. When I select to create a new project, select MVC 4 and WEB API I do not see the ability to select a security type. I am missing the ability to select...
View ArticleGet Controller Full URL in app_start
Hello, I have a requirement to retrieve the full URL to a specific controller in app_start but UrlHelper is not much help due to not having a request. Whats the best way to achieve this? var urlHelper...
View ArticleWhy Url encoding fails in yahoo OAuth 2.0 in C#?
I am implementing Yahoo OAuth 2.0 in C# and ASP.NET, what i have noticed that HttpUtility.UrlEncode(string) fails for the encoding of returnUrl. This is the case when the returnUrl has space in it. My...
View ArticleOData Error response always in JSON format even request has http header...
I have noticed the error message Http response body return from ODataController always in JSON format, even the Http request clearly ask"Accept: application/atom+xml". Is this a known issue to be...
View ArticleHow to request odata service url like...
in the sample of http://aspnet.codeplex.com/SourceControl/latestThere is a sample called ODataQueryableSample, which supports a query like this response =...
View Article