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

Best way to apply tokens (jwt) and in Asp.net WebAPI to validate and...

Hi all,We have created ASP.Net Web API2 using Windows Identity library for Jason Web Token. Please note that we did not create OAuth2 (no middle-ware server for authentications).There are different...

View Article


passing javascript function to asp.net webapi

Hi,I am new to javascript as well as ASP.NET Webapi. I want to send the output of the javascript function to asp.net webapi project. Can anyone let me know how to do that.Scenario:I am getting the...

View Article


accept a xml in web api

Hi all, I have a xml file like belowm <?xml version="1.0" encoding="UTF-8"?><bookstore>  <book category="cooking">    <title lang="en">Everyday Italian</title>...

View Article

.NET Framework 32bit & 64bit on the same server?

Hi All, I have a Windows 2008 RS server with 64bit .NET 4.0 framework. We have a few .ASP Sites developed using 4.0 32bit framework, and new sites being created using .NET 4.5 32bit framework. Do I...

View Article

Library for wiki functions for movie api made with asp.net web api 2

I'm making a movie/actor web service with asp.net web api 2 and want it to have wiki-like functions.Is there a suitable library I can use to build edit, moderator functions etc.?

View Article


Paypal web interface error

I am experiencing Paypal sandbox  connection problem ? When ever I attempt to connect I receive the following error message.      Error During Web Interface. Error is: System.Net.WebException: The...

View Article

When to use WebAPI?

I am developing MVC 5 application and interested to implement WebAPI.I am not following under which scenario to use Web API. Is it only suitable to communicate with other applications with a method...

View Article

API2 MVC Controller PUT with several database records in a list: How to call?

Hi all,I have an API2 controller action I would like to pass several records to.Here is the API2 Controller I would like to call. I want to call the API2 controller once and avoid several calls...

View Article


API2 client.PostAsync - post several records at once or 1-by-1 only?

Hi all,is it possible to use API2 client.PostAsync to post several records from a json serialised object?or have I got to go round in a loop and post  1 record at a time?something like this (not...

View Article


PushStreamContent with Post request

Hi,I'm trying to utilize the PushStreamContent class to stream results of a big query back to the client.I noticed that when I write results to the stream in the delegate passed to the ctor, the client...

View Article

Multiple update in a Http function

Hi folks,I am using asp.net 5 with EF 7. I have created student, course and studentcourse classes for many to many relationship. Here is my sample code as below:In Models:public class Sudent { public...

View Article

Authorizing "anonymous" users

I use web api 2 and asp.net identity to make the back-end for an mobile app.I don't want the api to be open, but the app users should be able to use most functions without creating an account.Is it bad...

View Article

Implement RSA SeureId in WebApi

Hi,I would like to use RSA sdk in my webapi service, and implement RSA public/private token in the webapi service. Please help me in implementing this.Thanks!

View Article


Secure web API with Individual Accounts

Hi everyone,I use "Individual Accounts" to secure web API. But i don't want to use "code first" to create db : user,role,claim . . . . Because i have a available table "Account","Role" in my DB. User...

View Article

Regarding token usage in web api

what is token......is it any dynamic alpha numeric no ?what is access and refresh token and how to implement it ?token is stored in cookie or it is always go back and forth along with url ?what is...

View Article


Why cookieToken and formToken both require

just reading a article Preventing Cross-Site Request Forgery (CSRF) Attacks in ASP.NET Web API from thus url...

View Article

Correct way of change one property

ModelTaskModel { public Guid Id { get; set;} public int Name { get; set;} public int State { get; set;} public DateTime DateTime { get; set;} ------ more 20 properties ------ }Controllerpublic class...

View Article


BaseJsonMediaTypeFormatter WriteToStream does not pass type to Serialize method

Due to this bug, when a web api action returns an interface or abstract type the root type information is not serialized when using a TypeNameHandling of Auto. Example: public abstract class Base { }...

View Article

Creating Secure Web Service for consumption from iOS iPad app

Hi,I have about 1 year of .NET experience and I am trying to create and iPAD app that will store data in SQL Server database.    Eventually this app will be on Android as well, etc..I need to create a...

View Article

Encode Type of Token Based Authentication

As my subject.Thank everybody.

View Article
Browsing all 4850 articles
Browse latest View live


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