i have used this tchnique to get result from webservicebut i facing error like :
"Can not resolve a multiname reference unambiguously. mx.rpc.soap.mxml:WebService (from C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\libs\rpc.swc(mx/rpc/soap/mxml/WebService)) and mx.rpc.soap:WebService (from C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\libs\rpc.swc(mx/rpc/soap/WebService)) are available."
public var service:webservice= new webservice();
protected function initializationComplete():void
{
service.wsdl=
"http://localhost:2176/ImthePM.asmx?WSDL"
// GetPayload is the method name you're calling on your web service
service.GetAllProjects.resultFormat =
"e4x";
service.GetAllProjects.addEventListener(
"result", yourResultHandler);
service.GetPayload.addEventListener("
fault", yourFaultHandler);
// Method to call once the WSDL is loaded
service.addventListener(LoadEvent.LOAD, loadHandler);
service.loadWSDL();
}
protected
function loadHandler(event:LoadEvent):void
{
// send() takes the service parameters
service.GetAllProjects.send();
}
protected
function yourResultHandler(event:ResultEvent):void
{
service.dtgAdminTest.dataProvider=XML(event.result);
}
proteted
function yourFaultHandler(event:FaultEvent):void
{
Alert.show(event.toString());
}
Can you help me to solve this problem