Did you add your destination after your Flex Builder project was
created? We hear about this problem quite often. It appears Flex
Builder caches remoting-config.xml and does not fetch the file every
time you build the project. As a result, if a destination is added
after the project is created, it will not be recognized unless you do
one of the following:

- restart Flex Builder
- open project properties window, select the 'Flex Compiler' section
and click 'Apply'

It would be very helpful to get a confirmation from Adobe for this bug.

Thanks,
Mark

--- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]>
wrote:
>
> I am working on a simple application that uses remote objects to pass
> data to and from my db. But I keep running into the same problem.
> 
> In my services-config.xml file, I have setup the destination ROTEST. It
> looks like this
> 
> <destination id="ROTEST">
>                  <channels>
>                      <channel ref="my-cfamf"/>
>                  </channels>
>                  <properties>
>                      <source>beta.cfc.ROtest</source>
>                      <!-- define the resolution rules and access
level of
> the cfc being invoked -->
>                      <access>
>                          <!-- Use the ColdFusion mappings to find CFCs,
> by default only CFC files under your webroot can be found. -->
>                          <use-mappings>false</use-mappings>
>                          <!-- allow "public and remote" or just "remote"
> methods to be invoked -->
>                         
> <method-access-level>remote</method-access-level>
>                      </access>
> 
>                      <property-case>
>                          <!-- cfc property names -->
>                         
<force-cfc-lowercase>false</force-cfc-lowercase>
>                          <!-- Query column names -->
>                         
> <force-query-lowercase>false</force-query-lowercase>
>                          <!-- struct keys -->
>                         
> <force-struct-lowercase>false</force-struct-lowercase>
>                      </property-case>
>                  </properties>
>              </destination>
> 
> 
> I wrote this simple flex application to test my connectivity.
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute">
> 
> 
> <mx:Script>
> <![CDATA[
> import mx.controls.Alert;
> import mx.rpc.Fault;
> import mx.rpc.events.FaultEvent;
> import mx.rpc.events.ResultEvent;
> 
> private function qryService_userSearch(lastName){
> qryService.userSearch(lastName)
> }
> 
> private function qryService_userSearch_Result(event:ResultEvent):void{
> testDG.dataProvider = event.result;
> }
> 
> private function qryService_userSearch_Fault(event:FaultEvent):void{
> 
> errorText.text = event.fault.message;
> }
> ]]>
> </mx:Script>
> 
> 
> <mx:RemoteObject
> id="qryService"
> destination="ROTEST"
> result="qryService_userSearch_Result(event)"
> endpoint="http://beta.homesmartagent.com/flex2gateway/";
> showBusyCursor="true"
> fault="qryService_userSearch_Fault(event)"/>
> <mx:Canvas x="0" y="0" width="100%" height="100%">
> <mx:Label x="10" y="10" text="Name:"/>
> <mx:TextInput id="lastName" x="60" y="8"/>
> <mx:Button x="228" y="8"
> click="qryService_userSearch(lastName.text)" label="Button"/>
> <mx:DataGrid x="10" y="38" id="testDG" width="779" height="326">
> <mx:columns>
> <mx:DataGridColumn headerText="Column 1"
> dataField="fld_agentFullName"/>
> <mx:DataGridColumn headerText="Column 2" dataField="fld_agentId"/>
> <mx:DataGridColumn headerText="Column 3" dataField="fld_agentEmail"/>
> </mx:columns>
> </mx:DataGrid>
>      <mx:TextArea x="10" y="372" id="errorText" width="523"
> height="221"/>
> </mx:Canvas>
> </mx:Application>
> 
> Everytime I test the application, I get this error.
> faultCode:Server.Processing faultString:'No destination 'ROTEST' exists
> in service flex.messaging.services.RemotingService' faultDetail:'null'
> 
> I know my destination exists in my services-config.xml file, but for
> some reason it can not find it. I have set the channel correctly in my
> services-config.xml file as well.
>   <channels>
>          <channel-definition id="my-cfamf"
> class="mx.messaging.channels.AMFChannel">
>              <endpoint
uri="http://beta.homesmartagent.com/flex2gateway/";
> class="flex.messaging.endpoints.AMFEndpoint"/>
>              <properties>
>                  <polling-enabled>false</polling-enabled>
>                  <serialization>
>                      <instantiate-types>false</instantiate-types>
>                  </serialization>
>              </properties>
>          </channel-definition>
>      </channels>
> 
> Can someone shed some light on this for me.
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to