5 Replies Latest reply on Jan 30, 2009 5:09 AM by Newsgroup_User

          AMF Channel endpoint uri- relative path is prepended with http giving an invalid

    Rajiv Modh
      <?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=" http://192.168.0.1/path/subpath/amfphp/gateway.php" 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.