Very cool. Thanks to both and Tim and Peter for your help.

Not sure if I should start a new thread for this (if i should just let
me know), but I am noticing some odd behavior when using
mx.rpc.soap.WebService. When I try passing an arguments object in the
send() method I am getting a fault with the following message: Array
of input arguments did not contain a required parameter at position 1.
When I assign the same object to the arguments property of my
AbstractOperation, everything works fine. Here is my code:

dmws = new WebService();                
dmws.loadWSDL([EMAIL PROTECTED]
+ "?WSDL"); 
dmws.useProxy = false;
                                        dmws.addEventListener("result", 
onDmwsResult);
dmws.addEventListener("fault", doFault);
                                        
var op:AbstractOperation;
op = dmws['GetDocument'];
                                        
var args:Object = new Object();
                                        
args.EnterpriseId = event.target.selectedItem.EnterpriseId;
args.DocumentType = "EBD";
                                        
args.ContainersToRetrieve = new Array();
args.ContainersToRetrieve.push("Client");
args.ContainersToRetrieve.push("IndustryTrends");
args.ContainersToRetrieve.push("Fiduciary");
                                        
args.MetadataToRetrieve = new Array("DocumentHistory");


// this works                   
op.arguments = args;
op.send();

// this does not work
op.send(args);

Thanks,
Ben

--- In [email protected], "ben.clinkinbeard"
<[EMAIL PROTECTED]> wrote:
>
> Why are these separate classes? More importantly, why does the mxml
> version have capabilities that its super class does not? I like the
> showBusyCursor functionality, but prefer to code in AS when possible.
> Am I correct in assuming that these two things are mutually exclusive?
> 
> Thanks,
> Ben
>






--
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