Services-config.xml
De DTI Wiki
O services-config.xml é um arquivo de configuração que armazena todas as conexões para o gateway do ZendAMF.
Ele deve sempre estar na pasta src do projeto e declarado na aplicação:
O código padrão para este arquivo é:
<?xml version="1.0" encoding="ISO-8859-1"?> <services-config> <services> <service id="amfphp-flashremoting-service-dev" class="flex.messaging.services.RemotingService" messageTypes="flex.messaging.messages.RemotingMessage"> <destination id="UpfZend-DEV"> <channels> <channel ref="gateway-DEV"/> </channels> <properties> < source >*< /source > </properties> </destination> </service> <service id="amfphp-flashremoting-service-test" class="flex.messaging.services.RemotingService" messageTypes="flex.messaging.messages.RemotingMessage"> <destination id="UpfZend-TEST"> <channels> <channel ref="gateway-TEST"/> </channels> <properties> < source >*< /source > </properties> </destination> </service> <service id="amfphp-flashremoting-service-secure" class="flex.messaging.services.RemotingService" messageTypes="flex.messaging.messages.RemotingMessage"> <destination id="UpfZend-SECURE"> <channels> <channel ref="gateway-SECURE"/> </channels> <properties> < source >*< /source > </properties> </destination> </service> </services> <channels> <channel-definition id="gateway-DEV" class="mx.messaging.channels.AMFChannel"> <endpoint uri="/flexService/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/> </channel-definition> <channel-definition id="gateway-TEST" class="mx.messaging.channels.AMFChannel"> <endpoint uri="http://wwwtest.upf.br/flexService/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/> </channel-definition> <channel-definition id="gateway-SECURE" class="mx.messaging.channels.SecureAMFChannel"> <endpoint uri="https://secure.upf.br/flexService/gateway.php" class="flex.messaging.endpoints.SecureAMFEndpoint"/> </channel-definition> </channels> </services-config>
OBSERVAÇÃO: Devido a compatibilidade do MediaWiki, as tags "< source >*< /source >" tiveram espaços adicionados entre os delimitadores, por isso remova esse espaço em branco para que a aplicação funcione corretamente.