本文主要是介绍amfphp1.9和amfphp2.2,1差别,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
amfphp1.9和amfphp2.2,1差别
1,services-config.xml 该配置文件的不同 ,主要是<endpoint uri的差别
1.9:<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service id='amfphp-flashremoting-service' class='flex.messaging.services.RemotingService'
messageTypes='flex.messaging.messages.RemotingMessage'>
<destination id='amfphp1'>
<channels>
<channel ref='amfphp2'/>
</channels>
<properties>
<source>*</source>
</properties>
</destination>
</service>
</services>
<channels>
<channel-definition id='amfphp2' class='mx.messaging.channels.AMFChannel'>
<endpoint uri='http://localhost:8080/amfphp/gateway.php'
class='flex.messaging.endpoints.AMFEndpoint'/>
</channel-definition>
</channels>
</services-config>
2.2.1,<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service id='amfphp-flashremoting-service' class='flex.messaging.services.RemotingService'
messageTypes='flex.messaging.messages.RemotingMessage'>
<destination id='amfphp1'>
<channels>
<channel ref='amfphp2'/>
</channels>
<properties>
<source>*</source>
</properties>
</destination>
</service>
</services>
<channels>
<channel-definition id='amfphp2' class='mx.messaging.channels.AMFChannel'>
<endpoint uri='http://localhost:8080/amfphp-2.2.1/amfphp/index.php'
class='flex.messaging.endpoints.AMFEndpoint'/>
</channel-definition>
</channels>
</services-config>
2,查看服务器中方法
1.9 http://127.0.0.1:8080/amfphp/browser/
2.1 http://127.0.0.1:8080/amfphp-2.2.1/BackOffice/ServiceBrowser.php
这篇关于amfphp1.9和amfphp2.2,1差别的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!