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

How to upload Image using Web API

Hi All,I have file upload code is as follows. What will be Web API code for save the file and how I can post the image data to Web API<form novalidate name="f1" ng-submit="SaveFile()"><div...

View Article


Address pin on google Map

Hello every one,i want to show pin on address at google map. In my application after fetching address from DB. i want to show its pin on map. How it will possible in Asp.net (MVC). if any one have done...

View Article


WebAPI timeout issue on self hosted API

Hello,When Http Client is calling WebAPI, since API execution is taking long time to finish, client is getting time-out. WebAPI is hosted in Windows Service. How can I increase the execution time out...

View Article

MVC 4 validation attribute filter

I am implementing web api's in MVC 4. I have created custom action filter for validation. Everything is working clean and nice, except the validation error message. I want validation message HTTP/1.1...

View Article

ASMX Webservice for uploading files

Hi there,I am looking for sample of ASPX  webservice written in C# that I can call from jQuery and android Java.Any help will be appreciated.Thanks,

View Article


AttributeRouting.RoutePrefix

Hello everyone,I have a simple question. When using WebApi RoutePrefix, is it possible NOT to hardcode the actual prefix?Example: I have something like this:...

View Article

Secure Web API using SSL certificate

when we develop web api project then we can use basic auth and bind ssl certificate web api project in IIS. when we use ssl certificate then we think transport layer becomes secured but what about...

View Article

Web API OData Service Get data Problem!

Hello Everyone!I have hosted my odata service on somee.com. But when i get it using AngularJs the data does not show. Service link: http://waliservice.somee.com/odata/ProductsIs this process correct or...

View Article


can we change web api action name by attribute routing

please tell me can we change web api action name by attribute routing without using action name attribute ?i know we can use action name attribute to change action name. it is used to over load...

View Article


Regarding enabling CORS in web api project

i was just looking at this article https://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api to know how we can enable CORS for web api.the article show how to enable...

View Article

Web API OData function with TimeSpan

I have a Web API OData v4 service that I've created. I'm trying to create a bound function that has a TimeSpan parameter having a signature defined in the OData controller similar to the below:public...

View Article

Question on acepting long coma delimited csv string in body of post method

Could someone help:  I have an  Angular 2 app with the following issue.  I would like to add functionality where the user can click a button and send a csv file as an attachtment via email.  From what...

View Article

Why is System.Web.Http.Validation.IModelValidatorCache is internal?

Hello,I am introducing a Castle Windsor based IDependencyResolver and registering nearly a dozen or so interfaces with the container.Now I want to pass some arguments to one of the API actions, and I...

View Article


How to secure web api request and response by HMAC

just read this article http://searchcloudapplications.techtarget.com/tip/How-to-secure-REST-API-endpoints-for-cloud-applicationsthey said :- Hash-based message authentication code (HMAC) is an option...

View Article

The remote server returned an error: (500) Internal Server Error.

Hi all,I am calling a PUT method but getting the 500 error. For post the same is working fine.Please tell if there is any other property that needs to be set here.Requesting...

View Article


Getting CORS Error while calling Web Api

Hi All,I am calling Web APi using following code from the this application...

View Article

Why cross domain call is restricted in Web API

normally cross domain call is restricted in web api and for that we have to enable CORS in web api but beside web api we can develop service with asmx web service and wcf too. wcf or asmx service can...

View Article


Bearer Authentication integration on 3 layers application (ASP.NET + Web API...

 Hi, I am fairly new to web application world. I am trying to setup an application which has 3 major components as follows: 1. Database which has user information and application related information 2....

View Article

API allow all CORS request, except for OPTIONS

I'm not sure if this problem is related to the fact my api controllers is inside an area inside a normal MVC project.I got a corshandler that allows everything. Can do ajax calls without problems (GET,...

View Article

'Content-Range' header unable to decode single unit value range

Hi,I have a legacy client app that can't be modified which uploads a file to a REST website in multiple chunks.We have just migrated to the latest Web API and on a PUT the...

View Article
Browsing all 4850 articles
Browse latest View live


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