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

HttpClient adding parameters?

Hi,Sell limit orderPOST https://www.bitstamp.net/api/sell/Params:key - API key signature - signature nonce - nonce amount - amount price - price How to add parameter by usingusing (var client = new...

View Article


my Web API won't run from a different directory

I have had a ASP.NET Web API REST service running on my website for a couple of years now.  It services Android phone apps that I write.  It works fine.  However I need to run a different version from...

View Article


Web API OWIN Host - Limit Request Size

Hi,I have an OWIN self host in an Azure worker role.  My code to host follows the tutorial:http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-apiI would like to be...

View Article

How to edit master/detail records with web api?

I get master-detail records from server, such as (order header & order items). i edit it (add, delete, update).  how to put it use web api?There are lot of article on the web about  a single row...

View Article

How to prevent page Reload on return from server

Help,When i call the following function from page behind it returns a decoded  string and proceeds to execute proceding statements before loading page once again ? Dim ReturnPaymentDetailsAsBoolean =...

View Article


RouteTable.Routes.MapHttpRoute only available in C#, not VB

I'm trying to build a Web API project using Visual Basic on Webforms.I've noticed that in the global.asax file, RouteTable.Routes.MapHttpRoute is an option which is only available in the C# version of...

View Article

WEB API 2 Identity tables

Hello,I am trying to use web api 2 with token based authentication. But I want to use same database which my MVC 5 site is using. As users are already created. I have renamed the tables in...

View Article

URL Rewriting..

Hello All,   I want to do URL Rewriting in My Website.Suppose My URL is"http://www.test.comand  i have country Like "US".when i click on "US" From My Website Google Map at that time i want Url...

View Article


Prevent a property on model from being set

Hi All,Is it possible to prevent one or more properties on a model which is passed into a POST request on the web API from being set?If i have public class Person{public int Age {get;set;}public string...

View Article


Existing Entity Framwork

Hello everyone,I have created an Entity Framwork connected to an existing DB. I add some tables (Product, Order) and created the controllers. Web API works well.When I add tables that are linked...

View Article

401 unauthorized error

I am trying to login using creditentials from the database table api_login, however I am unable to login in using the following code below:public class UserPro : IProvidePrincipal { private User...

View Article

In Web API 2 with OData, how to update a collection of navigation links ?

Hello,I was working on a project of SPA application with Web API, OData and DataJS. I have started a fresh new project with the update to Web API2 and the Javascript of the previous version.I have...

View Article

Multi Client Multi DB supported Web service

Hi I need to develop Web Service in .Net as per below requirement 1. Service should be consumed by any client like PHP/Java/.Net . 2. Database of the Service can be any (like MySQL ,SqlServer) 3....

View Article


Custom id/edit link with new key value segment in correct format

Hi,I am trying to create a custom ID/Edit link and add a segment (KeyValuePathSegment) in the link factory.  The value I want to add as the segment is a GUID, which for example should be formatted as...

View Article

Saving filepath into the database after uploading files via the web api

Hi all,I recently implemented an HTML5 web api that uploads file(s) asynchronously to the shared drive. For IE, I've used the traditionalBrowse-Submit functionality. For Chrome and Firefox, I've used...

View Article


404 Error in IE (only) on IIS

Hey guys,I'm trying to implement HTML5 drag and drop asynchronous multi file upload and have been able to do it locally on IE, Chrome and FF. I use Visual Studio 2012 with MVC4 Web API. I provide the...

View Article

when I was trying to use ExchangeService to get the email from the Inbox, get...

this code can excuted success on my local machine, but got this error when I ran this on the test running client.  below is my code: ServicePointManager.ServerCertificateValidationCallback =...

View Article


use HttpClient, WebRequestHandler with Net 4.0 causing deadlock?

When using HttpClient with .net 4.0, I am sometimes seeing task canceled exception when accessing the Task.Result property . See the sample code below. I have seen threads regarding deadlock on...

View Article

Expedia API call error.

Hi , I am using Expedia API version 3. while i am reading xml by my code then i got the error“Data at the root level is invalid. Line 1, position 1″.    WebRequest request =...

View Article

[DataMember] and [DataContract] are not know to compiler !! is there any...

Hi,I'm using Web API and try to use the attributes [DataMember] and [DataContract] but I got compiler error says "The type or namespace name 'DataContract' could not be found (are you missing a using...

View Article
Browsing all 4850 articles
Browse latest View live