Hello, I have a problem with the Url in the HTTP Service
<mx:HTTPService id="userRequest" url="http://ispedd.redios.it/iSchoolPDFManagerPortlet/imagepdf.do?idPdf=1&i dPage=0" useProxy="false" method="GET"/>
The service should open a PNG image and the error bring back is: The reference to entity "idPage" must end with the ';' delimiter.
Can you help me? Thank you.
The url is OK, the problem is that properties for MXML cannot have included some characters. So you need to escape entities in your url and it will be ok, for example:
But it would be better if you do not hardcode params in URL. If you need you could hardcode them in Mxml itself like below:
or (which is more flexible) use parameters as argument when invoking service:
You could read more on that in section about data integration in Flex in online or offline documentation: