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

Web API to retrieve SAS data from unix server

Hello,My requirement is to create a web API to connect and retrieve data from SAS datasets which resides on a UNIX server for my ASP.NET website. I am pretty new to this so a step by step tutorial...

View Article


Exposing Web API : Expose only specified services

Hi,I have 2 Controllers in my Web API. I have to expose only one controller globally . And the other Controller should be accessed only within my network .One thing I can do is Authentication, which...

View Article


Ninject IOC dependency Resolver issue

I am trying to use Ninject with Web Api in MVC 5.2 App. I added Ninject mvc 5  and WebApiContribIOCNinject through nugget.Here's what I changed in the WebCommon file:private static IKernel...

View Article

Missing reference Url.RequestContext.HttpContext

Hi,I'm currently working through this book: http://www.apress.com/9781430247258 Put together the solution in chapters 5 - 7 and I can't seem to resolve this reference Url.RequestContext.HttpContext....

View Article

Angular RestAngular IIS7 500(Internal Server Error)

I am trying to implement CORS...All of my Angular calls using RestAngular work when I call my webAPI except 1, This is the code...AngularJS App and config to support corsvar FarmMapsApp =...

View Article


Authenticating Azure Service on Preflight requests

Hi,I'm facing CORS issue accessing Web API service through Azure Service Bus. It appears that service requires authentication header for OPTIONS verb. But this preflight request is constructed by the...

View Article

2 services (WCF Web API and ASP.NET Web API) on one host

Preconditions:1) local DB with users2) console application (OWIN selfhost) + Controller (inherit from ApiController) for POST requests - import users to the DB:public class Startup { public void...

View Article

500 error when passing DataTable from WebAPI to Method in Class Library

I am receiving a 500 error while passing a DataTable from a WebAPI method to a referenced Class Library method  that does some work with the data.Is passing a DataTable like this not allowed? If so...

View Article


Why we should use WEB API?

Hi ,I want to inquire about WEB API , what are the main feature of WEB API, I believe its only give  interface in HTTP or to mobile device or any other additional benefits of web api .  Web Api is...

View Article


Early Binding & Different Servers

I am developing an application and try to design it so that the WebAPI can be deployed on one server while the web application that consumes data through the WebAPI can be deployed on a different...

View Article

To maintain same browser session at Http Web Request

Hi,I have a HTTP Web Request POST to vendor platform, there is two methods as below:- - Validation- Register System have to call #Validation# on first, retrieve a 'SessionID' response, then next will...

View Article

Remove data from an OData query based on permissions

Hi guysI want to be able to remove fields or ignore fields based on a users permissions, I can hide things in the UI but that's not really a satisfactory result if the user can just inspect the network...

View Article

Orchestrating an in memory HttpServer unit test

Hello,I am interested to self-host a Web Api service for integration testing purposes.The nearest thing I could find to such an animal is actually a pretty good read thus far: In memory client, host...

View Article


Adding Documentation for my web api project

hi,i created a web api project and published it on a remote servermy question is how can i add documentation to my current project? 

View Article

Error when passing object to WebAPI method

I have a WebAPI...inside this webAPI I reference a Class Library where I do a lot of my actual processing.For examplepublic static ObjModel WebAPIMethod(string a, string b, string c) {...

View Article


Calling a referenced dll from WebAPI works locally but not on server

I have a WebAPI that I have Cors enabled.My webAPI references a Class library that I do a lot of the processing in.calls between the WebAPI and Class library and also some calls inside the class...

View Article

Web API EF Problem with Post Method to work with array

Hello everyone, i want setup my Post method to take data which are sended as an Json array and write it in my data base.The Data looks like this one:[ {"User":"testuser","CPGRP":21321321, "Sex":"men",...

View Article


Unit testing Routes not working 404 or 406

We have an issue doing end-to-end integration testing, the routes do not seem to be connecting WebRequests with their respective ApiControllers.In one scenario, we are setting up with an...

View Article

Newbie question about ASP.Net Web API for REST

I have Googled tutorials about this web api because I only know how to create WCF Rest, but some questions I can't find the answer online so please bear with me.To create my first Web API, I have use...

View Article

Remove namespace in XML from ASP.NET Web API

[DataContract] public class Account { [DataMember] public string AccountName { get; set; } [DataMember] public string AccountNumber { get; set; } [DataMember] public string MaskAccountNumber { get;...

View Article
Browsing all 4850 articles
Browse latest View live


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