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

Uploading file with AJAX call

Hello,I'm working on a web API. I've got a method for uploading files:public async Task<HttpResponseMessage> PostUploadFile([FromUri] string firstName, [FromUri] string lastName, [FromUri] string...

View Article


web api with multiple get and post type actions with custom action name...

i have develop a sample web api controller with multiple get and post type action with custom action name using attribute routing.now i like to know how could i develop the same without using attribute...

View Article


Convert body content to word

Hello folks! I am using Fiddler to inspect third party service (below) I can see the following line of code in the Fiddler:...

View Article

400 status error handling with Web API 2 and Forms application in same...

 I have a project that is both has both a Web API 2 service and aspxforms.  But I am trying to set up error handling so I can send users to a 404 error page if they try putting in fake page in the url....

View Article

Enabling CORS

How to enable to CORS on server side(ASP.Net WebAPI) and client side (ajax call)?Though it has been done this way it seems it is not working: Any help would be appreciated.public static class...

View Article


SoapDocumentMethod(OneWay = true) resulting in different HTTP status return...

If my method gets called with SOAP v1.1 (text/xml) the response is 202 which is what I expect based on the OneWay tag. If it gets called with SOAP v1.2 (application/soap+xml) the response code is 200.Why?

View Article

Can't connect to GoogleMapsAPI when 'target machine actively refused it'?

I'm using the GoogleMapsAPI to return some location data which I am using in a ASP.Net web application. The application sends a postcode (similar to Zip code) to google which returns information...

View Article

Sapui5 integration

Dear gurus<br> I hope you are doing well<br> Currently I am working on sapui5 application as the front end app and one of the disadvantages of it that its limited to odata version 2 so...

View Article


Issue with webapi fileupload

I have issues uploading a file using webapi C#. The "System.Web.HttpContext.Current.Request.Files" always returns zero. Any guess on where i am going...

View Article


Background Tasks or Process for Self hosted API with Console Application

Hi All,I have created a self-hosted Web API using Console application, now I want to have a background process/task which would check a flag or value in the database with some interval and based on it...

View Article

How to return custom type from web api action

see this article http://www.codeproject.com/Tips/1136105/Web-API-Return-List-of-Custom-Type-JSONpublic class StudentController : ApiController { public ResponseModel Get() { ResponseModel...

View Article

setting file size limit in web API

Hello,I am trying to set the file size limit for uploads in IIS. I'm running Windows 7, developing in Visual Studio 2015, and I've got IIS 6.I'm developing a web API and I *think* it's running in IIS....

View Article

customizing error message for upload file size exceeding limit

Hello,I have a web API that allows for file uploads. I want to set a limit on the file size for the uploads. I've found that I can do so in the web.config file as follows:<httpRuntime...

View Article


CacheCow.Server Issue with Asp.Net WebAPI

Hello, I have create a ASP.Net Web API Project . I create w simple method that returns w list of products :                  [Route("api/products")]public IHttpActionResult Get() { List<Product>...

View Article

Image may be NSFW.
Clik here to view.

can't deploy my web API

Hello,I created a web API in Visual Studio and now I want to deploy it to our remote server. I'm trying to setup a publish profile but it's not able to connect. Here is a screen shot of the settings...

View Article


can't connect to web API after deployment

Hello,I just deployed a web API with security token authentication. I also setup a little test page to see if I can get the security token. When the API was running on my local machine, the URL I gave...

View Article

Would like to create a client consuming Web API with ASP.NET Core MVC and...

Hello,I currently have a Visual Studio, c#, client consuming program that consumes web services and displays DataGridViews.I would like to create a new program with the latest technology of ASP.NET...

View Article


WEB API 405 ON POST Method

iI have a problem with webapi 2 on the production: With the POSTMAN on development server and Production server anything is ok, but when trying to integrate  the webapi  we have 405 error: Method not...

View Article

What does this Internal Server Error (500) mean?

Hello,I just deployed a web API to an AWS server. Just for test purposes, I built my main controller with a Get method that simply logs to a log file and sends back a response of...

View Article

Deploying ASP.NET Webhooks on web server with IIS7

I have read through a few .NET Webhooks tutorials and since it is relatively new for .NET the examples are pretty limited.  I followed the tutorials to create a Webhook project in VS2013.  When I...

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>