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

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


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


How people work with web api and asp.net mvc

this way i work with asp.net mvc. i have controller and model & view. just call action method with jquery and read data and update UI. but i like to know how people work with asp.net mvc and web...

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

500 Internal server error when trying to access Web API

Hello All,It created a webapplication which has 1 dropdown. When I select the country, I am making json request to call the WebAPI method and return the states related to the selected country.When I...

View Article


step by step example for web api to post data and get result

Hi eveyone.I have one database base method which takes two parameter username and password and return 0 or 1 in response.I am completely new to web api.So please show me step by step. to create web api...

View Article

Web API test client?

Is there some test client for Web API, something like WcfTestClient in Visual Studio?As all Web APIs are about sending HTTP requests and receiving response, it looks like you actually could create an...

View Article

How to use web API in asp.net 4.0

Dear All,I am implementing BillDesk payment gateway,I am not able to implement "Online Transaction Query API", the provided us api url. Please help me implementing the web api/api in asp.net4.0. Please...

View Article


Attempt by security transparent method...

I am trying to open up my WebAPI to be accessed across domains...I referenced System.Web.Http.Cors and publishedmy WebAPI...now I'm receiving this error and I have no idea how to fix it.

View Article


WebApi Controller Exception Handling

Hi i have small problem with understanding the flow of WebApi. The layers of my application look like this EF -> Repository -> Services -> Services Interceptor -> Controller (WebApi) ->...

View Article

Web api and cross domain call

i never work with web api. so i like to know if anyone discuss what does it means web api & cross domain call with sample situation. please explain in details with sample code.

View Article

web api 2 standalone added to xml declaration

I've added this to my 4.5 web api 2 C# project to get the xml declaration tag back on.GlobalConfiguration.Configuration.Formatters.XmlFormatter.WriterSettings.OmitXmlDeclaration = false;But how does...

View Article

Simple access control to WebAPI and WCF using the same token

I have a set of services that I would like to offer to internal applications using both WCF and WebAPI.  That is because client systems may not have the ability to do one or the other.This information...

View Article


Upload File Using a Complex Type

Hi,I have used this Tutorial (http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2) to create my implementation of the file upload:public async...

View Article

How to show Exceptions properly shown by WEB API Project

Hi All,I have created Web API Project and this project is using class library project where all the code is residing. And in the class library project I am throwing business exceptions. I have deployed...

View Article


Web API and SAP OData

Hello All,My team and I are having a bit of trouble finding resources on making calls to an SAP NetWeaver Gateway OData service in ASP.NET MVC 5.I am under the impression that Web API is the best way...

View Article

ASP.NET WEB API without Visual Studio?

After reading http://msdn.microsoft.com/en-us/library/vstudio/ms751457(v=vs.100).aspx I discovered I could create a single source code file with the ".svc" extension and copy it to a public IIS...

View Article


Browse list of web api on a server?

Just like how in IIS we can browse to a folder to see all the web services, how do one go about browsing a list of webapis on a server.  I have deployed a list of webapis on the qa server but somehow 2...

View Article

Unexpected JSON token while reading DataTable: StartObject - But DataTable is...

I'm having problem with receiving response from MVC api service.I'm posting to mvc ApiController object that contains DataTable property. I had a problem with posting that object to api (i was...

View Article

Bootstrap problem

Hi,    I am using bootstrap and angularjs in WebAPI.  When I use the following code,<html><head ng-app>    <title>Date Ctrl</title>    <script...

View Article
Browsing all 4850 articles
Browse latest View live


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