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

Normal WebService works but same won't work when I convert to WEB API

In normal web service xml request works very well and converts as class object. Bust same code when I convert to WEB API it doesn't convert xml request as class object.Below is the code for normal Web...

View Article


Consume Web API: Desereliaze Nested Arrays

Hi guys,I'm trying to consume the following set of JSON type data: {"Page": 0,"PageSize": 0,"TotalResults": 648,"Items": [ {"Id": 775927970,"StartLocalTimestamp":...

View Article


Asp.net webapi.selfhost certificate generation

I have an webapi.selfhost configuration that I need to install on multiple machines to run as a mini server on multiple machines. Each machine running selfhost needs to have a certificate. Do I need to...

View Article

WEB API With EntityFramework - Post multiple parameters

Hi, I need a help.My Project has the following structure:Project.Domain (Models: Person) Project.Data(Mapping Person and DataContext) Project.API(Controllers, etc) In my class Person: public class...

View Article

value saved is always 0 (zero) in MySqlCommand Insert statement!

Hi All,I've wen api application, this is my model:public class past_med_hist { public int weight; }and this is my web api HealthController: public class HealthController : ApiController { string...

View Article


How to edit values for update from details view for update purpose?

Hi All,I've this method in the model to return one record:public List<users_tbl> getOne(int id) { List<users_tbl> _lstUsers = new List<users_tbl>(); MySqlConnection con = new...

View Article

Post/Put data from Web API without entity Framework

Hi,I am new to Web API's. I have a mvc form for getting employee basic details.I am trying to submit the form and insert records to database without Entity Framework through Web API.Any samples or...

View Article

Can not configure multiple controller with MapODataServiceRoute in...

Dear All, We are facing error while hitting the url. Code is given below:using ODataMovies.Models; using System.Web.Http; using System.Web.OData.Builder; using System.Web.OData.Extensions; using...

View Article


An error in route constraint web api

in Web API 2 project I have an API like this.[HttpGet][Route("Resource/query-{q}/page")]public IHttpActionResult search(string q, [FromUri] pageParams p)when is send the encoded value of below...

View Article


Image may be NSFW.
Clik here to view.

Consume Web API: BulkCopy to SQL DB

Hi All,I need some good pointers on how to copy JSON data consumed from a web API and store it into a SQL DB. So, similar to my other post, I have an API that produces 2 sets of JSON type data with...

View Article

escape characters in json not being preserve after ajax call

Hello,I have a web API that returns data to a web page in json format. One of the items in the json is: "Title":"blah blah blah". One title I encountered contains a quote being used for inches: "1"...

View Article

problem with my first web api call

Hi I have web api application with Visual Studio 2017.  I have set the bin folder  to be a new application in IIS with some name like aaa.  In the web api I have  controller with  name bbbController....

View Article

Problem calling web api

hi,I have controllernamespace MyServer.Controllers { public class Status1 : ApiController { // GET api/<controller> [HttpGet] public IEnumerable<string> Get() { return new string[] {...

View Article


Ways to read data from HTTP request object in ASP.NET webapi

Hi,I have been trying with Datatable server side processing. Have written a Webapi POST method. It take SearchRequest object which Jquery datatable would take care of sending those details. However i...

View Article

Redis cache is now in built in web api

eventually i got a link https://docs.microsoft.com/en-us/azure/architecture/best-practices/caching#using-redis-cachingwhich using redis to cache data. so tell me Redis cache is now in built in web api...

View Article


Format response WEB API

dear reader,I am new to the Web API structure within MVC, so this will be an easy question, however, I was not able to find an answer on the internet yet. This could be the case because I am not used...

View Article

Image may be NSFW.
Clik here to view.

Consume Web API: Copy Multidimensional Array Values into SQL DB

Hello People,Continuing from my previous threads, assuming I have the following JSON response:"Items": [ {"LocalTimestamp": "2017-07-18T17:27:36+08:00","Id": 658796613,"Description":...

View Article


Twitter API [1.1] Authentication Request Severe Problem ---

Hello All. Need good amount of help on this one. Basically in my application, I am required to access twitter api, fetch the top 50 posts as per a specific search tag and display them. Naturally the...

View Article

Web API PID

Will a Web API, production always run on the same process id (PID)?

View Article

Error "invalid_grant" when i send refresh token to web API

My request body :grant_type : "refresh_token"refresh_token : "abcdef"client_id : "123"client_secret : "secrect"But Oauth2 server response "invalid_grant" . 

View Article
Browsing all 4850 articles
Browse latest View live


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