tagged [web]
Web Api Controller in other project, route attribute not working
Web Api Controller in other project, route attribute not working I have a solution with two projects. One Web Api bootstap project and the other is a class library. The class library contains a ApiCon...
- Modified
- 6 Jan at 07:18
How to get object using Httpclient with response Ok in Web Api
How to get object using Httpclient with response Ok in Web Api my web api like I am using HTTPClient to request web api as mentioned below. ``` var client = new HttpClient(); string json = JsonConvert...
- Modified
- 28 Aug at 09:56
Exception using System.IdentityModel.Tokens.Jwt 5.0.0.127 in Web Api 2 built on .Net 4.6
Exception using System.IdentityModel.Tokens.Jwt 5.0.0.127 in Web Api 2 built on .Net 4.6 I have updated my existing Web Api project to use the latest System.IdenityModel.Tokens.Jwt package and I am ge...
- Modified
- 20 Aug at 09:18
Apply [Authorize] attribute implicitly to all Web API controllers
Apply [Authorize] attribute implicitly to all Web API controllers My application is setup where all requests except login must be 'authorized' using the authorization attribute in Web API. E.g. and on...
- Modified
- 17 Jan at 12:15
WebApi attribute routing - Bind route parameter to an object for GETs
WebApi attribute routing - Bind route parameter to an object for GETs Currently for every GET I have to manually create a query object from the route parameters. Is it possible to bind directly to a q...
- Modified
- 15 Aug at 23:30
Pass multiple complex objects to a post/put Web API method
Pass multiple complex objects to a post/put Web API method Can some please help me to know how to pass multiple objects from a C# console app to Web API controller as shown below? ``` using (var httpC...
- Modified
- 21 Jul at 23:55
Where do I set the CookieContainer on a Service Reference?
Where do I set the CookieContainer on a Service Reference? When adding WebService Reference to an ASMX Service on a .NET 2.0 project for example, there exists, When adding ServiceReference to an ASMX ...
- Modified
- 23 May at 11:46
RoutePrefix vs Route
RoutePrefix vs Route I understand that `RoutePrefix` doesn't add a route to the routing table by itself. On your actions you need to have a `Route` attribute declared. I am having a hard time finding ...
- Modified
- 19 Aug at 20:0
Response to preflight request doesn't pass access control check (Angular2)
Response to preflight request doesn't pass access control check (Angular2) I am getting below error on call to REST Web API in Asp.net. [http://localhost:54859/api/PostData](http://localhost:54859/api...
- Modified
- 11 Nov at 12:16
FromBody string parameter is giving null
FromBody string parameter is giving null This is probably something very basic, but I am having trouble figuring out where I am going wrong. I am trying to grab a string from the body of a POST, but "...
- Modified
- 6 Dec at 10:43
POSTing JsonObject With HttpClient From Web API
POSTing JsonObject With HttpClient From Web API I'm trying to POST a `JsonObject` using `HttpClient` from Web API. I'm not quite sure how to go about this and can't find much in the way of sample code...
- Modified
- 14 Aug at 07:8
HttpClient Headers vs HttpRequestMessage Headers
HttpClient Headers vs HttpRequestMessage Headers When should we use headers in the HttpRequestMessage object over headers in the HttpClient ?? We have need to add Authorization (always changing) and f...
- Modified
- 3 Oct at 13:29
Calling Web Api service from a .NET 2.0 client
Calling Web Api service from a .NET 2.0 client Is it possible to call a Web Api method from a .NET 2.0 client? Referring to the guide here: [http://www.asp.net/web-api/overview/web-api-clients/calling...
- Modified
- 5 Jul at 18:21
WebAPI HttpActionExecutedContext get controller name
WebAPI HttpActionExecutedContext get controller name I need to get the controller who triggers a filter attribute. I have the following filter: ``` public override void OnException(HttpActionExecutedC...
- Modified
- 8 Jul at 02:11
Route parameter with slash "/" in URL
Route parameter with slash "/" in URL I know you can apply a wildcard in the route attribute to allow `/` such as date input for example: The problem with wildcard is only applicable to the last param...
- Modified
- 29 Apr at 05:41
EC2 Instance Cloning
EC2 Instance Cloning Is it possible to clone a EC2 instance data and all?
- Modified
- 3 Apr at 19:50
500 internal server error at GetResponse()
500 internal server error at GetResponse() I have a heavy traffic aspx page calling a web service upon every user`s request as follows. ``` string uri = "Path.asmx"; string soap = "soap xml string"; H...
- Modified
- 24 Apr at 14:34
Attribute Routing and CreatedAtRoute
Attribute Routing and CreatedAtRoute I am trying to convert my Web Api project to use attribute routing. One thing I am not understanding is the CreatedAtRoute method for a POST request. In my WebApiC...
- Modified
- 23 Jan at 20:12
Web API model binding
Web API model binding Given the ASP.NET Web API route: Which maps to the following ApiController action method: With the model class defined as: When I post JSON `{ "Name": "Testing" }` to the URL `/e...
- Modified
- 19 Feb at 06:9
How to return JSON in an ApiController for a single method?
How to return JSON in an ApiController for a single method? Currently, my `ApiController`s are returning XML as a response, but for a single method, I want to return JSON. i.e. I can't make a global c...
- Modified
- 9 Feb at 04:31
Using MSBuild to publish webservices
Using MSBuild to publish webservices How do I publish a Web Service to a server with MSBuild?
- Modified
- 12 Nov at 23:17
Read Variable from Web.Config
Read Variable from Web.Config How can I add and read the value from file?
- Modified
- 9 Nov at 10:31
How to post SOAP Request from PHP
How to post SOAP Request from PHP Anyone know how can I post a SOAP Request from PHP?
- Modified
- 22 Jan at 22:36
how to detect search engine bots with php?
how to detect search engine bots with php? How can one detect the search engine bots using php?
- Modified
- 31 Mar at 05:38
What is WebResource.axd?
What is WebResource.axd? I have troubles with blowery web and WebResource.axd. What is WebResource.axd?
- Modified
- 23 Jul at 12:27