
January 29th, 2009, 07:43 AM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 1
Time spent in forums: 7 m 7 sec
Reputation Power: 0
|
|
|
AMF Channel endpoint uri- relative path is prepended with http giving an invalid
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service id="amfphp-remoting" class="flex.messaging.services.RemotingService" messageTypes="flex.messaging.messages.RemotingMessage">
<destination id="amfphp">
<channels>
<channel ref="my-amfphp"/>
</channels>
<properties>
<source>*</source>
</properties>
</destination>
</service>
</services>
<channels>
<channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
<endpoint uri="{full path URL will come here(absolute path)}" class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
</channels>
</services-config>
To access the remote object of flex I need to give the absolute path in URI.
Is there any way to overcome this issue.
I have tried with the relative path by putting the amfphp in root folder (i.e. htdocs), but flex component is still not working.
I am using flex charts as a component and using php to connect with the database. Using remote objects I am fetching the values but due to path dependancy my application comes out with a major drawback.
Can anyone please post some solution.
|