My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
AliasListExample  
Show an example to retrieve list of alias
Updated Apr 22, 2011 by ludovic....@gmail.com
  • Example to retrieve list of alias

import com.ludovicbadin.elink.soap.LinkSession;
import com.ludovicbadin.elink.soap.events.FaultSOAPEvent;
import com.ludovicbadin.elink.soap.events.ResultSOAPEvent;

//Define SOAP API server
private var service:LinkSession = new LinkSession("http://yourserver.com/elinkapps/elink.dll/");

//Execute alias list request
private function aliaslist():void
{
        LinkSession.getParamSOAPSession("aliaslist");
	LinkSession.executeBatch(service, aliasList_success, global_failed);
}

//Success callback function
private function aliaslist_success(event:ResultSOAPEvent):void
{
        if(event != null){
                event.stopImmediatePropagation();
                var listAlias:ArrayCollection = service.getSingleListData(event.idoperation);
        }
}

//Failed callback function              
private function global_failed(event:FaultSOAPEvent):void
{
        if(event != null){
                event.stopImmediatePropagation();
                Alert.show(event.error.faultstring, event.error.faultcode);
        }
}
Powered by Google Project Hosting