HELP! Error on connecting to local web service
i've got following mxml file,
<?xml version="1.0" encoding="utf-8"?>
<mx:application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="600" height="450">
<mx:webservice id="testapp" wsdl=" http://localhost/dir_ws/service1.asmx?wsdl" showbusycursor="true" fault="alert(event.fault.message)">
<mx:operation name="getsearchresults">
</mx:operation>
</mx:webservice>
<mx:vbox>
<mx:button click="testapp.getsearchresults.send()"></mx:button>
<mx:datagrid dataprovider="{testapp.getsearchresults.result}">
<mx:columns>
<mx:array>
<mx:datagridcolumn id="last_name" headertext="last name"/>
</mx:array>
</mx:columns>
</mx:datagrid>
</mx:vbox>
</mx:application>
it's trying read web service on localhost of machine keeps giving error "call possibly undefined method alert." on line mx:webservice. i'm able bring service1.asmx page via visual studio , gives me results. doing wrong.
<?xml version="1.0" encoding="utf-8"?>
<mx:application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="600" height="450">
<mx:webservice id="testapp" wsdl=" http://localhost/dir_ws/service1.asmx?wsdl" showbusycursor="true" fault="alert(event.fault.message)">
<mx:operation name="getsearchresults">
</mx:operation>
</mx:webservice>
<mx:vbox>
<mx:button click="testapp.getsearchresults.send()"></mx:button>
<mx:datagrid dataprovider="{testapp.getsearchresults.result}">
<mx:columns>
<mx:array>
<mx:datagridcolumn id="last_name" headertext="last name"/>
</mx:array>
</mx:columns>
</mx:datagrid>
</mx:vbox>
</mx:application>
it's trying read web service on localhost of machine keeps giving error "call possibly undefined method alert." on line mx:webservice. i'm able bring service1.asmx page via visual studio , gives me results. doing wrong.
import mx.controls.alert;
fault="alert(event.fault.message)", or can define own alert function.
i not sure if want. hope helps.
fault="alert(event.fault.message)", or can define own alert function.
i not sure if want. hope helps.
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment