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

Real time Web query/Web API

Hi, I am looking to do a web app that allow user to do a search and return list of results. My thinking are:1. Real time web query, like skyscanner.com2. web API? do i need to create an api for each...

View Article


How to pass multiple complex objects to Web API action

suppose this is sample actionpublic void StartProcessiong([FromBody]Content content, [FromBody]Config config) { } OR public void StartProcessiong(Content content, Config config) { }client...

View Article


WebApi2 - Retrieve ErrorMessage From DataAnnotations

I want to return the custom error message that I have specified in my data model class to return to user.  I've tried creating a filter for override OnActionExecuting(HttpActionContext) but I am still...

View Article

Attribute routing issue - different route methods being blocked as duplicate...

Hi there,I was wondering whether this is a bug or I'm doing something wrong.Simple example - two controllers, but override the RoutePrefix  in the second to be the same as the first:using...

View Article

MEF Dependency injection to Self Hosted WebAPI v. 1

Hi,I would like to use shared freamework in WEB API v1 which uses MEF for dependency injection in SelfHosted WEB API .For this I created  a class derived from IDependencyResolver & implemented the...

View Article


Get ClaimsPrincipal in Custom AuthorizeAttribute?

I can get bearer access token from embedded authorization server.The problem is when I request resource from WebAPI, I could not get back the ClaimsPrincipal based on the access token sent along.Below...

View Article

How to post a SOAP message to web API end point

Hi, I want to paste a SOAP XML based message to Web API which i have created in ASP.NET core project template. Right now i am getting unsupported media type error when i post it with content-type as...

View Article

multiple actions were found that match the request

Goodday AllI am using web API and  am quite bit new in this. I  ve a trouble in a routing problem. I have a controller with following actionspublic class IndividualController : ApiController   {...

View Article


ASP.NET Web API Contract Versioning

We would like to achieve version based API using content negotiation in accept header.We are able to achieve for controller & API methods with some inheritance and extending the default HTTP...

View Article


The system cannot find the file specified -

Path = ""\\\\ServicerName\\\\TFSLocation\\\\ProjectName\\\\Process.exe""ORPath = "C:\\TFS\\Development\\Processes\\ProjectName\\Main\\ProjectDescription\\bin\\Debug\\ProcessEngine.exe"process.Start()...

View Article

MVC App, Web Api, CORS, OWIN Headache!!!!

Hi all, I have been tasked with reworking the security model for my company web app. Basically it is an MVC/Knockout.js/jQuery front app in it;s own domain and calls out to a web api (also in it's own...

View Article

Generate computer status report

I have a network of devices all having windows operating system. My requirement is to get the information from all these devices and generate a report. I would want details like OS version, latest...

View Article

Root element missing error while trying to deserialize xml extracted from...

Hi I have used below controller action method for posting soap message and then trying to deserialize it into object but getting error: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at...

View Article


Error retrieving token ASP.NET Web API template

I’m working with a project that has been created as a ASP.Net Web Application with the ‘Web API’ template and ‘Individual User Accounts’ enabled as the authentication option. I have a console...

View Article

odata web api using EF

Hello,I am pretty new to web api, EF and odata.  We are using oracle and want to use RAW sql to build out a model but allow for the odata querying options without having to translate and dynamically...

View Article


Deployment Question

I have just created a Web API project. We have an existing website, and I would like to deplore the API tohttp://[domain]/API.Do I create a new website in IIS and configure it to point to the above...

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


How to create invioce in Web Api 2 and angular JS using Visual Studio 2013

Hi,I am developing a web application using Web API 2 and AngularJS in visual Studio 2013. Now I facing a problem regarding Invoice Printing. I have googled and didn't get solution.I liked to provide...

View Article

Call Executable file through wcf service hosting in iis 8. windows server 2012

Hi all,I really need your help.I have an executable file which is call another executable file. It means, I have 2 files needed to run.I tried to create wcf service to call this executable file.it's...

View Article

We migrated from Self-hosted to OWIN, then FATAL error...

Hi,We had Self-hosted Web API with log4net logging handler. Then we migrated to OWIN and add one LoggingMiddleware wiht log4net and deploy to PRODOne hour API was working ok, but after we got FATAL...

View Article
Browsing all 4850 articles
Browse latest View live


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