Questions tagged as 'asp.net-web-api'

1
answer

Query the XML URL

I'm trying to get some data from a URL with XML but it's giving error. Follow the code <?php $simples = new SimpleXMLElement($xml); $xml = simplexml_load_file('http://vallesw.azurewebsites.net/api/municipiosfranqueados'); //Pega o segundo...
asked by 21.04.2017 / 05:12
1
answer

View image (from web api) without extension in php [closed]

I'm accessing the web api spotify and extracting the images from the albums, the problem is that so far the code is static and to insert images quietly with the following method: <style type='text/css'> h1 { background-image: ur...
asked by 24.01.2017 / 05:27
1
answer

Do I need to enable Cross-Origin Requests for ASP.NET Web API?

I did a test application, where I point to a web api that is online, the address of this api works and return the data if it is posted in the browser URL, it does a GET. In the test application I have: <Div> <Select id="metho...
asked by 27.12.2016 / 20:25
1
answer

When testing my web C # ASP.NET locally in Fiddler it returns me a 404 error

I'm creating a stock control system with android application integration, the connection is being made through a Web Service API. However I can not test the methods that exist in it to see the results returned, I'm using Fiddler but every time I...
asked by 01.12.2016 / 21:05
1
answer

Error accessing array indexes inside a LINQ expression

I am doing a query to search all the meteorologies with a certain date, but when executing the following error occurs: An exception of type 'System.NotSupportedException' occurred in EntityFramework.SqlServer.dll but was not handled in user co...
asked by 13.11.2016 / 18:19
1
answer

Extract information from the request header in Fiddler

I need to extract information from the request header in the FIDDLER application to make a comparison of a context variable that is sent in the header and set routes based on that variable. In case, if the variable is value 3, the...
asked by 24.10.2016 / 14:06
1
answer

Header reading in WebApi

I have a code that makes a post for a url and adds some parameters to the request Header HttpWebRequest req = WebRequest.Create(new Uri(url)) as HttpWebRequest; req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; req.He...
asked by 15.09.2016 / 04:38
1
answer

What to use to connect to the Internal Only Access Api Web

I am a beginner and I built a Mobile application in C # that connects to an Api Web. However, Web Api will be on a server that has only internal access, which theoretically would protect the DB. How can I make my (public) application have access...
asked by 21.07.2016 / 17:32
1
answer

Problem retrieving References from a query in Nhibernate HasMany

I'm using Nhibernate with WebAPI I have 2 entities Profile and personLogin Personalogin may have N Profile and Profile 1 Person Login. However, when I go to the webservice PessoaLogin, the Profile reference only works if it is NULL if I add a Pr...
asked by 18.12.2014 / 18:21
1
answer

Error returning data using Fluent NHibernate (Many to Many)

I have a many-to-many relationship (M: M) using Fluent NHibernate: Class / Map - Drive: public class Unidade { public virtual int Id { get; set; } public virtual string Descricao { get; set; } public virtual IList<Unidade...
asked by 08.08.2014 / 15:32