public var WebserviceURL:String;
public var service:WebService;
public function accessWebService():void
{
service = new WebService();
WebserviceURL = "http://mywebserver.net/webService.asmx?wsdl";
service.wsdl = WebserviceURL;
service.addEventListener(ResultEvent.RESULT,webServiceResultHandler);
service.loadWSDL();
service.GetCallHistory(username, 1, PageNo);
}
public function webServiceResultHandler(event:ResultEvent):void
{
var result:ArrayCollection = event.result as ArrayCollection;
dgVideoHistory.dataProvider = result;
}