2 Replies Latest reply on Sep 11, 2011 8:23 AM by _ADP_

    AMF work in Localhost, but not work in Remote server

    _ADP_

      I am using zend's amf to connect the flex with backend.

       

      I have this service-config:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <services-config>
          <services>
              <service id="zend-service"
                  class="flex.messaging.services.RemotingService"
                  messageTypes="flex.messaging.messages.RemotingMessage">
                 
                  <destination id="zend">
                      <channels>
                          <channel ref="zend-endpoint"/>
                      </channels>
                      <properties>
                          <source>*</source>
                      </properties>
                  </destination>
              </service>
          </services>
          <channels>
          <channel-definition id="zend-endpoint" class="mx.messaging.channels.AMFChannel">
              <endpoint uri="http://www.domain.com.br/flex" class="flex.messaging.endpoints.AMFEndpoint"/>
          </channel-definition>
          </channels>
      </services-config>

       

      When I run my app in localweb this work nice, but when I upload my app to the host, this erro show:

       

      [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://www.domain.com.br/flex'"]
          at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.x\frameworks\pro jects\rpc\src\mx\rpc\AbstractInvoker.as:290]
          at mx.rpc::Responder/fault()[C:\autobuild\3.x\frameworks\projects\rpc\src\mx\rpc\Responder.a s:58]
          at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.x\frameworks\projects\rpc\src\mx\rpc\AsyncReq uest.as:103]
          at mx.messaging::ChannelSet/faultPendingSends()[C:\autobuild\3.x\frameworks\projects\rpc\src \mx\messaging\ChannelSet.as:1446]
          at mx.messaging::ChannelSet/channelFaultHandler()[C:\autobuild\3.x\frameworks\projects\rpc\s rc\mx\messaging\ChannelSet.as:1056]
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at mx.messaging::Channel/connectFailed()[C:\autobuild\3.x\frameworks\projects\rpc\src\mx\mes saging\Channel.as:1069]
          at mx.messaging.channels::PollingChannel/connectFailed()[C:\autobuild\3.x\frameworks\project s\rpc\src\mx\messaging\channels\PollingChannel.as:388]
          at mx.messaging.channels::AMFChannel/statusHandler()[C:\autobuild\3.x\frameworks\projects\rp c\src\mx\messaging\channels\AMFChannel.as:411]

       

       

      Please, somebody can help-me, please?