Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Data Services
Viewing all articles
Browse latest Browse all 58696

Web Services Error

$
0
0
Hello,

Trying to do webservice and running into error message. Not sure what I'm doing wrong. I'm trying to access a database and display the content of the database into a datagrid. Can some please help.

Here are the code
Simple.cfc
<cfcomponent>
<cffunction name="returnquery" access="remote" returntype="query">
<cfset var qBikeParts="">
<cfquery name="qBikeParts" datasource="Error">
SELECT * from ErrorLog
</cfquery>
<cfreturn qBikeParts>
</cffunction>
</cfcomponent>


My MXML code
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">

<mx:WebService id="myService"
wsdl="http://www.Hawaiihotels.com/WSTest/Simple.cfc?wsdl"
load="myService.getData();"/>

<mx:DataGrid dataProvider="{myService.getData.lastResult}"/>

</mx:Application>

This is the error message I get when I try to runn the application

[RPC Fault faultString="Couldn't find method 'getData' in service." faultCode="Client.NoSuchMethod" faultDetail="null"]
at mx.rpc.soap::Operation/mx.rpc.soap:Operation::createFaultEvent()
at mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
at mx.rpc.soap::Operation/send()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc.soap.mxml::Operation/send()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()
at Database/__myService_load()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractService/dispatchEvent()
at mx.rpc.soap.mxml::WebService/dispatchEvent()
at mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc.soap::WSDLParser/dispatchEvent()
at mx.rpc.soap::WSDLParser/::parseCompleted()
at mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()



Does anyone know what I'm doing wrong, or how to resolve this?

Thanks,
Jimmy


Viewing all articles
Browse latest Browse all 58696

Trending Articles