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

Problems using CORS and a message handler

Hi,I started this thread yesterday: http://forums.asp.net/p/2022407/5819012.aspx?Re+Passing+headers+using+jquery+ajax+to+Web+API and closed it as the more I tried to fix this them the more it became...

View Article


ASP.NET Web Hosting Problem

Currently I am working on a project where I have included large images and some JavaScript files. The project works well locally on IIS but when the project is hosted the files doesn't upload. The link...

View Article


ASP.NET Web API 2 - receiving a POST, but with no data

I'm trying to convert a WCF based REST server to ASP.NET Web API2. The existing WCF based one is:public Message ProcessReportRequest(Stream inputStream) { ... }The client side is sending a byte[] (Java...

View Article

How to setup a web api controller Post method

I am changing my project to post multiple objects  to my db table. The issue I am having is I do not know how to return the created route with the Id's of the objects. I have not done this before so I...

View Article

APIExplorer Help Page with Custom Attributes

I would like to generate an APIExplorer Help Page for my ASP.NET Web API project to include my Web API Controllers which include custom attribute routes.Currently, APIExplorer by default only includes...

View Article


Regarding Web api action method name convention

i never work with web api. so i was reading a article on web api from this url http://www.binaryintellect.net/articles/bc66c59b-eed1-407e-853d-351e0da228b5.aspxi saw that method names like...

View Article

Blank Message in Push Notification to Android Device Using GCM and Asp.net...

I am using Asp.net MVC 4 Web API as a third party server to Push Notification for Android Device using GCM. It's working fine notification are being generated but the message is blank. I have spent...

View Article

display stock market data

I need a API for my asp.net web application that display real time market stock exchange data .

View Article


Questions about odata metadata, schema and EDMModel,

Hello,I face a problems using the OData stack, and consumming the data from breeze javascript client library.The problems is related to the way OData expose the associations between objects in...

View Article


How to revoke / invalidate Bearer token in Asp.Net WebApi 2.2 when using OAuth

Following this guide I've set the webapi up to only allow access via Bearer tokens.  It adheres to the roles set via the Authorize attribute just fine but when I change the roles for the user in the...

View Article

How to send web api response

Hello All,We are implementing web api in which we are validating the client data like 'Incorrect name', 'Address not found'. So, I want to send these custom messages to the client and not the...

View Article

Validating .Net Membership through Rest

I have a system that runs .NET Membership. Now I need to create a REST Service + Json that can go to my current membership tables, validate the user and bring the answer back.What's the best approach...

View Article

Problems Mapping Web Api

Hello everyone and thanks for your help in advance.  Trying to learn to map and call basic Api.  I have a controller called PatientSearch (PatientSearchController).  Within the controller is the method...

View Article


When HttpResponseException thrown works locally drops the message or inner...

Hi all, I'm trying to consume a Web API rest service within another C# app (Winforms for sake of arguement)We're doing this type of deal:using (var web = new System.Net.WebClient()) {   var response =...

View Article

Retrieving a row from an SQL database

Hi,  I am new to API.  I have been using Web Services for a long time and am familiar with it.  I have been trying to code an API to retrieve a simple row from an SQL database as a quick way to start...

View Article


Request headers missing in message handler when using CORS

I have been trying to fix this for a week and I have not got any further.This relates to a post I did last Saturday:...

View Article

Client gets 500 internal error from Web.API's POST and PUT methods despite...

I have a POST method that when I step through I see no errors at all and it returns HttpStatusCode.Created and and PUT method which also completes successfully and returns HttpStatusCode.OK. But if I...

View Article


Web API - 404 error and Multiple FormBody

Hi Everyone,                     I spent many hours in the last 2 weeks to see if I could use WebAPI instead of WCF Rest service and I finally gave up because of the limitation of Web API.If someone...

View Article

Call WebAPI using Current Windows Credentials

I have this code I'm using to call a WebAPI... Dim handler As New System.Net.Http.HttpClientHandler() handler.UseDefaultCredentials = True Dim client = New System.Net.Http.HttpClient(handler)...

View Article

New sample posted: add your web services to Visual Studio's "Add Connected...

The idea behind this sample is that you (as a service provider) can simplify the process that your developer customers (in VS 2013) have to go through in order to connect their client apps to your...

View Article
Browsing all 4850 articles
Browse latest View live


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