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

Upload image plus other data using web api

hii have file upload and other controls. I want to do a submit/ajax call to web API POST method.then send object data to database, file goes to the server foldercurrently i can read  Multipart Content...

View Article


[ODATA] - Custom Formatter

Hello,I have a Odata service and I want to add some informations in the result serialization. For example : add the society name, a date, and so on.I search help, sample, some information for...

View Article


web api 2 removal of schema information from XML

I've added this to my 4.5 web api 2 C# project to use the XMl Serializer.GlobalConfiguration.Configuration.Formatters.XmlFormatter.UseXmlSerializer = true;I've added this per another post to clean up...

View Article

[ODATA] - JSON.Net

Hello,I want to use JSON.NET librairie for the JSON serialization in a ODataSerializerProvider and ODataDeserializerProvider. Do you have some ideas, samples, sources for help me.Thanxs a lot.Best...

View Article

before_save functionality in asp.net web api

I am trying to switch a rails application to asp.net web api and run into some troublesSo I have 2 entities like:public class Player { public int Id { get; set; } [Required] public string Name { get;...

View Article


WebAPI with WCF Service

I have read several articles about the difference between WCF and Web API technology. I have existing WCF service in which I am adding functionality to listen for HTTP Post messages from client. I am...

View Article

OData Client question.

Hi , I am using Odata V4 autogenerated client and trying to explore how to add custom parameter to my post request ( AddToXX) method.Any inputs are much appreciated.

View Article

Web API: XmlMediaTypeFormatter: ModelBinding fails when posting XML using...

I've been putting together a service using Web API, and I began testing some of the functionality recently. This particular service uses XML and ISO-8859-1 as an acceptable character encoding. I've...

View Article


Binding Identity 2.0 Profile Information to WPF Client

Hello,I have successfully built an Web API project, using Identity 2.0. I could also add a custom profile information, referring to some articles like this...

View Article


Getting User Infor in ASP.NET Web API with Azure AD

We are developing a Single Page Web application using ASP.NET Web API, Azure AD, and AngularJS with Visual Studio 2013 and .NET Framework 4.5.When you create a new application in VS 2013, you can...

View Article

creating Web API 2 service with VS 2013 targeting .NET 4.0, is it possible?

IIS for my production project environment is limited to .NET 4.0.  Is there a way to build & deploy Web API 2.0+ with Framework version 4.0?  Thanks

View Article

Generalized names in output

Hi,WebAPI uses different strategy than MVC for property name which is invalid. I want to control name of the key. Because at client side it is very difficult to check which property is invalid. There...

View Article

how to transfer values from winforms to mvc using web api ?

Hello Experts,I am pretty new in MVC and Web API.But i have a requirement.I need to send the login and log out time of system (in win forms) to mvc application and save those values ,so basically i...

View Article


How to reuse data retrieved for validation in the action?

I have specific object validation (I'm open to anything that keeps validation out of the action but allows me to reuse the same data from the validation in the...

View Article

WebAPI and C# dynamic keyword question

Hi Folks,This is not an issue, am just trying to get an understanding with what is happening when using the dynamic keyword in WebApi methods.Using Mvc 5.2.0,  WebAPI 2.2/5.2, JSON.Net 6.0.4 in...

View Article


Enable CORS on Visual Studio SPA Template???

Okay, for the life of me, I can't get this moving...  I want to essentially enable CORS on the Visual Studio 2013 SPA Template.   Why?  Because I want to have other clients that connect to the...

View Article

how i use exceptional handling in this asp.net code

protected void Button5_Click(object sender, EventArgs e){ SqlConnection con = new SqlConnection(con_str);SqlDataAdapter ad1;DataSet ds = new DataSet();ad1 = new SqlDataAdapter("select * from table1",...

View Article


Calling POST Web API from Silverlight 4

I created a Web API that will receive post requests to asynchonoulsy upload files. The code comes form a great article about web api:...

View Article

How to convert text string to JSON or XML

Hi All,I have excecuted third party API services it is returning flat text but not returning XML or JSON.How Do I convert that to JSON or XML ?Example of text...

View Article

How to Read API Response

Hi all,How can I read the JSON response I get from an API call. Below is some code from Mailgun that executes a POST method, I can see the return type is a Response object but how can I see that data,...

View Article
Browsing all 4850 articles
Browse latest View live


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