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

children could not be evaluated error - calling Web API from JQuery

I created a Web API and I'm sending the data back in XML format. I'm calling the API from JQuery on an HTM page. When I debug it, I get the following error the URL call. [children could not be...

View Article


Upload method is it correct?

I have a method that will upload files to AWS S3 - is this method correct?[HttpPost] publicActionResult GetDocumentCollection(HttpPostedFileBase[] _GetFiles)         { ------ upload files to Cloud...

View Article


Need a list with the actual files or arraylist of files

I have a method and I need to pass a group files to another method, please help me resolve this...[System.Web.Http.HttpPost]public ActionResult GetDocon(FormCollection Form) {   var Model = new...

View Article

Testing a web service with a netTCP binding

Hi,I am a tester trying to test a webservice. So thought of giving the developer forum a shot. We have a webservice which has a netTCP binding. Tools like SAOP UI,HP service tests does not support...

View Article

Image may be NSFW.
Clik here to view.

get token OAuthor from linkedIn ?

hi,first, you can see the code below:var client = new HttpClient(); client.BaseAddress = new Uri("https://www.linkedin.com/"); var responseLinkedIn =...

View Article


DefaultHttpControllerSelector not finding any controller, "Not Found" response

I am having trouble using the DefaultHttpControllerSelector and HttpConfiguration classes. Take a look at the simple example code below.I am trying to create a DefaultHttpControllerSelector that will...

View Article

Access is denied for everything but "localhost"

In a WEB API 2 OWIN self host project I get "Access is denied" exception thrown for anything other then localhost in:string baseUrl = "http://localhost:2500";WebApp.Start<Startup>(baseUrl);If I...

View Article

Stop Model Binding after the List count > 15000

What is the best way to stop model binding after the List<object> being bond count is > 15000? In other words, we do not want to bind 30000 objects in one request.

View Article


My Web Api client is blocked after a single GET request, why?

Hello,I wrote a simple client for my web service with WebApi as explained in this tutorial: Calling a web api from a ..NET clientThe first request (GET a table) is executed problem-fee; table data is...

View Article


Consume Web API in MVC application throgh proxy class

HI,I am trying implement the Web API service for MVC application. But have to implement in layer wise formation likecustomer(cshtml) ----call---> EnviormentController(MVC) ---call--->...

View Article

Get Cnn string from model...

I am trying to get a connection string from the web.config file and keep getting an null error message;config modelpublic static class AConfig {        public static string getFileNe()        {...

View Article

uploading multiple large files and getting max error message...

I am trying to upload many files, and I am getting the following error message:Error Message: System.Web.HttpException: Maximum request length exceeded.any ideal how to fix this error message when...

View Article

Help passing files to another method...

I have a method where I am trying to pass a collection of one or more files to another method. I need help passing files to another method.  The method SendFiles_AWSS3 return aThree-dimensional array...

View Article


Which project template to use for building a new Restful web services?

Hi, I'm using VS2012.These 2 links shows 2 different project templates to use for building a Restful API.  Which one should I use and follow?  The first one creates a MVC project and the 2nd one I...

View Article

Web API 2.0 - Host and deploy Web API 2.0 in production environment

Hello everyone,I'm about to deploy one of our .Net Web API 2.0 web service in coming week. I'm wondering what security measures needs to be considered while deploying it over the server.Server...

View Article


the issue of (de)serializer in asp.net web api

Hi,I am using mongondb and asp.net mvc 4, i created a POCOs class to generate tables on mongodb, the every class have DataContract,DataMemeber attribute.  For some fields of POCOs class, i would like...

View Article

Web API security and authentication system

i want to develop layer with web api which will co exist in our asp.net web application. from various part of our web apps we will call web api function from server side code and client side jquery...

View Article


Serving additional files through web api project

I am updating a webpage to web api. The original webpage was acting like a web service by accepting an xml that provided variables values to the webpage onload which in turn produced files in an output...

View Article

Integrating or communicating Asp.net webapi models with business logic

how do i write a service in Asp.net webapi in which models should access my business logic and get the data. i donot want to expose my data with the third party so i should go with the 3 tier...

View Article

controller's method return file web api ?

Hi,I am build a web api cors, i have a <img src="http://localhost:89/api/file/{id}" />, you can see the src attribute which invoke a get method of FileController.I tried to the code as below, it...

View Article
Browsing all 4850 articles
Browse latest View live


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