I have not seen a tool that you could use to test this.

If I were doing this, I would write a tool in Flex and use Charles to
make sure the response is correct. There would be no need to have any
result code as Charles would show the object(s) being returned including
the data.

The following Application code will invoke the remote service. You can
use it to test the response from the server:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application pageTitle="Remote Object Test"
xmlns:mx="http://www.adobe.com/2006/mxml";
  width="100%" height="100%" layout="vertical" horizontalAlign="center"
  creationComplete="onComplete()">
     <mx:Script>
         <![CDATA[
             import mx.messaging.channels.AMFChannel;
             import mx.messaging.ChannelSet;
             import mx.controls.Alert;
             import mx.rpc.events.ResultEvent;
             import mx.rpc.events.FaultEvent;
             import mx.rpc.remoting.RemoteObject;

             private var TestService:RemoteObject;
             private var TestChannelSet:ChannelSet;
             private var TestAmfChannel:AMFChannel;

             public function onComplete():void
             {
                 TestChannelSet = new ChannelSet();
                 TestAmfChannel = new AMFChannel("my-amf",
"http://theserver.com/path/to/gateway";);
                 TestChannelSet.addChannel(TestAmfChannel);
                 TestService = new RemoteObject();
                 TestService.channelSet = TestChannelSet;
                 TestService.destination = "ActionV2.TestService";
                 TestService.addEventListener(ResultEvent.RESULT,
getTestObjectHandler);
                 TestService.addEventListener(FaultEvent.FAULT,
faultHandler);
             }

             private function
getTestObjectHandler(event:ResultEvent):void
             {

             }

             private function faultHandler(fault:FaultEvent):void
             {
                 Alert.show(fault.fault.faultString,
fault.fault.faultCode.toString());
             }
         ]]>
     </mx:Script>
     <mx:Button label="Get Test Object"
click="TestService.getTestObject()"/>
</mx:Application>

All you need to do is change the location of the remote server and
change the method called in the click event of the button to the method
you want to test. When you click the button, monitor the result returned
in Charles (http://www.charlesproxy.com)


--- In [email protected], "markflex2007" <markflex2...@...>
wrote:
>
> Hi,
>
> My case are:
>
> 1. all AMF functions developed with Java.
> 2. A lot of functions and I want to make sure they works fine before
> flex coding.
>
> I know webOrb have a test tool but I do not use weborb for this.
>
> Thanks
>
>
> Mark
>

Reply via email to