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 ArticleHow 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 ArticleCalling 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 ArticleBest 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 ArticleHow 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 ArticleCalling 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 ArticleConvert 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 Articleweb 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 ArticleSingle 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 Articlewindows 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 ArticleTutorials 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 ArticleAjax 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 ArticleHow 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 ArticleThe 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 ArticleChiamata 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 ArticleRandom 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 ArticleHow 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 ArticleAccess 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 Articledeclare 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 ArticleASP.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