Quantcast
Channel: Web API
Browsing all 4850 articles
Browse latest View live

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 Article


How 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 Article


Web 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 Article

HttpClient 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 Article

Web 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 Article


Debugging 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 Article

HttpError'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 Article

GET 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 Article


Web 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 Article


Link 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 Article

Nested 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 Article

How 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 Article

WebAPI 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 Article


How 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 Article

Help 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 Article


Unknown

View Article

Encrypt 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 Article


UI 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 Article

retrieving 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 Article

Cannot 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
Browsing all 4850 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>