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

android base64.encodeToString string to asp.net webservice

Dear team,       i am sending a base64.encodeTostring string to c# webservice. but i am not able to convert in to bytesMy asp.net code[WebMethod] public String uploadprofile(string username,String...

View Article


How To Test Web Api Locally with Mobile Phone

Hi, I have created Web Api project and now I would like to know how to test the Web Api with Mobile Phone (Android/iOS).How to set up the Testing environment for this.Thanks

View Article


Calling a Webapi with Header not working

I Want  to call suppose signin api with Httpclient.The http client takes a parameter "key "in Header along with username and password in body.Can you suggest how can i add this parameter in header and...

View Article

Best Practices for Returning DateTime

Hello everyone and thanks for your help in advance.  I am developing a WebApi2 application that returns many dates with the JSON data.  This data will be consumed by various applications over differing...

View Article

How to design Admin and user Login base on Web Api

Hi, Just would llike to know how to handle this case base on Session Approach.I have 3 groups of user ; 1) Admin user 2) Buyer 3) Customer1) Do I need 3 tables each for Admin User, Buyer and...

View Article


Calling a Stored Procedure from OData and Return Result

Hi,Currently I am in process of enhancing the REST API to OData Services. I have Edms for Few Tables and 1 Stored Procedure (to start with). I can successfully call a Table data in Odata.Now, How do i...

View Article

Convert PHO to VB.net

HiCould anyone please convert this PHP code to vb.net?"StringBuffer sb = getOffer("resources/jobfeedoffer.xml"); String user = "user"; //provided by StepStone String password = "password"; //provided...

View Article

web api request to /token works but request to other api controllers throws 404

I am a little puzzled with issue here.I have enabled CORS by adding the following code in startupvar enableCorsAttribute = new EnableCorsAttribute("*","Origin, Content-Type, Accept","GET, PUT, POST,...

View Article


Single Sign On for Web Api App

I have a Web API app that I need to setup with security.  By default, I have another Web API app setup to issue JWT upon successful authentication.  How do I setup the App I need security on to the Web...

View Article


windows temp .out files filling up with csc logs

Hi All,We are running a .net web API with data contracts on IIS on windows server 2008. We noticed that C:\windows\temp folder was filling up with many .out files. We have 2 million of these...

View Article

Image may be NSFW.
Clik here to view.

Tutorials on Web API with asp.net core

I'm looking for good and up to date tutorials on making a web api in asp.net core. But I have not been successfull in finding many tutorials that use Visual Studio 17(or is recent).I would be very...

View Article

Ajax call to execute WebApi method that is returning complex object.

I have a Ajax call to a WebApi method. My Call is looks like this:function CalculateAmortizationScheduleAPI() { $.ajax({ url: 'http://localhost:62815/v1/APR/Calculate', type: 'POST', dataType: 'json',...

View Article

How to define Basic Authentication in my Web API in the Azure ?

How to define Basic Authentication in my Web API in the Azure ?I´m using the Visual Studio 2015 and a solution Web API published in Azure...My solution do references the DNX 4.5.1.Solution DNX SDK...

View Article


The remote server returned an error: (401) Unauthorized.

net.4 web forms membership and authorization.i am trying to get response between 2 pages on the same domain.tried to use webClient and HttpWebResponse.on both cases i get The remote server returned an...

View Article

Chiamata ajax a web form con javascript

Buongiorno a tuttiHo un problema con una chiamata ajaxPremetto che non sono un esperto ed è la prima volta che mi cimento con le chiamate ajax.Vengo al dunque. Ho questo web form con questa...

View Article


Random Issue with model binding not working for the same request

Hi,I'm currently working on a new web api project that will be called from an Azure function. I was able to get the azure function to call the web api correctly but in the last day or so i've been...

View Article

How To accept xml Payload request in webapi?

Can any one please explain how to accept the xml data payload thrrough webapi post request because when we send the payload request i need to validate the data, so can anyone please explain how to...

View Article


Access to IIS 6.0 with debugging but Access denied with compiled file

Hello everybody,I want to access IIS 6.1 on Windows 7 to retrieve the physical path of an url.The code below is working fine in debugging mode with Visual Studio 2013.But it fails when I run the...

View Article

declare httpclient in aspx page

Hi Guys,I want to declare httpclient in aspx page in asp.net. Is it possible?. I want to show api results in aspx page not in code page(cs.). how can I do that?Thanks for your help

View Article

ASP.NET Webapi with parameter

Hello experts.I am building a webapi to getBalance of a customer from Db.It works well and i can retrieve the data.But the problem is in the parameter part.For eg. In ASP.NET webservice when we request...

View Article
Browsing all 4850 articles
Browse latest View live


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