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

Custom Sample in WebAPI Help Page

I implemented one custom media formatter to provide pdf file. I created custom formatter with 'UriPathExtensionMapping' as media type mapping. All working fine and i can get the pdf file. Currently I...

View Article


What is the difference between web api and asmx web service

i am familiar with asmx web service which use soap protocol to transfer data. when web api comes then i saw people started saying a common word that web api is REST which is not clear to me.1) anyone...

View Article


Custom Authentication in Sender webhook

Hello,I am going to use Webhook sender in my existing application. How can I use custom authentication in webhook sender?Shahzad Godiol

View Article

Using alamofire to work with Asp.net Web Api or Restful web service

Hi newbie here. Current working from iOS Swift Front-End with AlamoFire ( which is the Networking Api for Http).I need help and understand on how to use iOS with alamofire to work with Asp.Net Web...

View Article

How to use Window Identity Foundation with Web API

We have implemented WIF to achieve STS in our enterprise application, that is running very good. Now we want to build one more application (relying party) with existing STS but the problem is this time...

View Article


I would like to configure the Windows authentication using negotiate...

I would like to configure the Windows authentication using negotiate authentication.  Do we need SPN to support Kerberos authentication. Can we do with out SPN or not.

View Article

JSON Serialization date format not working

So I have a class I created to give me a specific date format when I serialize an object. public class IssueDateFormat : IsoDateTimeConverter { public IssueDateFormat() { base.DateTimeFormat =...

View Article

Url related question

Hi,I am developing sample web api2 and i need to call the external url (http://xxxx.aspx). i don't need any response from the calling. Just call and leave it. I need to implement this in all the api...

View Article


Web Api Passing Variables Between Applications

My Web Api project has 3 x Applications: Data, Services and Controllers. I have a Bookings table which is a View of another table within my MSSQL Database which means I can't save data in the...

View Article


Image may be NSFW.
Clik here to view.

Web Api filters can not read the data from...

Hear the problem:1. The web post data to my web Api.2. My Api filter request the inputstream, and validate the signature.3. If I post the data, which length over 1000, my api filter can not request the...

View Article

ASP.net Webhook: must contain a 'echo' query parameter: Zapier

I am trying to get Microsoft sample application in Zapier https://blogs.msdn.microsoft.com/webdev/2015/09/15/sending-webhooks-with-asp-net-webhooks-preview/This sample application is available on...

View Article

how to notify ajax call multiple times during web method process?

how to notify ajax call multiple times during web method process?  [System.Web.Script.Services.ScriptMethod(ResponseFormat = System.Web.Script.Services.ResponseFormat.Json)]...

View Article

The type or namespace name 'Providers' does not exist in the namespace 'CorsApi'

Hi guys,My project was targeted for Net Framework 4.6. Then I upgraded it to 4.6.1 and updated the various packages accordingly.Now with the project targeting 4.6.1, and Microsoft.ASPNet.WebAPI version...

View Article


clear query string on PostRequestHandlerExecute

I wrote this code :  public class DenyAccessforNonAuthorizedURL : IHttpModule { public void Dispose() { //clean-up code here. } public void Init(HttpApplication context) {...

View Article

best practice using web api with graphql

a little bit naive question but right now I want to create a web api to be more flexible I just read about gqphql , is it a good practice to accept a query string and return a string containing the...

View Article


Call webapi return list of object but can not cast to base type of object?

I have some class: public class Base {    public string Name; } public class AClass : Base {    public string AAtribute; } public class BClass : Base {    public string BAtribute; } I create WebApi...

View Article

Help with AngularJS to Web API

Hi,I am new to AngularJS and web api. I create my very first web api to query all the data and it works fine. But I have problem to display the data using AngularJS. Not sure where problem is. My code...

View Article


Loop through JSON returned from an API

HI, I have the following JSON in asp.net VB:Dim jsonString As String = "{'results':[ {'comments':  'some text', 'date'   : 'some date', 'user':'aaa'},{'comments':  'some text2', 'date2'   : 'some...

View Article

Caching in Webapi

I want to load cache when my web api application start. So in web api should i use memorycache or normal web cache can be used?

View Article

Line is too long

Hi, I have Json return from an API.  Based on my search, it returns 400 results. BUT when I try to add this to my script to deserialize it (after 17 result), it gives me this error:Line is too...

View Article
Browsing all 4850 articles
Browse latest View live


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