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

HttpClient send Post To Web Api with Class Model and Handle returned result

As I begin to learn, I need to learn to handle returned result from web api. I need some verification of using Class model by HttpClient and handling Returned result. A) When I send POST with...

View Article


About Repository data mainiatained in ASP.NET web api controller

Hi All,As HTTP is stateless, ASP.NET WebAPI would not support any kind of state management. In any ASP.NET WebAPI implementation , where Controller class has Repository Interface (induced with...

View Article


ajax call to webapi not working

Hello,I have an ajax call, calling my webAPI. It looks like this:$.ajax({ url: "http://ec2-54-236-63-55.compute-1.amazonaws.com/RiskAliveAPI/token", type: "POST", headers: { Accept: "application/json"...

View Article

Not getting responses from web.api

I have a website where we have created a client to consume responses from a web.api from the server side using the below code. If I run that code on my machine I can see that the request goes out...

View Article

get data from web service using web api

Hi Guys,I have  wsdl web service. I want to call from this web service using web api. How can I do it?. If you have any suggestions, please let me know. ThanksRegards

View Article


Adding column to AspNetUsers table

Apologies in advance if this is not the correct area for a question like this. If it is not, could someone please point me in the right direction? Workstation setup:- Windows 8.1 Pro - Visual Studio...

View Article

Dependency Injection to Custom Formatter with Multiple Class

I am working in webapi with ninject as dependency injector. All my constructor injection working fine for my controllers.I have custom mediatype formatter which used to return pdf when user requested...

View Article

return datatable or dataset from web service and show in web api

Hi Guys,I have a problem. How can I return datatable or dataset from web service and want to show results api/values. in web api.  Is it possible?. Please help me. I am new to this issue. Thanks for...

View Article


Send an array through the Url to the web api

I want to send a put request to update a record in the database from a windows forms application through a web api, I want to send an array to the method found in the api and want to see if this is the...

View Article


Issue when writing XML data to a datatable / gridview

I have an API feed from a Web Services call with our LMS, condensed sample code is below. <a:RosterAddedUserView> is duplicated for each user that appears on the roster and...

View Article

Web API and JQUERY and Jsonp not match

HelloI'm trying to consume a web API with Jquery.Below the code:Controller Codepublic class ValuesController : ApiController { // GET api/values public IEnumerable<string> Get() { return new...

View Article

Batch Request support in WebAPI

I have registered the Batch WebAPI and WebAPI service as follows in webapiconfig.csconfig.Routes.MapHttpBatchRoute(                routeName: "WebApiBatch",                routeTemplate: "api/$batch",...

View Article

Uploading file with wep api

Hi, i wanna write an api controller to upload file in a directory like "~/Files/Image/"and use this api to send file (video or image) from other applications, for example and android or ios apphow...

View Article


How to allow users outside of the network to access API endpoints

 I have my localhost API working correctly (http://localhost:153/Ret_Files) with authentication. However, I have a website (e.g. http://mywebsite.com) where I would like to host the API so people...

View Article

Using HMAC UNAUTHORI with postman

I have use sample Web API security with HMAC when i test on console i use code belowclass Program { static void Main(string[] args) { RunAsync().Wait(); } static async Task RunAsync() {...

View Article


how to call web Api in asp.net project

Hi,I am new to web api. I have one asp.net project and one web api project. Just i want to consume the web api in asp.net proejct. both projects are in same solution only.below is my code to call web...

View Article

Web API with multiple parameters which can be null

Hi,I have a Web API which accepts 3 string parameters and all of them can be null. Please see below: [HttpGet] public IEnumerable<proc_GetStudents_Result> Get(string id, string surnam, string...

View Article


why is my test publish profile using my release configuration

Hello,I'm have issues with deploying my web.config with the correct appSettings. I'm hoping someone can help me out.I'm deploying a web API that logs error messages to a log file on the server....

View Article

How can i add additional data in ASP.NET Authentication Ticket?

I want add json object in the response ticket as property which i get from the authentication token, but i tried add in AuthenticationProperties but i get the property as string not as Json Object.I...

View Article

context Identity is not set in AuthorizationHandler

Hello!I am using policy based authorization. Here is what I have in my Startup.cs:services.AddSingleton<IAuthorizationHandler, PrivateAuthorizationHandler>(); services.AddAuthorization(options...

View Article
Browsing all 4850 articles
Browse latest View live


Latest Images

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