Ao fazer uma requisição usando o HTTPService usando a forma abaixo não
consigo o resultados usando o IP DO SERVIDOR
Não funciona
private function httpService(event:Event):void{
var httpService:HTTPService = new HTTPService();
httpService.clearResult(true);
httpService.logout();
httpService.url= "
http://186.194.227.201:8088/datasnap/rest/TServerMethods/empresasArray”
httpService.addEventListener(ResultEvent.RESULT,
this.resultHandler);
httpService.addEventListener(FaultEvent.FAULT,
this.failRequest);
httpService.showBusyCursor = true;
httpService.resultFormat="e4x";
httpService.method = "GET";
httpService.send();
}
Usando com o servidor localmente funciona perfeito
private function httpService(event:Event):void{
var httpService:HTTPService = new HTTPService();
httpService.clearResult(true);
httpService.logout();
httpService.url=
http://localhost:8088/datasnap/rest/TServerMethods/empresasArray”
httpService.addEventListener(ResultEvent.RESULT,
this.resultHandler);
httpService.addEventListener(FaultEvent.FAULT,
this.failRequest);
httpService.showBusyCursor = true;
httpService.resultFormat="e4x";
httpService.method = "GET";
httpService.send();
}
Faço o teste usando o browse e obtenho os dados normalmente mesmo usando o
servidor remoto
Alguém já teve tal problema do HTTPService não trazer os dados serializados
remoto ?
Obrigado
--
--
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para [email protected]
Para sair da lista, envie um email em branco para
[email protected]
Mais opções estão disponíveis em http://groups.google.com/group/flexdev
---
Você está recebendo esta mensagem porque se inscreveu no grupo "flexdev" dos
Grupos do Google.
Para cancelar a inscrição neste grupo e parar de receber seus e-mails, envie um
e-mail para [email protected].
Para obter mais opções, acesse https://groups.google.com/groups/opt_out.