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 Articleserver 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 ArticleHow 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 ArticleHow 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 ArticleIssue 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 ArticleUnitTest 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 ArticleHow 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 ArticleRegarding 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 ArticleHow 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 Articleweb 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 ArticleWeb 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 ArticleWeb 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 ArticleWhen 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 ArticleHow 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 ArticleHandling 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 Articlewhat 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 Articleweb 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 ArticleWeb 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 Articleweb 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 Articlehow many way we can enable cors
How to enable cors for full project and how to enable it for few action?
View Article