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

Forward a default aspx address to a ServiceController

I have a legacy client pointing to a particular web addess that was used as a web service in .net 1.1 as an aspx.http:/[domain]/LegacyService.aspxI am rewritteng this legacy service in Web API and...

View Article


Is Web API the best option?

Hello,There's currently a team of 5 programmers in mi workplace and the all have come up with some code excerpts that are used in many web applications such as sending an mail or uploading files to...

View Article


Model property - interface

Hi guys,i`ve faced with problem - if put in model (for post action) property that is interface, this property is null.In Asp.Net MVC i solve such problem within ModelBinder to deserialize necessary...

View Article

Web API Post hit before HttpWebRequest has finished streaming a large file

Hi all.In our app (Silverlight 5 out-of-browser client hitting a WebApi server) we routinely use an HttpClient for posting/getting/deleting and so on all our entities between client and server. This...

View Article

HTTP Services Security vs. HTTPS / SSL

I found this slidedeck comparing WCF and Web API:http://www.slideshare.net/adnanmasood/presentation-web-api-vs-wcfOn a chart comparing security support, a disctinction is made between "HTTP Services"...

View Article


Error on page usging google Captcha

i am using ASP.net C# and  My page is not open and error occurred   when i use google recapthca while its working properly on local server please help

View Article

Difference between Uri Attribute and Uri Parameter

In URI http://myserver/api/customers/1/orders?id=1,2,3,4,5 is it correct to say "customers/1/orders" make up/are part of URI attribute and "id=1,2,3,4,5" is part of URI parameter?CheersSandeep

View Article

Getting XML data as an HTTP Post

I am trying to POST xml data to my POST method on an API controller:The HTTP Post method on the controller:    <HttpPost()>    Public Function Post(<FromBody()> x As User) As...

View Article


JSON Formatting question

I am trying to modify my code below so the JSON output to be EXACTLY in the format below:{            “property_information”: {                        “tax_district”: ”Tax District”,...

View Article


Web API POST (JSON Response)

public HttpResponseMessage Post([FromBody]string value) { ActiveIngredients ai = new ActiveIngredients(); ai.Name = value; db.ActiveIngredients.Add(ai); db.SaveChanges(); return new...

View Article

Transactional web api batch request with RavenDB

Hi all,We have a setup in which we should perform multiple actions at once in one transaction. Meaning that if one fails, none of the actions should be executed on the RavenDB Database. I cannot seem...

View Article

Web API with TaskCompletionSource to handle COM event

Hello,I am working in a Web API project (.NET 4.5) where this API wil use a COM Component to make its work. In addition, this component signals its completion using events.So I decided to create a task...

View Article

After Application Pool Recycle Bearer Token Denied

HiI am hosting a web api using katana security middleware on an IIS server using the embedded authorization server (SimpleAuthorizationServerProvider). All works fine I can authenicate users they get a...

View Article


asp.net mvc web api UserManager class work

Hi! I am new in asp.net mvc web api. Now I implement authorization with token. I use UserManager with my custom UserProvider class (implement IUserPasswordStore). When I call...

View Article

page size error

I am trying to add page-size to the web api below and but I am experiencing the following error:ExceptionMessage":"The action 'get' on controller 'Test' with return type...

View Article


login with facebook or gmail how would this scenario work

I am just getting into this so I am new but I have a simple question that I can't get my mind around: Let say a user registers and logins into your website using Facebook . All is well but if you then...

View Article

Logging into Web API service with mobile device

I'm building a Web API that provides various services for game development. Both game developers and players have access to the services through a web site. Through the web site they can create their...

View Article


OData4 WebApi actions/functions Design Issue

Hi thereIt seems that there is a design issue in actions/functions implementation in new OData4 WebApi.I have followed...

View Article

GET and POST from same controller

I would like to be able to call GET and POST request from the same url (api/test...), but I am currently getting current context error on the following line of...

View Article

how we read WSSE header in web method?

how we read this soap request header and authenticate using web method (Asp.net with VB) ?<soap:Envelope...

View Article
Browsing all 4850 articles
Browse latest View live


Latest Images

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