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

Image may be NSFW.
Clik here to view.

ORA- 12154: TNS:could not resolve the connect identifier specified ASP.NET...

I am trying to host the Web API that was published in the DEV server in to the TEST server.I used the published method as File System in DEV and copied those folder in to Test server and tried to...

View Article


server local folder image severing to android code as web api service

Hello,I have been trying to implement severing image to android , from local folder of server . when I access my web api it has to server an image to android code .  i tired with multiple code...

View Article


How to return my custom class from my web api action

suppose this is my class which i like to return from my action public class Response { public bool IsSuccess { get; set; } public string Message { get; set; } public object ResponseData { get; set; }...

View Article

How to call my web api action by http cient

<div class="post-text" itemprop="text">my web api action return data bit different way. see my action code[HttpGet] [Route("GetByID/{customerID}")] public HttpResponseMessage GetCustomer(string...

View Article

Issue for Deserialize object

Hi,I am using Newtonsoft.Json package to deserialize the json object, But my json object contains the special characters like "\" and "'" (apos) with in it. for example in "container_type_str" contains...

View Article


UnitTest for WebApi Failed in VSTS

I have written simple unit test for my rest api which is passed succesfully in my local machine but if i am running it in visual studio team services(vsts)  it fails with following error...

View Article

How to return customer data with HttpResponseMessage

HttpResponseMessage r = new HttpResponseMessage(); r.StatusCode = HttpStatusCode.OK; r.ReasonPhrase = "SUCCESS";now how could i pass my customer object by HttpResponseMessage class to client side ?one...

View Article

Regarding web api and send/receive to and from json to action

I just add the following in App_Start/WebApiConfig.cs class in my MVC Web API project.config.Formatters.JsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/html")i just like to verify...

View Article


How to pass customer object to web api action

i am trying to perform crud operation by web api. so i pass customer json from client to web api action.this is my json which i passed from client to action.{"CustomerID":"James","CompanyName":"jame...

View Article


web api security for use by salesforce

Hello,I am new to web api and new to salesforce.  We are writing some services to be used by salesforce connect.  As part of the salesforce setup you can provide credentials, odata security info, anon...

View Article

Web api listener accept json similar to below example

I am new to c# and web api . Suppose my web api listener want to accept below structured data how should I write the c# method{"Patient": {"UniqueID": "WH555444","Name": {"LastName": "Doe","FirstName":...

View Article

Web API Authentication

Hi,    I am using Web API for web project in which UI is done by angular js. I want to add Authentication. Can you say, which way is best and how to do it?Thanks in advance.

View Article

When to enable Cross Origin Resource Sharing (CORS) in web api

i develop a web api running and publish in IIS in pc1 and when i call that web api from pc2 then it works but i did not enable any CORS.......so how it is working ?so tell me in what kind of scenario...

View Article


How create asp.net web api on web developer 2008/2010 or sharpdevelop

I have no opportunity to use full visual studio 2010, 2012 or later for simple use of web api. So I would like to use it in other way.So I would like to know does web developer 2008 or 2010 support web...

View Article

Handling exception thrown during controller Initialize override.

I have a base controller class that's inherited by several controller classes. The base class overrides Initialize to do some preparation so that any action handler will have access to some important...

View Article


what to set in action level to return json?

We set some instruction in webapi config file to return json in response. So tell me can we set some instruction in action level to return json instead of webapi config file.

View Article

web api client and json

What kind of instruction we need to send from web api client to say i need response in json format from web api.

View Article


Web api and MediaType

just see two set of code and tell me both will do the same job?just add the following in App_Start/WebApiConfig.cs class in my MVC Web API project....

View Article

web api action which has two different type of parameter

I have one web api action which take two parameter one is string type and another one is customer type object. I like to know how could i call that post type action where i can pass one string value...

View Article

how many way we can enable cors

How to enable cors for full project and how to enable it for few action?

View Article
Browsing all 4850 articles
Browse latest View live


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