Hi Tom,
I encountered the same error today.
Your webservice is probably exposing an
operation called ‘logout’. The same method is already present in
the class mx.rpc.AbstratctService, which is a baseclass of
mx.rpc.soap.mxml.WebService. When Flex is parsing your wsdl it tries to add the
encountered operations as methods to the WebService class dynamically. In the
case of the ‘logout’ operation this gives a clash.
If you rename your operation to ‘logoff’
all goes well.
Cheers,
Franck
From: [email protected] [mailto:[email protected]] On Behalf Of Tom Ortega
Sent: Wednesday, May 24, 2006 7:58
PM
To: flexcoders
Subject: [flexcoders] Flex
WebService error, CF Okay
I'm trying to use an
internal Java Web Service.
When I call from cf using cfinvoke, all is well.
When I try to call from flex, however, I get this runtime error (see below) on
app startup. No calls to the ws yet, just error on parsing the wsdl.
I was under the impression they (CF and Flex) both used Axis to process the
WSDLs. Is this not the case? If they do, why does one error but not
the other?
TypeError: Error #1034: Type Coercion failed: cannot convert MC{
mx.rpc.soap.mxml::[EMAIL PROTECTED] mx.rpc::AbstractService/logout()[EMAIL PROTECTED]
to mx.rpc.soap.Operation.
at mx.rpc.soap::WebService/::createOperationsFromPort()
at
mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdlHandler
()
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/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/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete ()
at mx.rpc.soap::WebService/::setPort()
Thanks,
Tom
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS