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

Consuming An XML Web Service

Hello, everyone.I work for a small non-profit agency and we need to consume an older XML web service for one of our partners. Since I'm the only one around with any programming background, it's fallen...

View Article


Image may be NSFW.
Clik here to view.

Web API program Publishing error

Hi All,Please help...I was trying to Publish same Web API program into the same server IIS new site with port (4442)1. I am using File System Publish into C:\API22. In IIS I created a new Site and...

View Article


OWIN batch requests

How to configurate batch route in OWIN?Before it I had Self-hosted WebApi and I did this way:_webApiServer = new WebApiServer(.............. var config = _webApiServer.CreateDefaultConfig();...

View Article

Trying to prove out JWT with Web Api and x509 Certificates

Hi,I am trying to use the Web Api and System.IdentityModel.Token.Jwt to do the following:Create a JWT signed with an x509 Certificate. Consume and validate the JWT signature. I am new to the Web Api...

View Article

How to pass multiple parameter to web api action

here is the code[AllowAnonymous] //http://localhost:29679/api/Customer/GetAll?CustomerID=001 [HttpPost] [Route("GetAll")] public IHttpActionResult PostGetCustomer([FromUri]string CustomerID,...

View Article


Post Async with one or two string type parameter

see my action [HttpPost, Route("DeleteCustomer")] public HttpResponseMessage DeleteProduct(string customerID) { HttpResponseMessage response = null; Customer customer = repository.Get(customerID); if...

View Article

interview question

i was asked in an interview the following question about webapiWhy we need webapi?I told "the services that are created in webapi can be used across wide range of devices like laptop, desktop, tablet...

View Article

How to do the model validation in web api like asp.net MVC

i am looking for a small and complete web api code where model will be validated in action like asp.net MVC. please give me relevant article url or sample code.thanks

View Article


How the data is posting in my sample code

please see the below code and tell me json or xml will be posting to web api action from client using httpclient.public HttpResponseMessage PostProduct(Product p) { bool result =...

View Article


WebAPI: PostAsync with single or multiple query string does not work

see my sample web api action which take one string type parameter.[HttpPost, Route("DeleteCustomer")] public HttpResponseMessage DeleteProduct(string customerID) { HttpResponseMessage response = null;...

View Article

How to transfer image binary data with base64 encoded from action to client...

i am looking for a two small code which show how to transfer image binary data with base64 encoded from client to action and another code is opposite like transfer image binary data with base64 encoded...

View Article

The remote server returned an error: (401) Unauthorized. ( WEB API & WEB APP...

I have WEB API & Web application both running on same server. I have enabled both for windows authentication. Web Application is consuming WEB APIcode : public static List<Course>...

View Article

WebAPI V1 4.0.30506 incorrect on Nuget? Really Version 4.0.20918

I'm looking for the last Webapi v1 for Framework 4.0, as per Nuget there should be a version 4.0.3056.Downloading the 4.0.3 package and looking at the properties of the Dll's in the lib folder shows...

View Article


Claims aware application in VS 2015

Hi,I am trying to create an application which uses ADFS. Below is the step by step guide that I found, however, it seems like claims ware web application is no longer available in VS 2015. Is there a...

View Article

Api related question

Hi,1. My application uses Oauth 1.0 with bearer token based authorization. I would like to know is there any way that we can hide the url details on the help page based on companies using my API.Assume...

View Article


Authentication with web API

HI allI have a web portal with database sql where there are account registered. I would to create a mobile app that must have somethings service of portal, so I would create API in my website and call...

View Article

How to use asp.net winapi with angular js?

Should I use SPA pattern? Or just simple web api page in asp.net mvc project? I do not need interaction with db. So I want to know in what folders I should put angular js files - in Content or Scripts?...

View Article


Learning OData

Hello everyone and thanks for your help in advance.  I am learning to use OData api and realize one of the benefits of OData is the reusability factor.  I am refactoring some old code that queries a...

View Article

Could not reach controller in webapi project

Hi, I have a Web API project , I have implemented a controller, but when I ran application I could not reach the controller.Here is the URI I tried to hit:...

View Article

webapi + CORS: POST works, PUT does not

Hi,I have a problem accessing a webapi-REST-service with CORS. What I've done so far:installed Microsoft.AspNet.Cors V 5.2.3 via NuGet, called config.EnableCors() in the "Register" method of...

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>