Parse Https Response Object
Hi all,I'm trying to parse a https response object from Mailguns api.Using Fiddler with decryption turned on I can see the response json is: { "message": "Queued. Thank you.", "id":...
View ArticleHow to Post multiple Files instead of just one
I can save a file one at a time with no issue. But now I need to be able to do much more with it per the clients request. First step is posting multiple files at one time. I know I need a foreach loop...
View ArticleWeb Api Batch Calls in Asp .net Web Api
I have found an article related to reduce web api calls by doing batch web api calls.Article Link: https://aspnetwebstack.codeplex.com/wikipage?title=Web+API+Request+BatchingAs per the articke, we...
View ArticleHttpClient fails to receive 401 response to a PUT request on a service...
Case APlease consider the following very simple OWIN hosted service (my VS project is a simple, empty web application with windows authentication enabled). Behavior is the same under IIS Express or...
View ArticleWeb Api named route pointer required
going by the example here... http://www.asp.net/web-api/overview/web-api-routing-and-actions/attribute-routing-in-web-api-2 I see I can give my route a name using attribute...
View ArticleDebugging API loses breakpoints
Hi, I have created an API using VS2013. I did not generate it with the test project function. I added a new project to the solution as a 'driver' for the API for testing. I set breakpoints in both...
View ArticleHttpError's MessageDetail send to client despite IncludeErrorDetailPolicy
MessageDetail value is send with response despite IncludeErrorDetailPolicy value set to Never Repro steps: 1. In OWIN Startup setconfig.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Never; 2....
View ArticleGET with large query data
I am web api newbie (even HTTP newbie on low level), so please bare over with lack of knowledge and even basic terminology.I client (e.g. WPF) need to get data from a web api server, the return data...
View ArticleWeb API 2 web service using CORS works in IIS Express, but not when deployed...
I can access my Web API 2 service when I run it from VS 2013 (localhost:22532) and I have tested that CORS is working by adding/removing the [EnableCors(origins:"http://localhost:11705", headers: "*",...
View ArticleLink creation with dates
Within a Json response I am returning a link to a URL using UrlHelper as follows:Url.Link("DefaultApi", new { controller = "MyController", time = model.Time } )This is creating a query string parameter...
View ArticleNested JSON returned
Hi I am trying to build a web api around a rated data. The issue is that when I ask for a child data it returns a complex nested json where the data i need to get is nested under its parent node. i...
View ArticleHow to create a zip file with Web Api
Right now I am able to download one pdf at a time. Here is what I use for that<a href="{{model.DocumentUrl}}" download><button>Download</button></a>So now I have added check...
View ArticleWebAPI as application in IIS
Hi all,I've created web api hosted as application in IIS. WebAPI url is http://siteName/applicationName.Commonly I consume web api from separate javascript file, but I doesn't have centralized place of...
View ArticleHow to connect to php soap api from asp.net
I want to interate my asp.net application with a php application. I have a php soap api URL like this "https://demo.timetrex.com/api/soap/api.php" I want to be able to connect to this api from my...
View ArticleHelp Needed to send & Consume pdf file
Hi allkindly help me with the code to return PDF from API and consume the PDF in mvc application
View ArticleEncrypt on clients and decrypt on server with same cryption algorithm
I have C# asp.net REST web api service that is consumed from clients who use C++ or Java language. One of C# POST methods lets client programs to post data to my web api service with JSON format....
View ArticleUI for Login and Registration
Hello, I have started with new web application and i ticked both WebAPI and MVC to create the project, the project gets created very well but when now i am running i am not able to view any login page...
View Articleretrieving data with api controller
i have the code at StudentController:private StudentContext _context= new StudentContext(); [Route("api/student/GetStudents")] public IEnumerable<Student> GetStudents() { return...
View ArticleCannot reference ADO.NET model
I created a new MVC4 project and selected web api as the template. Then I created a new local database, made tables, and, created ADO.NET file and generated a new model from that database. Problem:...
View Article