Note that there are some explanatory texts on larger screens.

plurals
  1. POconnecting to remote webservice using SOAP and WSDL using flex or actionscript
    text
    copied!<p>The requirement is to get the method named getIncidentList() from web service using Soap and wsdl using Flex or Actionscript. Can anyone help me i have a code which is not working:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"&gt; &lt;mx:WebService id="DirectoryService" wsdl="http://cmuicds.rutgers.edu/uicds/core/ws/services/DirectoryService.wsdl" useProxy="false" showBusyCursor="true" result="onResult(event)" fault="onFault(event)"&gt; &lt;/mx:WebService&gt; &lt;mx:ApplicationControlBar dock="true"&gt; &lt;mx:Button id="button" label="get incidents from web service" click="button_click()"/&gt; &lt;mx:ComboBox id="cmb" dataProvider="{zipfls}" labelField="name" width="241" height="24"/&gt; &lt;/mx:ApplicationControlBar&gt; &lt;mx:Script&gt; &lt;![CDATA[ import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.utils.ObjectUtil; import mx.collections.ArrayCollection; [Bindable] private var zipfls:ArrayCollection; private var flag:Boolean; private function button_click():void { //Alert.show("Hi"); //DirectoryService.GetIncidentList.send(); DirectoryService.GetIncidentList(); flag = DirectoryService.canLoadWSDL(); //flag = DirectoryService.hasOwnProperty(); //Alert.show("Testing....." + flag); //Alert.show("Description " +DirectoryService.operations); } private function onResult(evt:ResultEvent):void { zipfls = new ArrayCollection(); //textArea.text = ObjectUtil.toString(evt.result); zipfls = evt.result as ArrayCollection; Alert.show("Is data comming in?" + zipfls.length); } private function onFault(evt:FaultEvent):void { Alert.show(evt.type); } ]]&gt; &lt;/mx:Script&gt; &lt;/mx:Application&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload